{"base_path":"/","components":null,"consumes":"","definitions":{},"description":null,"group_id":"a58bba086da947389167b8c3715f7155","host":"hcs.cn-north-4.myhuaweicloud.com","id":"f364e2fa879e4513bfbb7438a5f06adb","info_version":"v1","method":"get","name":"ListCSMCIInstances","parameters":{},"paths":{"/rest/cmdb/v1/instances/{className}":{"get":{"consumes":["application/json"],"description":"查询指定资源类型的所有实例。\n\n**接口SLA:**\n\n|SLA项|定义|\n|-----|-----|\n|请求成功率| ≥ 99.9%|\n|可用性|Tier1|\n|数据一致性|最终一致,不一致时长<1分钟|\n|吞吐量|10 tps|\n|TP50请求时延|500 ms|\n|TP99.9请求时延|1000 ms|","operationId":"ListCSMCIInstances","parameters":[{"description":"IAM_OP token、SSO token。","in":"header","name":"x-auth-token","required":true,"type":"string"},{"description":"资源类型名称。","in":"path","maxLength":60,"minLength":1,"name":"className","required":true,"type":"string"},{"default":1,"description":"页码,默认值1。","format":"int32","in":"query","minimum":1,"name":"pageNo","type":"integer"},{"default":20,"description":"页大小,默认值20。","format":"int32","in":"query","maximum":1000,"minimum":1,"name":"pageSize","type":"integer"},{"description":"要返回的属性所属属性组名称,默认不返回属性组属性。预留字段,目前暂不支持按条件查询。","in":"query","maxLength":128,"minLength":1,"name":"groupName","type":"string"},{"description":"要返回的字段,默认返回所有字段,格式:[\"attr1\",\"attr2\"]。","in":"query","name":"contentSelector","type":"string"},{"description":"排序方式,格式:[{\"field\":\"attr1\",\"asc\":true}]。分页查询时,建议填写该参数明确排序字段和排序方式,确保返回数据顺序的唯一性,否则无法确保返回数据顺序唯一性。","in":"query","name":"orderBy","type":"string"},{"description":"查询条件,受Http Header最大81920字符限制。条件示例:\"constraint\":[{\"simple\":{\"name\":\"incharger\",\"value\":\"ManageOne\",\"operator\":\"equal\"}},{\"logOp\":\"and\",\"simple\":{\"caseSensitive\":false,\"name\":\"name\",\"value\":\"B080-Cabinet01\",\"operator\":\"equal\"}}]。字段说明:Condition(关键字),Constraint(关键字),Simple(关键字),logOp(条件连接符,可取的值有\"and\",\"or\"),name(资源的属性名称),value(属性值),operator(运算符,可取的值有\"equal\",\"not equal\",\"contain\",\"not contain\",\"in\",\"not in\",\"is null\",\"not null\"等)。条件说明:{\"simple\":{\"name\":\"incharger\",\"value\":\"ManageOne\",\"operator\":\"equal\"}}表示incharger=\"ManageOne\"。{\"logOp\":\"and\",\"simple\":{\"caseSensitive\":false,\"name\":\"name\",\"value\":\"B080-Cabinet01\",\"operator\":\"equal\"}}表示name=\"B080-Cabinet01\",加上\"caseSensitive\":false则表示属性值\"B080-Cabinet01\"不区分大小写,\"logOp\":\"and\"表示这个查询条件与上一个条件是and关系。","in":"query","name":"condition","type":"string"},{"default":true,"description":"预留字段,暂不支持使用。","in":"query","name":"count","type":"boolean"},{"description":"多云的nativeId。","in":"query","name":"cloudId","type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"查询指定资源类型的所有实例。获取响应体请参考《资源北向模型》。","examples":{"application/json":{"currentPage":1,"objList":[{"class_Id":1194,"class_Name":"SYS_DataCenter","id":"C726DF8E2E8446FDA17D6D3B7C495DFF","last_Modified":1496321202457,"name":"shanghai","remark":"Upload device From IES","resId":"C726DF8E2E8446FDA17D6D3B7C495DFF"}],"pageSize":20,"totalNum":1,"totalPageNo":1}}},"400":{"description":"参数错误。"},"403":{"description":"URL鉴权失败。"},"404":{"description":"rest接口未找到。"},"500":{"description":"默认ServiceException异常码,应用内部错误。"},"502":{"description":"网关错误。"},"503":{"description":"服务不可用。"},"504":{"description":"表示时间超时,总线超时时间300s。"},"888":{"description":"服务摘机,不提供服务。"}},"summary":"查询指定资源类型的所有实例","tags":["资源管理"],"x-precautions":"使用前请参考《资源北向模型》,获取系统支持的资源类型、关系类型、资源分类及属性列表。当资源类型为CLOUD_VOLUME时,返回结果为非管理盘数据。调用该接口需要“查询实例详情”权限,归属权限组:运维中心>资源实例管理。\n错误码:当请求不成功时,响应体内的错误码信息请参见“ManageOne 运维面API参考 > 错误码说明 > 资源管理特性”章节。\n","x-request-examples-1":"","x-request-examples-description-1":"","x-request-examples-url-1":"GET https://{endpoint}/rest/cmdb/v1/instances/SYS_Rack?pageSize=20&pageNo=1&condition={\"constraint\":[{\"simple\":{\"name\":\"incharger\",\"value\":\"ManageOne\",\"operator\":\"equal\"}},{\"logOp\":\"and\",\"simple\":{\"caseSensitive\":false,\"name\":\"name\",\"value\":\"Cabinet01\",\"operator\":\"equal\"}}]}","x-support-sdk":"N"}}},"product_short":"ManageOneOCHCS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询指定资源类型的所有实例","tags":"资源管理","uri":null,"version":"2.0"}