huawei-cloud-api-definitions-ManageOneOCHCS 0.1.20260605

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"ReturnServiceCount":{"description":"返回服务总数","properties":{"count":{"description":"数量。","format":"int64","maximum":2147483646,"minimum":0,"type":"integer"},"serviceName":{"description":"名称。","maxLength":256,"minLength":1,"type":"string"}}},"ReturnServiceCountList":{"description":"返回服务总数列表","properties":{"objList":{"description":"资源实例数量列表。","items":{"$ref":"#/definitions/ReturnServiceCount"},"type":"array"}}}},"description":null,"group_id":"a58bba086da947389167b8c3715f7155","host":"hcs.cn-north-4.myhuaweicloud.com","id":"02075722d01e40bfab6db14ff002c23b","info_version":"v1","method":"get","name":"CountInstances","parameters":{},"paths":{"/rest/tenant-resource/v1/instances/count/{dimension-name}/{dimension-id}":{"get":{"consumes":["application/json"],"description":"查询资源实例数量信息。","operationId":"CountInstances","parameters":[{"description":"IAM/AUTH token。","in":"header","name":"x-auth-token","required":true,"type":"string"},{"description":"维度名称。","enum":["vdc"],"in":"path","maxLength":256,"minLength":1,"name":"dimension-name","required":true,"type":"string"},{"description":"维度ID。","in":"path","maxLength":32,"minLength":1,"name":"dimension-id","required":true,"type":"string"},{"default":false,"description":"继承关系,是否包含子树,默认false。","enum":[false,true],"in":"query","name":"inherit","type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"资源实例数量信息。","examples":{"application/json":{"objList":[{"count":0,"serviceName":"ECS"},{"count":0,"serviceName":"EVS"},{"count":0,"serviceName":"VPC"},{"count":0,"serviceName":"BMS"},{"count":0,"serviceName":"ELB"},{"count":0,"serviceName":"VFW"},{"count":0,"serviceName":"EIP"},{"count":0,"serviceName":"IMS"}]}},"schema":{"$ref":"#/definitions/ReturnServiceCountList"}},"400":{"description":"参数错误。"},"403":{"description":"URL鉴权失败。"},"404":{"description":"rest接口未找到。"},"406":{"description":"流控限流。"},"500":{"description":"默认ServiceException异常码,应用内部错误。"},"502":{"description":"网关错误。"},"503":{"description":"服务不可用。"},"504":{"description":"表示时间超时,总线超时时间300s。"},"888":{"description":"服务摘机,不提供服务。"}},"summary":"查询资源实例数量信息","tags":["资源管理"],"x-opseverity":"Minor","x-precautions":"使用前请参考《资源北向模型》,获取系统支持的资源类型、关系类型、资源分类及属性列表。调用该接口需要“查询实例详情”权限,归属权限组:运维中心>资源实例管理。\n错误码:当请求不成功时,响应体内的错误码信息请参见“ManageOne 运维面API参考 > 错误码说明 > 资源管理特性”章节。\n","x-request-examples-1":"","x-request-examples-description-1":"","x-request-examples-url-1":"GET https://{endpoint}/rest/tenant-resource/v1/instances/count/vdc/1","x-resource":"查询资源实例数量信息","x-support-sdk":"N"}}},"product_short":"ManageOneOCHCS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询资源实例数量信息","tags":"资源管理","uri":null,"version":"2.0"}