Skip to main content

dtcloud_ssh_keys (Data Source)

Lists the SSH keys on the account.

The list endpoint reports a name and a creation time, and nothing else. Fingerprints and public keys would mean one more call per key, so look a key up with dtcloud_ssh_key when you need those.

Example Usage​

data "dtcloud_ssh_keys" "all" {}

output "key_names" {
value = data.dtcloud_ssh_keys.all.names
}

Schema​

Read-Only​

  • id (String) The ID of this resource.
  • names (List of String) Just the names, for the common case of checking whether a key exists.
  • ssh_keys (List of Object) The SSH keys visible to the caller. (see below for nested schema)

Nested Schema for ssh_keys​

Read-Only:

  • created (String)
  • name (String)