{"base_path":"/","components":null,"consumes":"","definitions":{"ReturnCount":{"description":"返回数目","properties":{"count":{"description":"总数。","format":"int32","maximum":2147483646,"minimum":0,"type":"integer"}}}},"description":null,"group_id":"a58bba086da947389167b8c3715f7155","host":"hcs.cn-north-4.myhuaweicloud.com","id":"9e998968715d453fa07bf6b167d08934","info_version":"v1","method":"get","name":"CountCIInstances","parameters":{},"paths":{"/rest/tenant-resource/v1/instances/{class-name}/statistics":{"get":{"consumes":["application/json"],"description":"查询指定CI类型的实例数量。\n\n**接口SLA:**\n\n|SLA项|定义|\n|-----|-----|\n|请求成功率| ≥ 99.9%|\n|可用性|Tier1|\n|数据一致性|最终一致,不一致时长<1分钟|\n|吞吐量|30 次/分钟|\n|TP50请求时延|1000 ms|\n|TP99.9请求时延|2000 ms|","operationId":"CountCIInstances","parameters":[{"description":"IAM/AUTH token。","in":"header","name":"x-auth-token","required":true,"type":"string"},{"description":"资源类型,和《资源北向模型》中的资源类型保持一致。","in":"path","maxLength":60,"minLength":1,"name":"class-name","required":true,"type":"string"},{"description":"查询条件,受HttpHeader最大81920字符限制。条件示例:[{\"simple\":{\"name\":\"regionId\",\"value\":\"C4CA4238A0B933828DCC509A6F75849B\",\"operator\":\"equal\"}},{\"logOp\":\"and\",\"simple\":{\"caseSensitive\":false,\"name\":\"name\",\"value\":\"NGINX-0\",\"operator\":\"equal\"}}]。字段说明:Condition(关键字),Simple(关键字),logOp(条件连接符,可取的值有\"and\",\"or\"),name(资源的属性名称),value(属性值),operator(运算符,可取的值有\"equal\",\"not equal\",\"contain\",\"not contain\",\"in\",\"not in\",\"is null\",\"not null\"等)。条件说明:{\"simple\":{\"name\":\"regionId\",\"value\":\"C4CA4238A0B933828DCC509A6F75849B\",\"operator\":\"equal\"}}表示regionId=\"C4CA4238A0B933828DCC509A6F75849B\"。{\"logOp\":\"and\",\"simple\":{\"caseSensitive\":false,\"name\":\"name\",\"value\":\"NGINX-0\",\"operator\":\"equal\"}}表示name=\"NGINX-0\",加上\"caseSensitive\":false则表示属性值\"NGINX-0\"不区分大小写,\"logOp\":\"and\"表示这个查询条件与上一个条件是and关系。。","in":"query","name":"condition","type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"查询指定CI类型的实例数量成功。","examples":{"application/json":{"count":1}},"schema":{"$ref":"#/definitions/ReturnCount"}}},"summary":"查询指定CI类型的实例数量","tags":["资源管理"],"x-opseverity":"Minor","x-precautions":"使用前请参考《资源北向模型》,获取系统支持的资源类型及属性列表。注:CLOUD_SECURITY_GROUP和CLOUD_SECURITY_GROUP_RULE不支持该接口。调用该接口需要“查询实例详情”权限,归属权限组:运维中心>资源实例管理。\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/CLOUD_VOLUME/statistics?condition={\"constraint\":[{\"simple\":{\"name\":\"regionId\",\"value\":\"C4CA4238A0B933828DCC509A6F75849B\",\"operator\":\"equal\"}},{\"logOp\":\"and\",\"simple\":{\"caseSensitive\":false,\"name\":\"name\",\"value\":\"NGINX-0\",\"operator\":\"equal\"}}]}","x-resource":"查询指定CI类型的实例数量","x-support-sdk":"N"}}},"product_short":"ManageOneOCHCS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询指定CI类型的实例数量","tags":"资源管理","uri":null,"version":"2.0"}