You can call CreateResourceQueue operation to create 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 CreateResourceQueue

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

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.Category String Yes QUEUE_RESOURCE_LIMIT

The name of the parameter.

Config.N.ConfigKey String Yes capacity

The key of the parameter.

Config.N.ConfigValue String Yes 100

The value of the parameter.

Name String Yes DefaultQueue

The name of the resource queue.

RegionId String Yes cn-hangzhou

The region ID of the instance.

ResourcePoolId Long Yes 115

The ID of the resource pool.

QualifiedName String No test

A parameter that you do not need to specify.

ParentQueueId Long No 225

The ID of the parent queue.

Leaf Boolean No false

Specifies whether the queue is a leaf queue.

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 A1153E6C-9FB9-466C-AC11-1ED0BC12858E

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateResourceQueue
&ClusterId=C-0E995C0EE7E5***
&Name=DefaultQueue
&RegionId=cn-hangzhou
&ResourcePoolId=115
&AccessKeyId=xxx
&Leaf=false
&ParentQueueId=225
&QualifiedName=
&Config.1.Category=QUEUE_RESOURCE_LIMIT
&Config.1.ConfigKey=capacity
&Config.1.ConfigValue=100
&Config.1.1ote=capacity weight
&<common request parameters>

Sample success 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
}