Note:
This is a legacy API which has been hidden and will no longer be updated. We recommend using the new CMQ API 3.0 which is standardized and faster. Interface description
This API (SetTopicAttributes) is used to modify the attributes of message topic.
Domain name requested by public network API: https://cmq-topic-{$region}.api.qcloud.com
Domain name requested by private network API: http://cmq-topic-{$region}.api.tencentyun.com
The above {$region} in the domain name needs to be replaced with a specific region : gz (Guangzhou), sh (Shanghai), bj (Beijing), shjr (Shanghai Financial), szjr (Shenzhen Financial), hk (China Hong Kong), cd (Chengdu), ca (North American), usw (Maxi), sg (Singapore). The region value in the common parameters should be consistent with the region value of the domain name. If there is any inconsistency, the request will be sent to the region specified by the domain name region based on the region value of the domain name.
Note:
At any time (including during internal testing), if the public network downstream Traffic is generated by using a public network domain name, Traffic and cost will be charged. Therefore, users of the service on Tencent Cloud are strongly recommended to use it. Private network Domain name, private network will not produce Traffic cost.
The following request parameter list only lists the API request parameters. For other parameters, please see Common Request Parameters page. |
| | | 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 (-). |
| | | Max Message Length. Value range: 1024-65536 Byte (that is, 1-64K). The default value is 65536. |
Output Parameter
|
| | 0: indicates success. 4440: topic does not exist. The meaning of other return values can be referenced. Error Codes . |
| | |
| | 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. |
Example
Enter:
https://domain/v2/index.php?Action=SetTopicAttributes
&topicName=test-Topic-123
&maxMsgSize=1024
&<Common request parameters>
Output:
{
"code" : 0,
"message" : "",
"requestId":"14534664555"
}
本页内容是否解决了您的问题?