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":{"CreatePropertyRequestBody":{"example":{"data_type":"integer","description":"power_usage","max":"100","min":"0","property_name":"power_usage","required":0,"step":"1","unit":"W"},"properties":{"data_type":{"description":"属性数据类型,枚举值大小写敏感;number格式为数字,范围±1.0 x 10^-28 to ±7.9228 x 10^28;sting为字符串;integer为整数;datetime为时间,格式为yyyyMMddTHHmmss;json为自定义json格式","enum":["integer","number","string","datetime","json"],"type":"string"},"description":{"description":"属性描述,长度0-200","maxLength":200,"minLength":0,"type":"string"},"enum_dict":{"description":"当数据类型为boolean枚举值时填写json格式数据,形如\"enum_dict\":{\"0\":\"xxx\",\"1\":\"xxx\"}","type":"object"},"enum_list":{"description":"string的枚举值数组,使用逗号分隔","maxLength":2000,"minLength":0,"type":"string"},"max":{"default":65536,"description":"最大值,当data_type为integer或number时必填","maxLength":10,"minLength":0,"type":"string"},"max_length":{"default":10,"description":"字符串最大长度,当data_type为string, datetime, json时必填,自动向下取整","maximum":999999,"minimum":1,"type":"integer"},"method":{"description":"访问模式(兼容20.0,R属性可读,W属性可写,E属性可执行)","maxLength":3,"minLength":1,"type":"string"},"min":{"default":0,"description":"最小值,当data_type为integer或number时必填","maxLength":10,"minLength":0,"type":"string"},"property_name":{"description":"属性名称,首位必须为字母,支持大小写字母,数字,中划线及下划线,长度2-50","maxLength":50,"minLength":2,"type":"string"},"required":{"description":"是否必填 0-非必填 1-必填","enum":[0,1],"format":"int32","maximum":10,"minimum":0,"type":"integer"},"step":{"default":1,"description":"步长,当data_type为integer或number时必填","maxLength":10,"minLength":0,"type":"string"},"unit":{"description":"属性单位","maxLength":50,"minLength":0,"type":"string"}},"required":["property_name","data_type","required"]},"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"}}},"PropertyResponseBody":{"example":{"data_type":"datetime","description":null,"enum_list":null,"max":65536,"max_length":"10","method":"RWE","min":0,"property_id":3320,"property_name":"p2","required":0,"step":1,"unit":"yuan"},"properties":{"data_type":{"description":"属性数据类型,boolean枚举值大小写敏感;number格式为数字,范围±1.0 x 10^-28 to ±7.9228 x 10^28;string为字符串;integer为整数;datetime为时间,格式为yyyyMMddTHHmmss;json为自定义json格式; array为数组类型","enum":["integer","number","string","datetime","json","boolean","array"],"maxLength":10,"minLength":0,"type":"string"},"description":{"description":"属性描述,长度0-200","maxLength":200,"minLength":0,"type":"string"},"enum_dict":{"description":"当数据类型为boolean枚举值时填写json格式数据,形如\"enum_dict\":{\"0\":\"xxx\",\"1\":\"xxx\"}","type":"object"},"enum_list":{"description":"string的枚举值数组,使用逗号分隔","maxLength":2000,"minLength":0,"type":"string"},"max":{"default":65536,"description":"最大值,当data_type为integer或number时有效","maxLength":10,"minLength":0,"type":"string"},"max_length":{"default":10,"description":"字符串最大长度,当data_type为string, datetime, json时有效","format":"int32","maximum":99999999,"minimum":1,"type":"integer"},"method":{"description":"访问模式(兼容20.0,R属性可读,W属性可写,E属性可执行)","maxLength":3,"minLength":1,"type":"string"},"min":{"default":0,"description":"最小值,当data_type为integer或number时有效","maxLength":10,"minLength":0,"type":"string"},"property_id":{"description":"属性ID","format":"int32","maximum":99999999999999999,"minimum":1,"type":"integer"},"property_name":{"description":"属性名称,首位必须为字母,支持大小写字母,数字,中划线及下划线,长度2-50","maxLength":50,"minLength":2,"type":"string"},"required":{"description":"是否必填 0-非必填 1-必填","enum":[0,1],"format":"int32","maximum":10,"minimum":0,"type":"integer"},"step":{"default":1,"description":"步长,当data_type为integer或number时有效","maxLength":10,"minLength":0,"type":"string"},"unit":{"description":"属性单位","maxLength":10,"minLength":0,"type":"string"}}}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"f95e579d75724af3ab1a4c0298eaf2fa","info_version":"v2","method":"post","name":"CreateProperty","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"},"service_id":{"description":"服务ID","in":"path","maxLength":20,"minLength":0,"name":"service_id","required":true,"type":"string"}},"paths":{"/v2/{project_id}/link/instances/{instance_id}/services/{service_id}/properties":{"post":{"description":"创建属性","operationId":"CreateProperty","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/instance_id"},{"$ref":"#/parameters/service_id"},{"description":"创建属性请求对象","in":"body","name":"CreatePropertyRequestBody","required":true,"schema":{"$ref":"#/definitions/CreatePropertyRequestBody"}}],"produces":["application/json"],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/PropertyResponseBody"}},"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"}