You can call CreateResourceQueue operation to create a resource queue.
Debugging
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
}
Error codes
HttpCode | 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.Account.Abnormal | The User Account maybe is out of service! | The error message returned because the Apsara Stack tenant account is out of service. |
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 specified cluster ID does not exist. Enter a valid value. |
400 | Cluster.NotRunning | cluster not running | The error message returned because the cluster is invalid. Select a valid cluster. |
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 the request processing has failed due to an internal error. Submit a ticket. |
The port number of a client that accesses a Error CenterFor more information, see error codes.