Retrieves details about a Vultr SSH key including name, public key content, and creation date
Get information about a Vultr SSH key. This data source provides the name, public SSH key, and the creation date for your Vultr SSH key.
Get the information for an SSH key by name
:
data "vultr_ssh_key" "my_ssh_key" {
filter {
name = "name"
values = ["my-ssh-key-name"]
}
}
The following arguments are supported:
filter
- (Required) Query parameters for finding SSH keys.The filter
block supports the following:
name
- Attribute name to filter with.values
- One or more values filter with.The following attributes are exported:
id
- The ID of the SSH key.name
- The name of the SSH key.ssh_key
- The public SSH key.date_created
- The date the SSH key was added to your Vultr account.
No comments yet.