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":{"CreateServiceRequestBody":{"example":{"description":"service","product_template_id":10001,"service_name":"service","status":0},"properties":{"description":{"description":"服务描述,长度0-200","maxLength":200,"minLength":0,"type":"string"},"product_id":{"description":"服务归属的产品ID,产品模板ID和产品ID二选一必填,自动向下取整","maximum":999999999999999999,"minimum":1,"type":"integer"},"product_template_id":{"description":"服务归属的产品模板ID,产品模板ID和产品ID二选一必填,自动向下取整","maximum":999999999999999999,"minimum":1,"type":"integer"},"service_name":{"description":"服务名称,支持中文,英文大小写,数字,下划线和中划线,长度2-64","maxLength":64,"minLength":2,"type":"string"},"status":{"description":"服务状态 0-启用 1-停用","enum":[0,1],"format":"int32","maximum":10,"minimum":0,"type":"integer"}},"required":["status","service_name"]},"CreatedUser":{"description":"创建时的用户","example":{"user_id":"6546435432432","user_name":"user1"},"properties":{"user_id":{"description":"用户ID","maxLength":64,"minLength":0,"type":"string"},"user_name":{"description":"用户名","maxLength":64,"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"}}},"LastUpdatedUser":{"description":"最后更新时的用户","example":{"user_id":"6546435432432","user_name":"user1"},"properties":{"user_id":{"description":"用户ID","maxLength":64,"minLength":0,"type":"string"},"user_name":{"description":"用户名","maxLength":64,"minLength":0,"type":"string"}}},"Service":{"example":{"created_datetime":1607502702474,"created_user":{"user_id":null,"user_name":"user"},"description":null,"last_updated_datetime":1607572282845,"last_updated_user":{"user_id":null,"user_name":"user"},"product_id":122893,"product_template_id":null,"service_id":10190,"service_name":"s1","status":0},"properties":{"created_datetime":{"description":"创建时间止,格式timestamp(ms),使用UTC时区","format":"int64","maximum":999999999999999999,"minimum":1,"type":"integer"},"created_user":{"$ref":"#/definitions/CreatedUser"},"description":{"description":"服务描述,长度0-200","maxLength":200,"minLength":0,"type":"string"},"last_updated_datetime":{"description":"最后修改时间止,格式timestamp(ms),使用UTC时区","format":"int64","maximum":999999999999999999,"minimum":1,"type":"integer"},"last_updated_user":{"$ref":"#/definitions/LastUpdatedUser"},"product_id":{"description":"服务归属的产品ID","maximum":999999999999999999,"minimum":1,"type":"integer"},"product_template_id":{"description":"服务归属的产品模板ID","maximum":999999999999999999,"minimum":1,"type":"integer"},"service_id":{"description":"服务ID","maximum":999999999999999999,"minimum":1,"type":"integer"},"service_name":{"description":"服务名称,支持中文,英文大小写,数字,下划线和中划线,长度2-64","maxLength":64,"minLength":2,"type":"string"},"status":{"description":"服务状态 0-启用 1-停用","enum":[0,1],"format":"int32","maximum":10,"minimum":0,"type":"integer"}}}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"73e91392e68f488fb396a824f5a91a89","info_version":"v2","method":"post","name":"CreateService","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"}},"paths":{"/v2/{project_id}/link/instances/{instance_id}/services":{"post":{"description":"创建服务","operationId":"CreateService","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/instance_id"},{"description":"创建服务请求对象","in":"body","name":"CreateServiceRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateServiceRequestBody"}}],"produces":["application/json"],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/Service"}},"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"}