调用DeleteTopic接口删除Kafka Topic。
本接口会删除实例下Topic的相关资源,Topic删除后不可恢复,请谨慎调用。
2018-01-01
。参数 | 参数类型 | 是否必选 | 示例值 | 说明 |
---|---|---|---|---|
TopicName | String | 必选 | my_topic | 待删除Topic的名称。 |
InstanceId | String | 必选 | kafka-****x | 待删除Topic所属的实例ID。 |
null
POST https://kafka.volcengineapi.com/?Action=DeleteTopic&Version=2018-01-01 HTTP/1.1 Accept: application/json Content-Type: application/json Host: kafka.volcengineapi.com X-Date: 20210328T100802Z Authorization: HMAC-SHA256 Credential=AK********/20210328/cn-beijing/kafka/request, SignedHeaders=x-date, Signature=******** { "TopicName": "test-plb1", "InstanceId": "kafka-****x" }
{ "ResponseMetadata": { "RequestId": "****************", "Action": "DeleteTopic", "Version": "2018-01-01", "Service": "kafka", "Region": "cn-beijing" }, "Result": null }