huawei-cloud-api-definitions-BCC 0.1.20251025

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorRsp":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]},"GradedCount":{"description":"已保护已定级的资源统计","properties":{"complete_match":{"description":"合规资源数","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"no_match":{"description":"不合规资源数","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"partial_match":{"description":"部分合规资源数","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"total":{"description":"总数","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"}},"required":["total"],"type":"object"},"ProtectionCount":{"description":"未保护资源统计","properties":{"graded":{"$ref":"#/definitions/GradedCount","description":"已定级资源总数"},"total":{"description":"总数","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"ungraded":{"description":"未定级资源总数","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"}},"required":["total"],"type":"object"},"ResourceCountItem":{"properties":{"date":{"description":"日期, 如\"2025-05-19\"。","maxLength":64,"minLength":1,"type":"string"},"protected":{"$ref":"#/definitions/ProtectionCount","description":"已保护资源统计"},"total":{"description":"资源总数","format":"int32","maximum":2147483647,"minimum":1,"type":"integer"},"unprotected":{"$ref":"#/definitions/ProtectionCount","description":"未保护资源统计"}},"required":["total"],"type":"object"},"ResourceCountsRsp":{"description":"资源统计","properties":{"counts":{"description":"统计体","items":{"$ref":"#/definitions/ResourceCountItem"},"maxItems":100,"minItems":0,"type":"array"},"ep_id":{"description":"企业项目ID","maxLength":64,"minLength":1,"type":"string"},"provider":{"description":"云服务类型","maxLength":64,"minLength":1,"type":"string"},"region_id":{"description":"区域ID","maxLength":64,"minLength":1,"type":"string"}},"type":"object"}},"description":null,"group_id":"0cb6191c2c524d62be604224b207d979","host":"bcc.cn-north-4.myhuaweicloud.com","id":"7f218cd9621b449bba36de6e00c7b315","info_version":"v1","method":"get","name":"ShowResourcesSummary","parameters":{},"paths":{"/v1/{domain_id}/resources-summary":{"get":{"description":"查询资源统计","operationId":"ShowResourcesSummary","parameters":[{"description":"账号ID","in":"path","maxLength":36,"minLength":1,"name":"domain_id","required":true,"type":"string"},{"description":"区域ID","in":"query","maxLength":36,"minLength":1,"name":"region_id","required":false,"type":"string"},{"description":"云服务类型,ecs,evs,sfsturbo,workspace,rds,gaussdb,cbr","enum":["ecs","evs","sfsturbo","workspace","rds","gaussdb","cbr"],"in":"query","maxLength":20,"minLength":1,"name":"provider","required":false,"type":"string"},{"description":"起始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。","in":"query","maxLength":64,"minLength":1,"name":"start_time","required":false,"type":"string"},{"description":"结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。","in":"query","maxLength":64,"minLength":1,"name":"end_time","required":false,"type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"资源统计返回","examples":{"application/json":[{"date":"2025-09-09","date_total":{"protected":{"graded":{"complete_match":1,"no_match":1,"partial_match":1,"total":1},"total":1,"ungraded":1},"total":1,"unprotected":{"graded":{"complete_match":1,"no_match":1,"partial_match":1,"total":1},"total":1,"ungraded":1}},"regions":[{"providers":[{"count":{"protected":{"graded":{"complete_match":1,"no_match":1,"partial_match":1,"total":1},"total":1,"ungraded":1},"total":1,"unprotected":{"graded":{"complete_match":1,"no_match":1,"partial_match":1,"total":1},"total":1,"ungraded":1}},"provider":"ecs"},{"count":{"protected":{"graded":{"complete_match":1,"no_match":1,"partial_match":1,"total":1},"total":1,"ungraded":1},"total":1,"unprotected":{"graded":{"complete_match":1,"no_match":1,"partial_match":1,"total":1},"total":1,"ungraded":1}},"provider":"evs"}],"region_id":"cn-north-7","region_total":{"protected":{"graded":{"complete_match":1,"no_match":1,"partial_match":1,"total":1},"total":1,"ungraded":1},"total":1,"unprotected":{"graded":{"complete_match":1,"no_match":1,"partial_match":1,"total":1},"total":1,"ungraded":1}}}]}]},"schema":{"$ref":"#/definitions/ResourceCountsRsp"}},"400":{"description":"请求错误","schema":{"$ref":"#/definitions/ErrorRsp"}},"401":{"description":"未提供认证信息或认证信息错误。","schema":{"$ref":"#/definitions/ErrorRsp"}},"403":{"description":"请求页面被禁止访问。","schema":{"$ref":"#/definitions/ErrorRsp"}},"404":{"description":"未找到资源。","schema":{"$ref":"#/definitions/ErrorRsp"}},"408":{"description":"请求超出了服务器的等待时间。","schema":{"$ref":"#/definitions/ErrorRsp"}},"429":{"description":"当前请求过多。","schema":{"$ref":"#/definitions/ErrorRsp"}},"500":{"description":"请求未完成,服务异常。","schema":{"$ref":"#/definitions/ErrorRsp"}},"503":{"description":"系统暂时不可用,请求受限。","schema":{"$ref":"#/definitions/ErrorRsp"}}},"summary":"查询资源统计","tags":["资源管理"],"x-api-type":"open-api","x-iam-auth-meta-anno":{"abacAction":"bcc::listResourcesSummary","authContextInitializerName":"iamAuthListContextInitializer","authLevel":"NO_INSTANCE","model":"v5","needAbacCheck":true,"needAbacResourceCheck":false,"needApigwJwtAuthCheck":false,"needCbcCheck":false,"needRbacCheck":false,"needResourceTagCheck":false,"supportAllGrantedEps":false},"x-is-registered":"Y","x-method-annotations":["@CtsMeta(resourceType = \"Resources\", traceName = \"ShowResourcesSummary\", operationId = \"ShowResourcesSummary\", isReadOnly=true)"],"x-support-sdk":"Y"}}},"product_short":"BCC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询资源统计","tags":"资源管理","uri":null,"version":"2.0"}