You need to enable JavaScript to run this app.
文档中心
云原生消息引擎

云原生消息引擎

复制全文
下载 pdf
Topic 管理
TopicExist - 判断 Topic 是否存在
复制全文
下载 pdf
TopicExist - 判断 Topic 是否存在
调用 TopicExist 接口,判断 Topic 是否存在。
调试
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
请求参数
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数
Action string 必选 示例值:TopicExist
要执行的操作,取值:TopicExist。
Version string 必选 示例值:2023-06-01
API 的版本,取值:2023-06-01。
TopicId string 可选 示例值:f129bb8ddb5e******33a9ce5
Topic ID。
InstanceId string 可选 示例值:bmq-****pq4
实例 ID。
TopicName string 可选 示例值:topic-test
Topic 名称。
返回参数
下方仅列出本接口特有的返回参数。更多信息请参见返回结构
Existed boolean 示例值:true
判断 Topic 是否存在。
请求示例
POST /?Action=TopicExist&Version=2023-06-01&TopicId=f129bb8ddb5e******33a9ce5&InstanceId=bmq-****pq4&TopicName=topic-test HTTP/1.1
Host: bmq.cn-beijing.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20260323T104232Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260323/cn-beijing/bmq/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f
{}
返回示例
{
"ResponseMetadata": {
"RequestId": "2026032318321715*****00639E64AF",
"Action": "TopicExist",
"Version": "2023-06-01",
"Service": "bmq",
"Region": "cn-beijing"
},
"Result": {
"Existed": true
}
}
错误码
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码
错误码
错误信息
说明
200
InvalidParameter
parameter is invalid, pls check parameters
参数值无效。
200
Unauthorized
authorized error
授权错误,请授权或切换账号后重试。
200
InternalServiceError
internal service error, please contact with admin
内部服务错误,请联系技术支持或提交工单
200
DatabaseError
database error
数据库错误。
200
ParameterEncodingError
Failure encoding object into query map
参数编码异常,请联系技术支持或提交工单
最近更新时间:2026.03.24 10:06:15
这个页面对您有帮助吗?
有用
有用
无用
无用