{"base_path":"/","components":null,"consumes":"","definitions":{"CIAttributeDef":{"description":"资源属性定义","properties":{"decimalDigit":{"description":"小数位数,当属性类型为float、double时有效,取值范围[0,5],默认值0。","format":"int32","type":"integer"},"defaultValue":{"description":"属性默认值,约束:最大长度100。","type":"string"},"dimensionType":{"description":"分析维度,对资源进行分析时该字段的维度,默认值null,长度不超过64","type":"string"},"displayName":{"$ref":"#/definitions/I18nObj","description":"显示名称,约束:格式为{\"en_US\":\"xxx\",\"zh_CN\":\"xxx\"},最大长度500。"},"enumInfo":{"description":"当属性类型为enum时,该字段有效,默认值null。","items":{"$ref":"#/definitions/EnumInfoDef"},"maxItems":1000,"type":"array"},"length":{"description":"当属性类型为string时,该字段有效,默认值0。","format":"int32","type":"integer"},"maxValue":{"description":"最大值,当属性类型为float、double、int、long时有效。","type":"string"},"minValue":{"description":"最小值,当属性类型为float、double、int、long时有效。","type":"string"},"name":{"description":"属性名称,约束:只能包含数字、字母、下划线,且只能以字母或下划线开头,最大长度30。","type":"string"},"preset":{"description":"是否预置属性。","type":"boolean"},"regExpress":{"description":"正则表达式(预留字段,暂不支持),用于校验属性值,当属性类型为string时有效。","type":"string"},"type":{"description":"属性类型,包括int、string、float、boolean、long、double。","type":"string"},"unique":{"description":"属性值是否惟一,默认值false。","type":"boolean"},"unit":{"description":"属性单位。","type":"string"},"writeable":{"description":"属性值是否可修改,默认值false。","type":"boolean"}},"required":["name","type","displayName"]},"CIClassDef":{"description":"资源类型定义","properties":{"attrs":{"description":"资源属性信息。","items":{"$ref":"#/definitions/CIAttributeDef"},"maxItems":1000,"type":"array"},"category":{"description":"资源所属资源分类的key。","type":"string"},"description":{"$ref":"#/definitions/I18nObj","description":"资源描述,中文、字母、数字、下划线、中划线、空格,最大长度1000"},"displayName":{"$ref":"#/definitions/I18nObj","description":"显示名称,中文、字母、数字、下划线、中划线、空格,最大长度500。"},"icon":{"description":"资源类型的svg图标,最大长度8000。","type":"string"},"name":{"description":"资源类型标识,最大长度32,不能以数字开头。","type":"string"},"preset":{"description":"是否预置模型,创建时不需要。","type":"boolean"},"showModel":{"default":true,"description":"资源类型是否支持展示。","type":"boolean"},"supportPerformance":{"description":"资源类型是否支持性能。","type":"boolean"},"topCategory":{"description":"资源所属资源分类的top key。","type":"string"}},"required":["name","displayName","category"]},"CIClassDefPagination":{"description":"资源类型分页查询结果","properties":{"currentPage":{"description":"当前页。","format":"int32","type":"integer"},"objList":{"description":"分页数据。","items":{"$ref":"#/definitions/CIClassDef"},"type":"array"},"pageSize":{"description":"每页记录数,最大值1000。","format":"int32","type":"integer"},"totalNum":{"description":"总的记录数。","format":"int32","type":"integer"},"totalPageNo":{"description":"总页数。","format":"int32","type":"integer"}}},"EnumInfoDef":{"description":"枚举信息定义","properties":{"category":{"description":"对枚举值进行分类,默认值null,最大长度64。","type":"string"},"en_US":{"description":"枚举值英文描述,最大长度128。","type":"string"},"value":{"description":"枚举值,最大长度64。","type":"string"},"zh_CN":{"description":"枚举值中文描述,最大长度128。","type":"string"}},"required":["value","en_US","zh_CN"]},"I18nObj":{"description":"国际化对象","properties":{"en_US":{"description":"英文信息","type":"string"},"zh_CN":{"description":"中文信息","type":"string"}},"required":["en_US","zh_CN"]}},"description":null,"group_id":"a58bba086da947389167b8c3715f7155","host":"hcs.cn-north-4.myhuaweicloud.com","id":"efbd8f11a5084b9d97e5bdd64e548d96","info_version":"v1","method":"get","name":"ListCIClass","parameters":{},"paths":{"/rest/cmdb/v1/classes":{"get":{"consumes":["application/json"],"description":"查询指定资源分类下的所有资源类型\n\n**接口SLA:**\n\n|SLA项|定义|\n|-----|-----|\n|请求成功率| ≥ 99.9%|\n|可用性|Tier1|\n|数据一致性|最终一致,不一致时长<1分钟|\n|吞吐量|5 tps|\n|TP50请求时延|1000 ms|\n|TP99.9请求时延|2000 ms|","operationId":"ListCIClass","parameters":[{"description":"IAM_OP token、SSO token。","in":"header","name":"x-auth-token","required":true,"type":"string"},{"default":1,"description":"页码,1对应第一页,默认值1。","format":"int32","in":"query","minimum":1,"name":"pageNo","type":"integer"},{"default":20,"description":"每页显示数量,默认值20。","format":"int32","in":"query","maximum":100,"minimum":1,"name":"pageSize","type":"integer"},{"description":"资源分类的KEY,预置资源分类的key,请参考《资源北向模型》","in":"query","name":"categoryKey","type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"查询资源类型成功。","examples":{"application/json":{"currentPage":1,"objList":[{"attrs":[{"decimalDigit":0,"defaultValue":null,"dimensionType":null,"displayName":{"en_US":"ID","zh_CN":"ID"},"enumInfo":[],"length":0,"mandatory":true,"maxValue":null,"minValue":null,"name":"id","preset":true,"regExpress":null,"type":"uuid","unique":true,"unit":null,"writeable":false}],"category":null,"description":null,"displayName":{"en_US":"Base Class","zh_CN":"基础类"},"icon":null,"name":"BaseClass","preset":false,"topCategory":"PhysicalDevice"}],"pageSize":1,"totalNum":137,"totalPageNo":137}},"schema":{"$ref":"#/definitions/CIClassDefPagination"}},"400":{"description":"参数错误。"},"403":{"description":"URL鉴权失败。"},"404":{"description":"rest接口未找到。"},"500":{"description":"默认ServiceException异常码,应用内部错误。"},"502":{"description":"网关错误。"},"503":{"description":"服务不可用。"},"504":{"description":"表示时间超时,总线超时时间300s。"},"888":{"description":"服务摘机,不提供服务。"}},"summary":"查询指定资源分类下的所有资源类型","tags":["资源管理"],"x-precautions":"使用前请参考《资源北向模型》,获取系统支持的资源类型、关系类型、资源分类及属性列表。调用该接口需要“查询模型”权限,归属权限组:运维中心>模型管理。\n错误码:当请求不成功时,响应体内的错误码信息请参见“ManageOne 运维面API参考 > 错误码说明 > 资源管理特性”章节。\n","x-request-examples-1":"","x-request-examples-description-1":"","x-request-examples-url-1":"GET https://{endpoint}/rest/cmdb/v1/classes?pageSize=20&pageNo=1&categoryKey=PhysicalDevice","x-support-sdk":"N"}}},"product_short":"ManageOneOCHCS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询指定资源分类下的所有资源类型","tags":"资源管理","uri":null,"version":"2.0"}