You can call ModifyResourcePool operation to update a resource pool.

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. 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:

  • true: The pool is an active activation pool.
  • false: not an active active pool.
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:

  • DEFAULT_SETTINGS: the default configuration.
  • ACCESS_CONTROL_SETTINGS: Resource Access Management settings.
  • QUEUE_RESOURCE_LIMIT: the resource limit of the queue.
  • QUEUE_SCHEDULING_POLICY: The queue scheduling policy.
  • QUEUE_PREEMPTION: queue preemption.
  • QUEUE_SUBMISSION_ACCESS_CONTROL: The queue submits Resource Access Management.
  • QUEUE_ADMINISTRATION_ACCESS_CONTROL: The queue management Resource Access Management.
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"
}