Creates a queue for a cluster.

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 AddQueue

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

ClusterId String Yes ehpc-hz-FYUr32****

The ID of the cluster.

You can call the ListClusters operation to query the cluster ID.

QueueName String Yes test1

The name of the queue. The name must be 1 to 63 characters in length and start with a letter. It can contain letters, digits, and underscores (_).

Response parameters

Parameter Type Example Description
RequestId String 7ABFF29F-BD9C-4663-AD5D-E620FA48****

The ID of the request.

Examples

Sample requests

http(s)://ehpc.cn-hangzhou.aliyuncs.com/?Action=AddQueue
&ClusterId=ehpc-hz-FYUr32****
&QueueName=test1
&<Common request parameters>

Sample success responses

XML format

<AddQueueResponse>
      <RequestId>7ABFF29F-BD9C-4663-AD5D-E620FA48****</RequestId>
</AddQueueResponse>

JSON format

{
    "RequestId": "7ABFF29F-BD9C-4663-AD5D-E620FA48****"
}

Error codes

HttpCode Error code Error message Description
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The service is temporarily unavailable.

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