Creates a topic.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TopicName | string | Yes | The name of the topic that you want to create. | test |
EnableLogging | boolean | No | Specifies whether to enable the logging feature. Valid values:
| true |
MaxMessageSize | long | No | The maximum length of the message that is sent to the topic. Valid values: 1024 to 65536. Unit: bytes. Default value: 65536. | 10240 |
Tag | array<object> | No | The tags. | |
object | No | |||
Key | string | No | The tag key. | tag1 |
Value | string | No | The tag value. | joyce.wang |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "06273500-249F-5863-121D-74D51123E62C",
"Code": 200,
"Status": "Success",
"Message": "operation success",
"Success": true,
"Data": {
"Code": 200,
"Message": "",
"Success": true
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-05-27 | The request parameters of the API has changed | View Change Details |