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":{"CreateDeviceGroupRequestBody":{"example":{"app_id":"ef3845be-091a-4ab5-869a-9de0025e2165","description":"设备分组A说明","name":"设备分组A","parent_id":10001},"properties":{"app_id":{"description":"分组归属应用ID","maxLength":36,"minLength":0,"type":"string"},"description":{"description":"分组描述","maxLength":200,"minLength":0,"type":"string"},"name":{"description":"分组名称,支持中文,英文大小写,数字,下划线和中划线,长度2-64","maxLength":64,"minLength":2,"type":"string"},"parent_id":{"description":"父分组ID,自动向下取整","maximum":99999999999999999,"minimum":0,"type":"integer"}},"required":["name","app_id","parent_id"]},"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"}}},"DeviceGroup":{"example":{"app_id":"fe382523-cf76-4152-9fc6-f772d4427302","created_datetime":"2020-12-11","created_user":{"user_id":"6546435432432","user_name":"user1"},"description":"group","id":1,"last_updated_datetime":"2020-12-11","last_updated_user":{"user_id":"6546435432432","user_name":"user1"},"name":"group1","parent_id":0,"permissions":["read","access","delete","modify"]},"properties":{"app_id":{"description":"分组归属应用ID","maxLength":36,"minLength":0,"type":"string"},"created_datetime":{"description":"创建时间","maxLength":50,"minLength":0,"type":"string"},"created_user":{"$ref":"#/definitions/CreatedUser"},"description":{"description":"分组描述,长度0-200","maxLength":200,"minLength":0,"type":"string"},"id":{"description":"分组ID","format":"int32","maximum":99999999999999999,"minimum":1,"type":"integer"},"last_updated_datetime":{"description":"最后修改时间","maxLength":50,"minLength":0,"type":"string"},"last_updated_user":{"$ref":"#/definitions/LastUpdatedUser"},"name":{"description":"分组名称,支持中文,英文大小写,数字,下划线和中划线,长度2-64","maxLength":64,"minLength":2,"type":"string"},"parent_id":{"description":"父分组ID","format":"int32","maximum":99999999999999999,"minimum":1,"type":"integer"},"permissions":{"$ref":"#/definitions/Permissions"}}},"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"}}},"Permissions":{"description":"权限","items":{"description":"权限","maxLength":10,"type":"string"},"maxItems":9999,"minItems":0,"type":"array"}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"8de81ad0417e437398b71d84aa6883e1","info_version":"v2","method":"post","name":"CreateDeviceGroup","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}/device-groups":{"post":{"description":"创建设备分组","operationId":"CreateDeviceGroup","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/instance_id"},{"description":"创建设备分组请求对象","in":"body","name":"CreateDeviceGroupRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateDeviceGroupRequestBody"}}],"produces":["application/json"],"responses":{"200":{"description":"Created","schema":{"$ref":"#/definitions/DeviceGroup"}},"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"}