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":{"CreateDestinationRequestBody":{"example":{"app_id":"ef3845be-091a-4ab5-869a-9de0025e2165","destination_name":"destination","destination_type":0,"mqs_sasl_ssl":false,"password":"AS223ds4320d","server":"xx.xx.xx.xx","tag":"tag1","token":"sd123r12312w12wdrfvgrt4t34t","topic":"/target_topic1","user_name":"user1"},"properties":{"app_id":{"description":"应用ID,目标端为0时需明确对方的APP_ID","maxLength":64,"minLength":0,"type":"string"},"destination_name":{"description":"目标数据源名称","maxLength":64,"minLength":0,"type":"string"},"destination_type":{"description":"操作类型,枚举值:0-目标端为本ROMA实例内MQS,; 7-目标端为设备","enum":[0,7],"format":"int32","maximum":10,"minimum":0,"type":"integer"},"mqs_sasl_ssl":{"description":"目标端数据源MQS的SASL字段是否需要支持SSL加密","type":"boolean"},"password":{"description":"目标数据源密码","maxLength":64,"minLength":0,"type":"string"},"server":{"description":"目标端数据源服务,连接地址","maxLength":64,"minLength":0,"type":"string"},"tag":{"description":"目标数据源标签","maxLength":64,"minLength":0,"type":"string"},"token":{"description":"目标端数据源token","maxLength":1000,"minLength":0,"type":"string"},"topic":{"description":"目标数据源主题,从MQS服务中获取已有topic","maxLength":64,"minLength":0,"type":"string"},"user_name":{"description":"目标数据源用户名","maxLength":64,"minLength":0,"type":"string"}},"required":["destination_type","topic"]},"Destination":{"example":{"app_id":null,"destination_id":27678,"destination_name":null,"destination_type":7,"mqs_sasl_ssl":"false","password":null,"server":"server","tag":"device","token":"token","topic":"8si8ST122893/in/214","user_name":null},"properties":{"app_id":{"description":"应用ID,目标端为0时需明确对方的APP_ID","maxLength":64,"minLength":0,"type":"string"},"destination_id":{"description":"目标数据源ID","maximum":999999999999999999,"minimum":1,"type":"integer"},"destination_name":{"description":"目标数据源名称","maxLength":64,"minLength":0,"type":"string"},"destination_type":{"description":"操作类型,枚举值:0-目标端为本ROMA实例内MQS; 7-目标端为设备","enum":[0,7],"format":"int32","maximum":10,"minimum":0,"type":"integer"},"mqs_sasl_ssl":{"description":"目标端数据源MQS的SASL字段是否需要支持SSL加密","type":"boolean"},"password":{"description":"目标数据源密码","maxLength":500,"minLength":0,"type":"string"},"server":{"description":"目标端数据源服务","maxLength":200,"minLength":0,"type":"string"},"tag":{"description":"目标数据源标签","maxLength":200,"minLength":0,"type":"string"},"token":{"description":"目标端数据源token","maxLength":1000,"minLength":0,"type":"string"},"topic":{"description":"目标数据源主题","maxLength":64,"minLength":0,"type":"string"},"user_name":{"description":"目标数据源用户名","maxLength":80,"minLength":0,"type":"string"}}},"Error":{"properties":{"error_code":{"description":"系统错误码,针对4xx和5xx类HTTP错误码的详细错误码","maxLength":64,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述","maxLength":200,"minLength":0,"type":"string"},"request_id":{"description":"消息ID","maxLength":64,"minLength":0,"type":"string"}}}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"7262d787d11d4d6ea130ab3eef784337","info_version":"v2","method":"post","name":"CreateDestination","parameters":{"instance_id":{"description":"实例ID","in":"path","maxLength":36,"minLength":0,"name":"instance_id","required":true,"type":"string"},"project_id":{"description":"项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。","in":"path","maxLength":32,"minLength":0,"name":"project_id","required":true,"type":"string"},"rule_id":{"description":"规则ID","in":"path","maxLength":20,"minLength":0,"name":"rule_id","required":true,"type":"string"}},"paths":{"/v2/{project_id}/link/instances/{instance_id}/rules/{rule_id}/destinations":{"post":{"description":"添加目标数据源","operationId":"CreateDestination","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/instance_id"},{"$ref":"#/parameters/rule_id"},{"description":"创建规则目标数据源请求对象","in":"body","name":"CreateDestinationRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateDestinationRequestBody"}}],"produces":["application/json"],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/Destination"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/Error"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/Error"}}},"summary":"添加目标数据源","tags":["规则引擎"],"x-apigateway-request-type":"public","x-is-registered":"Y","x-support-sdk":"Y"}}},"product_short":"ROMA","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"添加目标数据源","tags":"规则引擎","uri":null,"version":"2.0"}