Memutuskan ikatan pasangan kunci dari server aplikasi sederhana.
Deskripsi operasi
If you want to change the SSH key pairs that are bound to your simple application servers or your end user no longer needs to access a specific simple application server, you can unbind the SSH key pairs from simple application servers to improve the security of the simple application servers or restrict access to the specific simple application server.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:DetachKeyPair |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID Wilayah server aplikasi sederhana. |
cn-hangzhou |
| ClientToken |
string |
No |
Token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. token hanya boleh berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| InstanceIds |
array |
Yes |
ID server aplikasi sederhana yang ingin Anda putuskan ikatan pasangan kunci SSH-nya. Anda dapat menentukan maksimal 50 ID server aplikasi sederhana. |
|
|
string |
No |
The ID of the simple application server from which you want to unbind an SSH key pair. You can specify a maximum of 50 IDs of simple application servers. |
2ad1ae67295445f598017499dc**** |
|
| KeyPairName |
string |
Yes |
Nama pasangan kunci. Nama tersebut harus unik secara global. Nama harus terdiri dari 2 hingga 64 karakter dan dapat berisi huruf, digit, titik dua (:), garis bawah (_), dan tanda hubung (-). Nama harus dimulai dengan huruf tetapi tidak boleh dimulai dengan http:// atau https://. |
KeyPairName |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
20758A-585D-4A41-A9B2-28DA8F4F534F |
| TotalCount |
integer |
The total number of simple application servers from which the SSH key pair is unbound. |
1 |
| FailCount |
integer |
The total number of simple application servers from which you fail to unbind key pairs. |
0 |
| Results |
array<object> |
The request results. |
|
|
object |
The result set of the unbind operation. |
||
| Code |
string |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
success |
| Success |
string |
Indicates whether the key pair is unbound from the simple application server successfully. Valid values:
|
true |
| InstanceId |
string |
The ID of the simple application server. |
aa6e71ddb35c46679bc4753d6219d604 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F",
"TotalCount": 1,
"FailCount": 0,
"Results": [
{
"Code": "200",
"Message": "success",
"Success": "true",
"InstanceId": "aa6e71ddb35c46679bc4753d6219d604"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.KeypairNotAttachedInstance | The specified keyPair not attached to instances. | |
| 404 | InvalidInstanceId.NotFound | The specified Instance Id does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.