接口 | https://[endpoint].ctapi.ctyun.cn/v2/topic/create | |||
请求方式 | POST | |||
请求参数 | 是否必填 | 位置 | 参数类型 | 说明 |
prodInstId | 是 | body | String | 实例ID |
topicName | 是 | body | String | 主题名称 |
partitionNum | 是 | body | Integer | 分区数 |
factorNum | 否 | body | Integer | 副本数 |
isPrivate | 否 | body | Integer | 是否为私有主题,1:私有主题,2:公共主题。默认是 2 |
description | 否 | body | String | 描述 |
响应参数 | 参数类型 | 描述 | ||
statusCode | String | 接口系统层面状态码。成功:800,失败:900 | ||
message | String | 描述状态 | ||
returnObj | String | 返回对象。此参数所包含的参数请见“响应示例"里面的注释 | ||
请求示例 | ||||
{ "customInfo":"fseaf", "regionId":"aefe", "prodInstId":"xsef", "topicName":"test-topic", "partitionNum":3, "isPrivate":2, "factorNum":2, //副本数 "description":"测试主题" } | ||||
响应成功示例 | ||||
{ "returnObj":{ "data":"create success" }, "message":"success", "statusCode":"800" } |