You can call ModifyResourceQueue operation to modify a resource queue.

Debugging

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 ModifyResourceQueue

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

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.

Config.N.ConfigKey String Yes capacity

The key of the parameter.

Config.N.ConfigValue String Yes 100

The value of the parameter.

Id String Yes 116

The queue ID of the resource pool.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions.

ResourcePoolId Long Yes 115

The ID of the resource pool. You can call ListResourcePool View the resource pool ID.

Name String No pool2

The name of the queue.

QualifiedName String No test

A parameter that you do not need to specify.

ParentQueueId Long No 115

The ID of the parent queue.

Leaf Boolean No false

Specifies whether the queue is a leaf queue.

Config.N.Id Long No 200

The ID of the parameter.

Config.N.Category String No QUEUE_RESOURCE_LIMIT

The name of the parameter.

Config.N.Note String No The capacity and weight of the queue

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 requets

/?Action=ModifyResourceQueue
&ClusterId=C-0E995C0EE7E5ECB3
&Id=116
&RegionId=cn-hangzhou
&ResourcePoolId=115
&AccessKeyId=xxx
&Leaf=false
&Name=pool2
&ParentQueueId=115
&QualifiedName=test
&Config.1.Category=QUEUE_RESOURCE_LIMIT
&Config.1.ConfigKey=capacity
&Config.1.ConfigValue=100
&Config.1.Id=200
&Config.1.1ote=capacity weight
&<common request parameters>

Sample responses

XML format

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

JSON Syntax

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