Vultr DocsLatest Content


vultr_ssh_key

Updated on 15 September, 2025

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.

Example Usage

Get the information for an SSH key by name:

hcl
data "vultr_ssh_key" "my_ssh_key" {
  filter {
    name = "name"
    values = ["my-ssh-key-name"]
  }
}

Argument Reference

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.

Attributes Reference

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.

Comments

No comments yet.