Removes multiple hosts from a specified host group.
Operation description
This operation removes multiple hosts from a host group. If some hosts no longer require unified management through a host group, you can use this operation to remove them.
QPS limits
The QPS limit per user is 10 calls per second. If this limit is exceeded, API calls are throttled, which may affect your services. Call this operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:RemoveHostsFromGroup |
delete |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Bastionhost instance to which the host group from which you want to remove hosts belongs. Note
You can call the DescribeInstances operation to query the instance ID. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
The region ID of the Bastionhost instance to which the host group from which you want to remove hosts belongs. Note
For more information about the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| HostGroupId |
string |
Yes |
The ID of the host group from which you want to remove hosts. Note
You can call the ListHostGroups operation to query the host group ID. |
1 |
| HostIds |
string |
Yes |
The IDs of the hosts that you want to remove. The value is a JSON string. You can specify up to 100 host IDs. Note
You can call the ListHosts operation to query the host IDs. |
["1","2","3"] |
| ProjectId |
integer |
No |
The project ID. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. The ID is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| Results |
array<object> |
The results of the operation. |
|
|
object |
|||
| Code |
string |
The result code of the operation. Valid values:
|
OK |
| Message |
string |
[Deprecated] This parameter is deprecated. You can ignore it. |
None |
| HostGroupId |
string |
The ID of the host group. |
1 |
| HostId |
string |
The ID of the host. |
1 |
Examples
Success response
JSON format
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"Results": [
{
"Code": "OK",
"Message": "None",
"HostGroupId": "1",
"HostId": "1"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | The argument is invalid. |
| 500 | InternalError | An unknown error occurred. | An unknown error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.