Menghapus topik tertentu.
Deskripsi operasi
If you delete the topic, the publishing and subscription relationships that are established based on the topic are cleared. Exercise caution when you call this operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:DeleteTopic |
delete |
*Topic
|
None | None |
Sintaks permintaan
DELETE /instances/{instanceId}/topics/{topicName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans tempat topik berada. |
rmq-cn-7e22ody**** |
| topicName |
string |
Yes |
Nama topik. |
topic_test |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The ID of the request. The system generates a unique ID for each request. You can troubleshoot issues based on the request ID. |
AF9A8B10-C426-530F-A0DD-96320B39**** |
| success |
boolean |
Indicates whether the call is successful. |
true |
| data |
boolean |
The result data that is returned. |
true |
| code |
string |
The error code. |
Topic.NotFound |
| message |
string |
The error message. |
The topic cannot be found. |
| httpStatusCode |
integer |
The HTTP status code. |
400 |
| dynamicCode |
string |
The dynamic error code. |
TopicName |
| dynamicMessage |
string |
The dynamic error message. |
topicName |
Contoh
Respons sukses
JSONformat
{
"requestId": "AF9A8B10-C426-530F-A0DD-96320B39****",
"success": true,
"data": true,
"code": "Topic.NotFound",
"message": "The topic cannot be found.",
"httpStatusCode": 400,
"dynamicCode": "TopicName",
"dynamicMessage": "topicName"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.