{"base_path":null,"components":null,"consumes":"","definitions":{"ErrorMessage":{"description":"失败时返回的错误对象","properties":{"common_error_code":{"description":"CBC公共错误码","example":"CMM.1008","maxLength":36,"minLength":1,"type":"string"},"error_code":{"description":"错误码","example":"lakeformation.00010003","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","example":"failed","maxLength":4096,"minLength":2,"type":"string"},"solution_msg":{"description":"解决方案描述","example":"Please use correct instance id.","maxLength":4096,"minLength":2,"type":"string"}},"required":["error_code","error_msg"],"type":"object"},"Spec":{"description":"规格信息","properties":{"free_usage_value":{"description":"免费使用额度,例如api调用次数,单位是次,前100万次调用免费,这里返回100万,元数据个数,单位是万个,前100万个免费,这里返回100","example":1,"format":"int32","maximum":5000000,"minimum":0,"type":"integer"},"max_stride_num":{"description":"最大步数","example":200,"format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"min_stride_num":{"description":"最小步数","example":1,"format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"resource_type":{"description":"资源编码","example":"hws.resource.type.lakeformation.qps","maxLength":65534,"minLength":0,"type":"string"},"spec_code":{"description":"规格编码。lakeformation.unit.basic.qps:每秒查询率(QPS)产品","example":"lakeformation.unit.basic.qps","maxLength":65534,"minLength":0,"type":"string"},"stride":{"description":"步长","example":2000,"format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"stride_num_whitelist":{"description":"步数白名单,返回时,步数必须是白名单中的值","example":[1,2,3],"items":{"format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"maxItems":100000,"minItems":0,"type":"array"},"unit":{"description":"单位","example":"qps","maxLength":65534,"minLength":0,"type":"string"},"usage_factor":{"description":"使用量因子","example":"Duration","maxLength":65534,"minLength":0,"type":"string"},"usage_measure_id":{"description":"使用量单位标识","example":6,"format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"usage_value":{"description":"使用量,包含免费额度和单位额度,例如api调用次数,单位是次,前100万次调用免费,计费标准是5元每100万次,这里返回200万,元数据个数,单位是万个,前100万个免费,计费标准是5元每10万个,这里返回110","example":1,"format":"int32","maximum":10000000,"minimum":0,"type":"integer"}},"type":"object"},"Specs":{"description":"规格编码信息","properties":{"spec_codes":{"description":"规格编码列表","items":{"$ref":"#/definitions/Spec"},"type":"array"},"total":{"description":"总数","format":"int32","type":"integer"}},"type":"object"}},"description":null,"group_id":"bf0ce8340d8b4439b53683607ef0d87f","host":"lakeformation.cn-north-4.myhuaweicloud.com","id":"6059b32f29634887b7d1bfc372a42da9","info_version":"v1","method":"get","name":"ListSpecs","parameters":{},"paths":{"/v1/{project_id}/specs":{"get":{"description":"查询规格列表","operationId":"ListSpecs","parameters":[{"description":"项目ID","in":"path","name":"project_id","pattern":"^[0-9a-zA-Z]{32}$","required":true,"type":"string","x-example":"41aaxxxxxxxxxxxxxxxxxxxxxxxcc046"},{"description":"规格编码","in":"query","maxLength":32,"minLength":1,"name":"spec_code","pattern":"[a-z.]+","required":false,"type":"string","x-example":"lakeformation.unit.basic.qps"},{"default":0,"description":"偏移量","format":"int32","in":"query","maximum":100,"minimum":0,"name":"offset","required":false,"type":"integer","x-example":0},{"default":10,"description":"单次查询个数","format":"int32","in":"query","maximum":100,"minimum":1,"name":"limit","required":false,"type":"integer","x-example":10}],"produces":["application/json"],"responses":{"200":{"description":"规格列表","examples":{"application/json":{"spec_codes":[{"max_stride_num":100,"min_stride_num":1,"resource_type":"hws.resource.type.lakeformation.metadata","spec_code":"hws.resource.type.lakeformation.qps","stride":2000,"stride_num_whitelist":[1,2],"unit":"qps","usage_factor":"Duration","usage_measure_id":6}],"total":1}},"schema":{"$ref":"#/definitions/Specs"}},"204":{"description":"No Content"},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":"common.01000001","error_msg":"failed to read http request, please check your input, code: 400, reason: Type mismatch., cause: TypeMismatchException"}},"schema":{"$ref":"#/definitions/ErrorMessage"}},"401":{"description":"Unauthorized","examples":{"application/json":"{\n \"error_code\": 'APIG.1002',\n \"error_msg\": 'Incorrect token or token resolution failed'\n}"}},"403":{"description":"Forbidden","examples":{"application/json":{"error":{"code":"403","message":"X-Auth-Token is invalid in the request","title":"Forbidden"},"error_code":"403","error_msg":"X-Auth-Token is invalid in the request","title":"Forbidden"}}},"404":{"description":"Not Found","examples":{"application/json":{"error_code":"common.01000001","error_msg":"response status exception, code: 404"}},"schema":{"$ref":"#/definitions/ErrorMessage"}},"408":{"description":"Request Timeout","examples":{"application/json":{"error_code":"common.00000408","error_msg":"timeout exception occurred"}}},"500":{"description":"Internal Server Error","examples":{"application/json":{"error_code":"common.00000500","error_msg":"internal error"}},"schema":{"$ref":"#/definitions/ErrorMessage"}}},"tags":["Specification"],"x-apiexplorer-hide":"N","x-enable-auth-anno":{"type":"iam-token"},"x-iam-auth-meta-anno":{"abacAction":"lakeformation:instance:describe","authLevel":"project","rbac":"te_admin"},"x-is-registered":"Y","x-request-examples-url-1":"https://{endpoint}/v1/{project_id}/specs","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":null,"tags":"规格管理","uri":null,"version":"2.0"}