github.com/ggiamarchi/terraform@v0.3.7-0.20150607194748-ed2a66a46a71/website/source/docs/providers/cloudstack/r/ssh_keypair.html.markdown (about) 1 --- 2 layout: "cloudstack" 3 page_title: "CloudStack: cloudstack_ssh_keypair" 4 sidebar_current: "docs-cloudstack-resource-ssh-keypair" 5 description: |- 6 Creates or registers an SSH keypair. 7 --- 8 9 # cloudstack\_ssh\_keypair 10 11 Creates or registers an SSH keypair. 12 13 ## Example Usage 14 15 ``` 16 resource "cloudstack_ssh_keypair" "myKey" { 17 name = "myKey" 18 } 19 ``` 20 21 ## Argument Reference 22 23 The following arguments are supported: 24 25 * `name` - (Required) The name to give the SSH keypair. This is a unique value within a Cloudstack account. 26 27 * `public_key` - (Optional) The full public key text of this keypair. If this is omitted, Cloudstack 28 will generate a new keypair. 29 30 ## Attributes Reference 31 32 The following attributes are exported: 33 34 * `id` - The keypair ID. This is set to the keypair `name` argument. 35 * `fingerprint` - The fingerprint of the public key specified or calculated. 36 * `private_key` - This is returned only if Cloudstack generated the keypair.