You can call this operation to create a resource queue.

Request parameters

Name Type Required Example Description
ClusterId String Yes C-0E995C0EE7E5ECB3 The cluster ID.
Name String Yes DefaultQueue The name of the queue.
RegionId String Yes cn-hangzhou The region location ID.
ResourcePoolId Long Yes 115 The ID of the resource pool.
AccessKeyId String No xxx The AccessKey ID.
Config.N.Category String No QUEUE_RESOURCE_LIMIT The category of the configuration item.
Config.N.ConfigKey String No capacity The key of the configuration item.
Config.N.ConfigValue String No 100 The value of the configuration item.
Config.N.Note String No capacity weight The note of the configuration item.
Leaf Boolean No false Indicates whether the node is a leaf node.
ParentQueueId Long No 225 The ID of the parent resource pool.
QualifiedName String No test Not required to be specified.

Response parameters

Name Type Example Description
RequestId String A544317F-4A60-4532-AC96-191B9D80420AF The request ID.

Examples

  • Sample requests
    /? 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=capacity weight
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"code":"200",
    	"requestId":"A544317F-4A60-4532-AC96-191B9D80420A",
    	"successResponse":true
    }
  • Error response examples
    JSON format
    {
    	"code":"AuthRealNameNotPass",
    	"message":"User real name authenticate failed!",
    	"requestId":"A544317F-4A60-4532-AC96-191B9D80420AF",
    	"successResponse":false
    }

Error codes

View error codes.