Deleting Topics in Batches
Function
This API is used to delete topics in batches.
URI
DELETE /v2/{project_id}/mqs/instances/{instance_id}/topics
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Tenant's project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
name |
Yes |
String |
Topics to delete. Multiple topics are separated by commas (,). |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
topics |
Array of topics objects |
Topic list. |
Example Requests
DELETE https://{endpoint}/v2/{project_id}/mqs/instances/{instance_id}/topics?name=topic-mqs-test1,topic-mqs-test2
Example Responses
Status code: 200
OK
{
"topics" : [ {
"id" : "topic-mqs-test1",
"success" : true
}, {
"id" : "topic-mqs-test2",
"success" : true
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
|
403 |
Forbidden |
Error Codes
See Error Codes.
Last Article: Modifying a Topic
Next Article: Deleting Topics in Batches
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.