huawei-cloud-api-definitions-ROMA 0.1.20240626

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"CommonErrResp":{"properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误信息","type":"string"}}},"CreateMqsInstanceTopicReq":{"example":{"access_policy":"all","app_id":"c5abd910-02b1-4bc4-b587-c3fe4c49dab9","description":"test,你好","name":"topic-test-2","partition":3,"replication":3,"retention_time":72,"sensitive_word":"sss || ddd","sync_message_flush":false,"sync_replication":false,"tag":"11 || 22 || aa || bb&11 || 22 || aa || bb"},"properties":{"access_policy":{"description":"权限类型。\n  - all:发布+订阅\n  - pub:发布\n  - sub:订阅","enum":["all","pub","sub"],"type":"string"},"app_id":{"description":"集成应用key。","type":"string"},"description":{"description":"描述。长度0-1000字符。","type":"string"},"name":{"description":"topic名称,以字母开头,仅能包含数字,字母,下划线(_),中划线(-),长度3-200字符。","type":"string"},"partition":{"description":"topic分区数,设置消费的并发数。\n\n取值范围:1-50。\n\n默认值:3。","type":"integer"},"replication":{"description":"副本数,配置数据的可靠性。\n\n取值范围:1-3。\n\n默认值:3。\n\n> 体验版实例的副本数只能为1。","type":"integer"},"retention_time":{"description":"消息老化时间。默认值为72。取值范围1~720,单位小时。","type":"integer"},"sensitive_word":{"description":"敏感字段。\n\n当有多个敏感字段时,敏感字段用符号“||”隔开。","type":"string"},"sync_message_flush":{"description":"是否使用同步落盘。默认值为false。同步落盘会导致性能降低。","type":"boolean"},"sync_replication":{"description":"是否开启同步复制,开启后,客户端生产消息时相应的也要设置acks=-1,否则不生效,默认关闭。","type":"boolean"},"tag":{"description":"权限类型对应的标签。\n\n当权限类型是all时,发布和订阅的标签用符号“&”隔开。\n\n当有多个标签时,标签用符号“||”隔开。","type":"string"}},"required":["name","app_id","access_policy"],"type":"object"},"CreateMqsInstanceTopicResp":{"properties":{"name":{"description":"topic名称。","type":"string"}},"type":"object"}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"7dd9faa8ac984a84b105a03a6560cfa5","info_version":"v2","method":"post","name":"CreateMqsInstanceTopic","parameters":{},"paths":{"/v2/{project_id}/mqs/instances/{instance_id}/topics":{"post":{"description":"创建Topic。","operationId":"CreateMqsInstanceTopic","parameters":[{"description":"租户的项目ID。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"实例ID。","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"请求消息。","in":"body","name":"CreateMqsInstanceTopicRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateMqsInstanceTopicReq"}}],"responses":{"200":{"description":"OK","examples":{"application/json":{"name":"topic-mqs-test"}},"schema":{"$ref":"#/definitions/CreateMqsInstanceTopicResp"}},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":400,"error_msg":"Bad Request"}},"schema":{"$ref":"#/definitions/CommonErrResp"}},"403":{"description":"Forbidden","examples":{"application/json":{"error_code":403,"error_msg":"Forbidden"}},"schema":{"$ref":"#/definitions/CommonErrResp"}}},"schemes":["https"],"summary":"创建Topic","tags":["主题管理"],"x-apigateway-request-type":"public","x-hybridcloud":true,"x-is-registered":"Y","x-request-examples-1":{"access_policy":"all","app_id":"c5abd910-02b1-4bc4-b587-c3fe4c49dab9","description":"test","name":"topic-test-2","partition":3,"replication":3,"retention_time":72,"sensitive_word":"sss || ddd","sync_message_flush":false,"sync_replication":false,"tag":"11 || 22 || aa || bb&11 || 22 || aa || bb"},"x-request-examples-url-1":"POST https://{endpoint}/v2/{project_id}/mqs/instances/{instance_id}/topics","x-support-sdk":"Y"}}},"product_short":"ROMA","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建Topic","tags":"主题管理","uri":null,"version":"2.0"}