Skip to content

Commit

Permalink
Add key ID to SSH key data source (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmock committed Nov 13, 2023
1 parent d76277c commit 15c3dc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vultr/data_source_vultr_ssh_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ func dataSourceVultrSSHKey() *schema.Resource {
ReadContext: dataSourceVultrSSHKeyRead,
Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
"id": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
Expand Down
1 change: 1 addition & 0 deletions website/docs/d/ssh_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ The `filter` block supports the following:

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.

0 comments on commit 15c3dc8

Please sign in to comment.