https://cmq-topic-{$region}.api.qcloud.com
http://cmq-topic-{$region}.api.tencentyun.com
Parameter name | Required | Type | Description |
TopicName | Yes | String | Topic's name is unique under the same account in a single region. The name of topic is a string of no more than 64 characters, which must begin with a letter, and the rest can contain letters, numbers and underscores (-). |
SubscriptionName | Yes | String | The subscription name is unique under the same topic of the same account in a single region. The subscription name is a string of no more than 64 characters, must begin with a letter, and the rest can contain letters, numbers, and dashes (-). |
Parameter name | Type | Description |
Code | Int | 0: indicates success. For more information on the meaning of other return values, please see 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. |
TopicOwner | String | The APPID of the subscription owner. |
MsgCount | Int | The number of messages waiting for shipping to be subscribed. |
Protocol | String | Protocol, who subscribes to, currently supports two kinds of Protocol: HTTP and queue. With HTTP Protocol, users need to build their own Web Server to accept messages. Using queue, messages will be automatically pushed to CMQ queue, users can pull messages Concurrence. |
Endpoint | String | The endpoint, that receives the notification is distinguished according to Protocol's protocol: for HTTP,endpoint, it must start with "http://", host can be a domain name or IP;, enter queueName for queue,. |
NotifyStrategy | String | The retry policy of the endpoint push server when an error occurs in the push message to CMQ. The values are: (1) BACKOFF_RETRY, Backoff retry. Try again at regular intervals, and after retrying for a certain number of times, discard the message and continue to push the next message. (2) EXPONENTIAL_DECAY_RETRY, index decline retry. The interval of each retry increases exponentially, for example, at the beginning of 1s, followed by 2s, 4s, 8s. Because the cycle of Topic messages is one day, at most one day of retry will discard the message. The default value is EXPONENTIAL_DECAY_RETRY. |
NotifyContentFormat | String | The format of the push content. Value: (1) JSON; (2) SIMPLIFIED, is raw format. If protocol is queue, the value must be SIMPLIFIED. If protocol is HTTP, both values can be used, and the default value is JSON. |
CreateTime | Int | The time when the subscription was created. Returns Unix timestamp, accurate to seconds. |
LastModifyTime | Int | When the subscription property was last modified. Returns Unix timestamp, accurate to seconds. |
BindingKey | String array | Represents the filtering policy for subscribing to receive messages. |
https://domain/v2/index.php?Action=GetSubscriptionAttributes&topicName=test-topic-123&subscriptionName=test-subscription-123&<Common request parameters>
{"code" : 0,"message" : "","requestId":"14534664555","topicOwner":"1231884","msgCount":234,"protocol":"http","endpoint":"http://testhost/testpath","notifyStrategy":"EXPONENTIAL_DECAY_RETRY","notifyContentFormat":"SIMPLIFIED","createTime":1462268960,"lastModifyTime": 1462269960}
Was this page helpful?