Removes host groups from a cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ReleaseClusterHostGroup |
The operation that you want to perform. This parameter is required for API requests that you initiate by piecing together HTTP or HTTPS URLs. Set the value to ReleaseClusterHostGroup. |
ClusterId | String | Yes | C-D7958B72E59B**** |
The ID of the cluster. You can call the ListClusters to view the ID of the cluster. |
HostGroupId | String | Yes | G-EF460256A55F**** |
The ID of the host group. You can call the ListClusterHostGroup to view the machine group ID. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the security group. You can call the DescribeRegions operation to query the most recent region list. |
InstanceIdList | String | No | ["i-bp1bm7y86rscdx1a****"] |
The ID of ECS instance N. |
ReleaseNumber | Integer | No | 2 |
The number of scales in. |
EnableGracefulDecommission | Boolean | No | true |
Whether to enable YARN graceful offline:
<note> This feature is enabled only for the TASK node group of the HADOOP cluster. </note> |
DecommissionTimeout | Integer | No | 3600 |
The timeout period for graceful unpublishing. Unit: seconds. Valid values: 0 to 3600. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 991B3409-6C8D-48CB-903C-3B9C166E17A8 |
The ID of the request. |
Example
Sample request
http(s)://[Endpoint]/?Action=ReleaseClusterHostGroup
&ClusterId=C-D7958B72E59B****
&HostGroupId=G-EF460256A55F****
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<RequestId>991B3409-6C8D-48CB-903C-3B9C166E17A8</RequestId>
JSON
format
{
"RequestId":"991B3409-6C8D-48CB-903C-3B9C166E17A8"
}