https://cmq-queue-{$region}.api.qcloud.com
http://cmq-queue-{$region}.api.tencentyun.com
Parameter name | Required | Type | Description |
QueueName | Yes | String | Queue name, which is unique under the same account in a single region. The queue name is a string of no more than 64 characters, must begin with a letter, and the rest can contain letters, numbers, and dashes (-). |
MaxMsgHeapNum | No | Int | Maximum number of heap messages. The range of values during the public test period is 1,000,000 - 10,000,000 The range can be reached after the official Activate 1000,000-1000,000,000 . The default value during public testing is 10,000,000 After Activate, it is officially called 100,000,000 . |
PollingWaitSeconds | No | Int | Long-polling Waiting Time for Message Receipt. The value range is 0-30 seconds, and the default value is 0. |
VisibilityTimeout | No | Int | Message visibility timed out. Value range: 1-43200 seconds (that is, within 12 hours). The default value is 30. |
MaxMsgSize | No | Int | Max Message Length. Value range is 1024-1048576Byte (that is, 1K-1024K), with a default value of 65536. |
MsgRetentionSeconds | No | Int | Message retention cycle. Value range: 60-1296000 seconds (1min-15 days), with a default value of 345600 (4 days). |
RewindSeconds | No | Int | The longest rewind time of the message. The maximum value range is 0-msgRetentionSeconds, message. The maximum rewind of the message is the preservation period of the message in the queue. 0 means the message rewind is not enabled. |
Parameter name | Type | Description |
Code | Int | 0: successful. 4440: queue does not exist. The meaning of other return values can be found in Error Codes . |
Message | String | Error message. |
RequestId | String | Request ID generated by the server. When an internal error occurs on the server, the user can submit this ID to Backend Background to locate the problem. |
MaxMsgHeapNum | Int | The maximum number of heap messages after the change. |
PollingWaitSeconds | Int | The changed message receives a long polling wait time. |
VisibilityTimeout | Int | The visibility of the changed message timed out. |
MaxMsgSize | Int | The maximum length of the changed message. |
MsgRetentionSeconds | Int | The changed message life cycle. |
RewindSeconds | Int | The longest news after the change rewind time. |
Https://domain/v2/index.php?Action=SetQueueAttributes & queueName=test-queue-123 & pollingWaitSeconds=20 & <Common Request Parameters>
{"code" : 0,"message" : "","requestId":"14534664555","queueId":"queue-ajksdfasdowe","maxMsgHeapNum":10000000,"pollingWaitSeconds":20,"visibilityTimeout":0,"maxMsgSize":65536,"msgRetentionSeconds":345600}
Was this page helpful?