Panggil CreateKeyPair untuk membuat pasangan kunci SSH.
Deskripsi operasi
Edge Node Service (ENS) menyimpan kunci publik dari pasangan kunci untuk Anda dan mengembalikan kunci privat PKCS#8 berenkode PEM yang tidak dienkripsi. Anda harus menyimpan sendiri kunci privat tersebut dengan aman.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateKeyPair |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| KeyPairName |
string |
Yes |
Nama pasangan kunci. Aturan penamaannya adalah sebagai berikut:
|
TestKeyPairName |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| KeyPairFingerPrint |
string |
Sidik jari (fingerprint) pasangan kunci. Format sidik jari kunci publik yang didefinisikan dalam RFC4716 digunakan, dan algoritma message-digest MD5 diadopsi. Untuk informasi lebih lanjut, lihat RFC4716. |
7880c1ad4687fdbf7a6da2131**** |
| KeyPairId |
string |
ID pasangan kunci SSH. |
ssh-5lywanlkih1zo9yl8eg**** |
| KeyPairName |
string |
Nama pasangan kunci. |
TestKeyPairName |
| PrivateKeyBody |
string |
Kunci privat dari pasangan kunci. Kunci privat dalam format PKCS#8 yang dikodekan PEM. |
-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQE**** |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"KeyPairFingerPrint": "7880c1ad4687fdbf7a6da2131****",
"KeyPairId": "ssh-5lywanlkih1zo9yl8eg****",
"KeyPairName": "TestKeyPairName",
"PrivateKeyBody": "-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQE****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.