Menghapus asosiasi antara akun host dan kunci bersama host.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:DetachHostAccountsFromHostShareKey |
update |
*Instans.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans bastion host. Catatan
Anda dapat memanggil DescribeInstances untuk mendapatkan parameter ini. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID wilayah bastion host. Catatan
Untuk pemetaan antara ID wilayah dan nama wilayah, lihat Regions and zones. |
cn-hangzhou |
| HostShareKeyId |
string |
Yes |
ID kunci bersama host. Catatan
Anda dapat memanggil ListHostShareKeys untuk mendapatkan parameter ini. |
11 |
| HostAccountIds |
string |
Yes |
Daftar ID akun host. Catatan
Anda dapat memanggil ListHostAccountsForHostShareKey untuk mendapatkan parameter ini. |
["1","2","3"] |
| ProjectId |
integer |
No |
ID proyek. |
3 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema tanggapan. |
||
| RequestId |
string |
ID permintaan, yang merupakan pengenal unik yang dihasilkan oleh Alibaba Cloud untuk permintaan tersebut. Anda dapat menggunakan ID ini untuk memecahkan masalah. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| Results |
array<object> |
Hasil pemanggilan API. |
|
|
object |
|||
| Code |
string |
Kode kesalahan. Nilai OK menunjukkan bahwa penghapusan berhasil. Kode kesalahan lain menunjukkan bahwa penghapusan gagal. |
OK |
| Message |
string |
Paket kesalahan. |
Akun host tidak ada |
| HostShareKeyId |
string |
ID kunci bersama host. |
11 |
| HostAccountId |
string |
ID akun host. |
12407 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"Results": [
{
"Code": "OK",
"Message": "The host account does not exist",
"HostShareKeyId": "11",
"HostAccountId": "12407"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 500 | InternalError | An unknown error occurred. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.