Menghapus beberapa host dari kelompok aset dalam satu pengatur waktu.
Deskripsi operasi
Removes multiple hosts from an asset group. If certain hosts no longer need to be managed through an asset group, you can use this operation to remove them.
QPS limit
You can call this API operation up to 10 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:RemoveHostsFromGroup |
delete |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion host yang kelompok asetnya ingin Anda kelola. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion host. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID wilayah bastion host yang kelompok asetnya ingin Anda kelola. Catatan
Untuk informasi selengkapnya tentang Pemetaan antara ID Wilayah dan nama wilayah, lihat Wilayah dan zona. |
cn-hangzhou |
| HostGroupId |
string |
Yes |
ID kelompok aset yang ingin Anda hapus host-nya. Catatan
Anda dapat memanggil operasi ListHostGroups untuk mengkueri ID kelompok aset. |
1 |
| HostIds |
string |
Yes |
ID host yang ingin Anda hapus dari kelompok host. Tentukan string JSON. Anda dapat menentukan hingga 100 ID host. Catatan
Anda dapat memanggil operasi ListHosts untuk mengkueri ID host. |
["1","2","3"] |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| Results |
array<object> |
The result of the call. |
|
|
object |
|||
| Code |
string |
The return code that indicates whether the call was successful. Valid values:
|
OK |
| Message |
string |
This parameter is deprecated. |
None |
| HostGroupId |
string |
The ID of the asset group. |
1 |
| HostId |
string |
The ID of the host. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"Results": [
{
"Code": "OK",
"Message": "None",
"HostGroupId": "1",
"HostId": "1"
}
]
}
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.