You can call ModifyResourcePool operation to update a resource pool.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

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

Whether to activate. The valid values are as follows:

  • true: Activate
  • false: do not activate
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


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.


Sample requests

&<common request parameters>

Sample success responses

XML format


JSON Syntax


Error codes

HttpCode Error code Error message Description
403 Params.Illegal The specified parameters are wrongly formed.. The error message returned because the format of the specified parameters is invalid.
403 User.OtherUserResource.NotAllow It is not allowed to operate other user's resource The error message returned because you are not authorized to manage the resources of other users.
403 User.Account.Abnormal The User Account maybe is out of service! The error message returned because the Apsara Stack tenant account is out of service.
403 JobId.Not.Exist Job [%s] does not exist or is deleted! The error message returned because the specified job ID does not exist. Enter a valid value.
403 Job.RegionId.Not.Match Specified job does not exist in this region[%s]! The error message returned because the specified job does not exist in the region. Enter a valid value.
500 InternalError The request processing has failed due to some unknown error. The error message returned because the request processing has failed due to an internal error. Submit a ticket.

The port number of a client that accesses a Error CenterFor more information, see error codes.