You can call this operation to update a resource pool.

Update resource pools

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyResourcePool

The operation that you want to perform. Set the value to ModifyResourcePool.

ClusterId String Yes C-0E995C0EE7E5ECB3

The ID of the cluster.

Id String Yes 116

The ID of the resource pool.

RegionId String Yes cn-hangzhou

The ID of the region to which the cluster belongs.

AccessKeyId String No LTAI8ljWyu7y****

The AccessKey ID provided to you by Alibaba Cloud. This parameter identifies the user.

Active Boolean No true

Specifies whether to activate the service.

Config.N.Category String No DEFAULT_SETTINGS

The category of the parameter for configuring the resource pool. Valid values: DEFAULT_SETTINGS, ACCESS_CONTROL_SETTINGS, QUEUE_RESOURCE_LIMIT, QUEUE_SCHEDULING_POLICY, QUEUE_PREEMPTION, QUEUE_SUBMISSION_ACCESS_CONTROL, and QUEUE_ADMINISTRATION_ACCESS_CONTROL.

Config.N.ConfigKey String No capacity

The key of the parameter.

Config.N.ConfigValue String No 100

The value of the parameter.

Config.N.Id String No 10

The ID of the parameter.

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.

Name String No custompool

The name of the resource pool.

Yarnsiteconfig String No Yarnsiteconfig

The list of YARN configurations.

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-0E995C0EE7E5ECB3
&Id=116
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ModifyResourcePoolResponse>
	  <code>200</code>
	  <requestId>A544317F-4A60-4532-AC96-191B9D80420A</requestId>
	  <successResponse>true</successResponse>
</ModifyResourcePoolResponse>

JSON format

{
	"successResponse":true,
	"requestId":"A544317F-4A60-4532-AC96-191B9D80420A",
	"code":"200"
}

Error codes

HTTP status code 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 other user's resources.
403 User.Account.Abnormal The User Account maybe is out of service! The error message returned because the user account is out of service.
403 JobId.Not.Exist Job [%s] does not exist or is deleted! The error message returned because the ID of the specified job does not exist. Specify 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 where your cluster resides. Specify 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.

For a list of error codes, visit the API Error Center.