This API is used to clean up multiple topics of a Kafka instance in batches.
POST /v2/kafka/{project_id}/instances/{instance_id}/topics/cleanup
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
instance_id |
Yes |
String |
Instance ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
topics |
No |
Array of strings |
List of topics to be cleared up. |
Status code: 200
Parameter |
Type |
Description |
---|---|---|
topics |
Array of topics objects |
Topic list. |
POST https://{endpoint}/v2/kafka/{project_id}/instances/{instance_id}/topics/cleanup { "topics" : [ "topic_1", "topic_2" ] }
Status code: 200
The cleanup is successful.
{ "topics" : [ { "id" : "topic_1", "success" : true }, { "id" : "topic_2", "success" : true } ] }
Status Code |
Description |
---|---|
200 |
The cleanup is successful. |
See Error Codes.