Deleting Topics in Batches
Function
This API is used to delete topics in batches.
URI
POST /v2/{project_id}/mqs/instances/{instance_id}/topics/delete
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant's project ID. |
instance_id |
Yes |
String |
Instance ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
topics |
Yes |
Array of strings |
List of topics to delete. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
topics |
Array<Object> |
List of topics to delete. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Topic name. |
success |
Boolean |
Whether the topics are deleted. |
Example Requests
POST https://{endpoint}/v2/{project_id}/mqs/instances/{instance_id}/topics/delete { "topics" : [ "topic-test-2" ] }
Example Responses
Status code: 200
OK
{ "topics" : [ { "id" : "topic-test-2", "success" : true } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
403 |
Forbidden |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot