{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"BaseResponse":{"description":"API响应基类","properties":{"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"QuotaNoLimit":{"description":"租户配额对象,不包含最大值和最小值。","properties":{"resources":{"description":"配额资源列表","items":{"$ref":"#/definitions/ResourceNoLimit"},"maxItems":100,"minItems":0,"type":"array","x-maxLength":100,"x-minLength":0}},"required":["resources"]},"ResourceNoLimit":{"allOf":[{"$ref":"#/definitions/SimpleResource"},{"properties":{"unit":{"description":"配额单位","maxLength":255,"minLength":0,"type":"string"}},"type":"object"}],"description":"配额资源,不包含最大最小限制值。"},"ShowTenantQuotasRsp":{"description":"查询租户配额响应","properties":{"quotas":{"$ref":"#/definitions/QuotaNoLimit","description":"配额信息"},"site_quotas":{"description":"站点配额信息,暂不包括中心站点","items":{"$ref":"#/definitions/SiteQuotaNoLimit"},"readOnly":true,"type":"array"}}},"SimpleResource":{"allOf":[{"$ref":"#/definitions/SimpleResourceNoUsed"},{"properties":{"used":{"description":"配额已用值","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"}},"type":"object"}],"description":"简单配额资源。"},"SimpleResourceNoUsed":{"description":"简单配额资源,没有已使用值。","properties":{"quota":{"description":"配额数","format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"type":{"description":"资源类别。\ngeneral_instances:普通桌面\nMemory:内存\ncores:CPU\nvolumes:磁盘数量\nvolume_gigabytes:磁盘容量\ngpu_instances:GPU桌面\ndeh:云办公主机\nusers:用户\npolicy_groups: 策略组\nCores: CPU(配额工具使用)","maxLength":255,"minLength":0,"type":"string"}}},"SiteQuotaNoLimit":{"allOf":[{"$ref":"#/definitions/QuotaNoLimit"},{"properties":{"site_id":{"description":"站点ID","readOnly":true,"type":"string"}}}],"description":"单个站点的配额"}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"616078fa982f49a686b017eb9a7ed750","info_version":"v2","method":"get","name":"ShowQuotas","parameters":{},"paths":{"/v2/{project_id}/quotas":{"get":{"consumes":["application/json"],"description":"Console Framework和WKSDesktopManager调用该接口查询租户配额。","operationId":"ShowQuotas","parameters":[{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":15000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},{"description":"发送的实体的MIME类型","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":true,"type":"string","x-example":"application/json"},{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"}],"produces":["application/json"],"responses":{"200":{"description":"查询租户配额响应","examples":{"application/json":{"quotas":{"resources":[{"quota":10,"type":"general_instances","used":3},{"quota":500,"type":"volumes","used":33},{"quota":21500,"type":"volume_gigabytes","unit":"GB","used":2090},{"quota":80,"type":"cores","used":10},{"quota":100,"type":"Memory","unit":"GB","used":19},{"quota":10,"type":"gpu_instances","used":0},{"quota":3000,"type":"users","used":29},{"quota":10,"type":"policy_groups","used":0},{"quota":80,"type":"Cores","used":0}]},"site_quotas":[{"resources":[{"quota":50,"type":"gpu_instances","used":0},{"quota":500,"type":"ies_instances","used":0}],"site_id":147258369}]}},"schema":{"$ref":"#/definitions/ShowTenantQuotasRsp"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}}},"schemes":["https"],"summary":"查询租户配额","tags":["Quota"],"x-apiexplorer-hide":"N","x-apig-group":"public,internal_token","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-url-1":"GET /v2/29dfe82ada564ac2b927e1ff036d9a9b/quotas","x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询租户配额","tags":"配额","uri":null,"version":"2.0"}