SSH キーペアを作成します。
操作説明
SSH キーペアは、公開鍵と秘密鍵で構成されます。ENS は公開鍵を保存し、PKCS#8 フォーマットで PEM 形式でエンコードされた暗号化されていない秘密鍵を返します。秘密鍵は安全に保管する必要があります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:CreateKeyPair |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| KeyPairName |
string |
必須 |
キーペアの名前。命名規則は次のとおりです:
|
TestKeyPairName |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| KeyPairFingerPrint |
string |
キーペアのフィンガープリント。RFC 4716 で定義されている公開鍵フィンガープリント形式に基づき、メッセージダイジェストアルゴリズム 5 (MD5) が使用されます。詳細については、「RFC 4716」をご参照ください。 |
7880c1ad4687fdbf7a6da2131**** |
| KeyPairId |
string |
SSH キーペアの ID。 |
ssh-5lywanlkih1zo9yl8eg**** |
| KeyPairName |
string |
キーペアの名前。 |
TestKeyPairName |
| PrivateKeyBody |
string |
キーペアの秘密鍵。秘密鍵は、PKCS#8 フォーマットで PEM 形式でエンコードされます。 |
-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQE**** |
| RequestId |
string |
リクエストの ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
例
成功レスポンス
JSONJSON
{
"KeyPairFingerPrint": "7880c1ad4687fdbf7a6da2131****",
"KeyPairId": "ssh-5lywanlkih1zo9yl8eg****",
"KeyPairName": "TestKeyPairName",
"PrivateKeyBody": "-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQE****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | InvalidSecurityGroupId.NotFound | The specified SecurityGroupId does not exist. | |
| 400 | SecurityGroupRuleConflict.Duplicated | The SecurityGroup rule already exists. | |
| 400 | AuthorizationLimitExceed | The limit of authorization records in the security group reaches. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。