2015-06-20 18:25:21 +02:00
|
|
|
---
|
|
|
|
layout: "softlayer"
|
|
|
|
page_title: "SoftLayer: ssh_key"
|
|
|
|
sidebar_current: "docs-softlayer-resource-ssh-key"
|
|
|
|
description: |-
|
|
|
|
Manages SoftLayer SSH Keys.
|
|
|
|
---
|
|
|
|
|
|
|
|
# softlayer\ssh_key
|
|
|
|
|
|
|
|
Provides SSK keys. This allows SSH keys to be created, updated and deleted.
|
|
|
|
For additional details please refer to [API documentation](http://sldn.softlayer.com/reference/datatypes/SoftLayer_Security_Ssh_Key).
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "softlayer_ssh_key" "test_ssh_key" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "test_ssh_key_name"
|
|
|
|
notes = "test_ssh_key_notes"
|
|
|
|
public_key = "ssh-rsa <rsa_public_key>"
|
2015-06-20 18:25:21 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
2016-12-14 17:25:57 +01:00
|
|
|
* `name` - (Required) A descriptive name used to identify an SSH key.
|
|
|
|
* `public_key` - (Required) The public SSH key.
|
|
|
|
* `notes` - (Optional) A small note about an SSH key to use at your discretion.
|
2015-06-20 18:25:21 +02:00
|
|
|
|
2016-12-14 17:25:57 +01:00
|
|
|
The `name` and `notes` fields are editable.
|
2015-06-20 18:25:21 +02:00
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
2016-12-14 17:25:57 +01:00
|
|
|
* `id` - The ID of the new SSH key
|
|
|
|
* `fingerprint` - sequence of bytes to authenticate or lookup a longer SSH key.
|