Rivest–Shamir–Adleman (RSA) 暗号化されたキーペアの公開鍵を、サードパーティ製ツールで生成されたものとしてインポートします。
操作説明
キーペアをインポートした後、ENS は公開鍵を保存します。秘密鍵はお客様ご自身で安全に保管してください。
キーペアは ssh-rsa フォーマットのみサポートされます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:ImportKeyPair |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| KeyPairName |
string |
必須 |
キーペアの名前です。名前は以下の命名規則に従う必要があります。
指定できるキーペアの名前は 1 つだけです。 |
TestKeyPairName |
| PublicKeyBody |
string |
必須 |
キーペアの公開鍵です。指定できる公開鍵は 1 つだけです。 |
ssh-rsa AAAAB**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| KeyPairFingerPrint |
string |
キーペアの指紋です。RFC 4716 で定義された公開鍵指紋フォーマットに基づき、メッセージダイジェストアルゴリズム 5 (MD5) が使用されます。 |
fdaf8ff7a756ef843814fc**** |
| KeyPairName |
string |
キーペアの名前です。 |
TestKeyPairName |
| RequestId |
string |
リクエスト ID です。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
例
成功レスポンス
JSONJSON
{
"KeyPairFingerPrint": "fdaf8ff7a756ef843814fc****",
"KeyPairName": "TestKeyPairName",
"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. | |
| 400 | InvalidPublicKeyBody.Malformed | The PublicKeyBody format is not supported. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。