ConoHa API Documantation

キーペア詳細取得(アイテム指定) - Compute API v2

Description

Request URL

Compute API v2.0

GET /v2/​{tenant_id}​/os-keypairs/{keypair_name}

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
tenant_id URI テナントID
keypair_name キーペア名 URI キーペア名

Request Json

This operation does not accept a request body.

Normal response codes

200

Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
https://compute.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/os-keypairs/keypair-original-01
  • RES
HTTP/1.1 200 OK
Date: Thu, 11 Dec 2014 05:50:59 GMT
Server: Apache
Content-Length: 498
Content-Type: application/json

{
    "keypair": {
        "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDx8nkQv/zgGgB4rMYmIf+6A4l6Rr+o/6lHBQdW5aYd44bd8JttDCE/F/pNRr0lRE+PiqSPO8nDPHw0010JeMH9gYgnnFlyY3/OcJ02RhIPyyxYpv9FhY+2YiUkpwFOcLImyrxEsYXpD/0d3ac30bNH6Sw9JD9UZHYcpSxsIbECHw== Generated by Nova",
        "user_id": "d24345400a044b73ba99c3d18ef31a4e",
        "name": "keypair-original-01",
        "deleted": false,
        "created_at": "2014-12-11T05:45:59.000000",
        "updated_at": null,
        "fingerprint": "1e:2c:9b:56:79:4b:45:77:f9:ca:7a:98:2c:b0:d5:3c",
        "deleted_at": null,
        "id": 9
    }
}