Distributed Message Service RocketMQ

Deleting a Topic

2024-07-08 08:46:27

API Introduction

Used to delete a topic.

API Restrictions

None.

URl

POST     https://[endpoint]/v2/topic/delete

Request Parameters

Request Parameters

Required or Not

Position

Parameter Type

Description

prodInstId

Yes

body

String

Instance   ID

topicName

Yes

body

String

Topic   Name

Response Parameter

Response Parameter

Parameter Type

Description

statusCode

String

The   status code of the interface on the system layer. Success: 800; failure: 900.

message

String

Status   Description

returnObj

String

Return   the object. The parameters included in this parameter are described in the   comments in Response Examples.

 

Sample Request

POST     https://[endpoint]/v2/topic/delete

{

    "prodInstId":"mq_test",

    "topicName":"test1"

}

Examples of a Successful Response

{

    "returnObj":{

 

    },

    "message":"success",

    "statusCode":800

}

Example of a Failed Response

{

    "returnObj": {},

    "message": "...",

    "statusCode": "900"

}


J2OgV4wQ77W0