You need to enable JavaScript to run this app.
导航

GetTopic

最近更新时间2023.07.12 17:56:39

首次发布时间2021.08.30 16:57:44

调用 GetTopic 接口查看指定 Topic 的详细信息。

请求参数

参数

参数类型

是否必选

示例值

说明

InstanceId

String

必选

MQ_INST_********

实例 ID。

TopicName

String

必选

newtopic

Topic 名称。

响应参数

参数

参数类型

说明

TopicDetail

TopicDetail

Topic 的详细信息。详细说明请参考 TopicDetail

示例

请求示例

POST https://rocketmq.volcengineapi.com/?Action=GetTopic&Version=2021-04-01 HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: rocketmq.volcengineapi.com
X-Date: 20210328T100802Z
Authorization: HMAC-SHA256 Credential=AK*********************/20210328/cn-beijing/rocketmq/request, SignedHeaders=x-date, Signature=*********************

{
  "InstanceId": "MQ_INST_********",
  "TopicName": "new"
}

响应示例

{
  "ResponseMetadata": {
    "RequestId": "*********************",
    "Action": "GetTopic",
    "Version": "2021-04-01",
    "Service": "rocketmq",
    "Region": "cn-beijing"
  },
  "Result": {
        "TopicDetail": {
            "CreatedTime": 1649933870,
            "Description": "",
            "InstanceId": "MQ_INST_******",
            "InstanceName": "test-113",
            "InstanceRegion": "cn-beijing",
            "InstanceType": "normal",
            "MessageType": "Common",
            "Tags": [],
            "TopicName": "test"
        }
    }
}