You can call ModifyResourcePool operation to update a resource pool.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyResourcePool |
The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to ModifyResourcePool. |
ClusterId | String | Yes | C-0E995C0EE7E5**** |
The ID of the cluster. You can call ListClusters You can call this operation to view the ID of a cluster. |
Id | String | Yes | 116 |
The ID of the resource pool. You can call ListResourcePool View the resource pool ID. |
RegionId | String | Yes | cn-hangzhou |
The region ID. You can call DescribeRegions To view the latest list of Alibaba Cloud regions. |
Active | Boolean | No | true |
Indicates whether this resource pool is an active activation pool. The values are as follows:
|
Name | String | No | custompool |
The name of the resource pool. |
Yarnsiteconfig | String | No | Yarnsiteconfig |
The list of YARN configurations. |
Config.N.Id | String | No | 10 |
The ID of the parameter. |
Config.N.ConfigKey | String | No | capacity |
The key of the parameter. |
Config.N.ConfigValue | String | No | 100 |
The value of the parameter. |
Config.N.Category | String | No | DEFAULT_SETTINGS |
Configuration type:
|
Config.N.Note | String | No | The weight used to determine the fraction of total resources that the queue can use |
The description of the parameter. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | A544317F-4A60-4532-AC96-191B9D80420A |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyResourcePool
&ClusterId=C-0E995C0EE7E5****
&Id=116
&RegionId=cn-hangzhou
&<common request parameters>
Sample success responses
XML
format
<requestId>A544317F-4A60-4532-AC96-191B9D80420A</requestId>
JSON
Syntax
{
"requestId":"A544317F-4A60-4532-AC96-191B9D80420A"
}