You can call this operation to create a resource queue.

[DO NOT TRANSLATE]

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 CreateResourceQueue

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

ClusterId String Yes C-0E995C0EE7E5ECB3

The ID of the cluster.

Name String Yes DefaultQueue

The name of the resource queue.

RegionId String Yes cn-hangzhou

The ID of the region where your cluster resides.

ResourcePoolId Long  Yes 115

The ID of the resource pool.

AccessKeyId String No xxx

The AccessKey ID provided to you by Alibaba Cloud, which specifies the ID of the user.

Config.N.Category String No QUEUE_RESOURCE_LIMIT

The name 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.Note String No The capacity and weight of the queue

The description of the parameter.

Leaf Boolean No false

Specifies whether the queue is a leaf queue.

ParentQueueId Long No 225

The ID of the parent queue.

QualifiedName String No test

A parameter that you do not need to specify.

Response parameters

Parameter Type Example Description 
RequestId String A1153E6C-9FB9-466C-AC11-1ED0BC12858E

The ID of the request.

Examples

Sample requets


/? ClusterId=C-0E995C0EE7E5ECB3
&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.note=The capacity and weight of the queue
&<Common request parameters>

Sample success responses

XML format

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

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 allowed to manage resources of other users.
403 User.Account.Abnormal The User Account maybe is out of service! The error message returned because the Alibaba Cloud account is invalid.
400 AuthRealNameNotPass User real name authenticate failed! The error message returned because the Alibaba Cloud account has not passed real-name verification. Pass the verification and try again.
404 ClusterNotFound cluster not found The error message returned because the ID of the specified cluster does not exist. Check the ID of the cluster.
400 Cluster. NotRunning cluster not running The error message returned because the cluster is not running. Select a cluster that is running.
400 LimitClusterScript cluster script count limit The error message returned because the number of cluster scripts has reached the limit.
400 ClusterScriptRunning cluster has script running The error message returned because the specified cluster script has been running.
404 EcsNodeNotFound ecs node not found The error message returned because ECS instances cannot be found in the cluster. Submit a ticket.
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Submit a ticket.

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