Show key pair information
Method | URI | Description |
---|---|---|
GET | /v2/{tenant_id}/os-keypairs/{keypair_name}{?availability_zone} | Retrieves a key pair associated with the account. |
Normal response codes: 200
Request
This table shows the URI parameters for the delete key pair request:
Name | Type | Description |
---|---|---|
{tenant_id} | String | Project ID |
{keypair_name} | String | The name associated with the key pair. |
availability_zone | String (Optional) |
Availability zone for the key pair. |
This operation does not require a request body.
Response
Example. Show key pair information: JSON response
{
"keypair": {
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDCSLxfzqB+e5yHdUSXvb
xKkajjlfuhV+GArdseqPjfkKJ6no5echpin7dJp0FLXMJKxJZE3WWIRu25CQrJntmi7no27RkDf
AGaTFbjz3DWY4A1HLeKAB5tFTwYQlr7CjMdoC/DY7UvKaatwLhH4Wvh5vMmXgF7AFzdkI28urwo
+Q== nova@use03147k5-eth0\n",
"name": "hpdefault",
"fingerprint": "8b:2f:aa:b0:b8:97:dc:c8:50:aa:d4:8e:d0:34:61:d9",
"availability_zone":"jp-east-1a"
}
}