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 (-). |
SearchWord | No | String | Used to filter the subscription list, Backend Background uses fuzzy matching to return the subscription list that meets the criteria. If this parameter is left empty, all subscriptions under the account will be returned by default. |
Offset | No | Int | This page gets the starting position of the subscription list when paging. If Enter reaches this value, Enter limit must also be required. When this value defaults, Backend Background takes the default value of 0. Value range: 0-1000. |
Limit | No | Int | This page gets the number of subscriptions when paging. The value range of this parameter is 0-100. If the parameter is not passed, it defaults to 20. |
Parameter name | Type | Description |
Code | Int | |
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. |
TotalCount | Int | The total number of topic returned by this request under the user account, rather than the number of topic obtained on this page after paging. |
SubscriptionList | Array | Topic list information, each element represents a topic information. |
Parameter name | Type | Description |
SubscriptionId | String | Subscribe to ID. Subscription ID is used when pulling monitoring data. |
SubscriptionName | 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 (-). |
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 protocol: for HTTP,endpoint, you must use http:// At the beginning, host can be a domain name or IP. |
https://domain/v2/index.php?Action=ListSubscriptionByTopic&searchWord=abc&<Common request parameters>
{"code":0,"message":"","requestId":"14534664555","totalCount":2,"subscriptionList":[{"subscriptionId":"subsc-sdkfl","subscriptionName":"test-sub2","protocol":"http","endpoint":"http://testhost/testpath"},{"subscriptionId":"subsc-34lasdk","subscriptionName":"test-sub1","protocol":"queue","endpoint":"test-queue-name"}]}
Was this page helpful?