huawei-cloud-api-definitions-AS 0.1.20260109

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"AllQuotas":{"description":"配额列表","properties":{"resources":{"description":"配额详情资源列表。","items":{"$ref":"#/definitions/AllResources"},"type":"array"}}},"AllResources":{"description":"配额资源","properties":{"max":{"description":"配额上限。","format":"int32","type":"integer"},"min":{"description":"配额下限。","format":"int32","type":"integer"},"quota":{"description":"配额总数量。","format":"int32","type":"integer"},"type":{"description":"查询配额的类型。scaling_Group:伸缩组配额。scaling_Config:伸缩配置配额。scaling_Policy:伸缩策略配额。scaling_Instance:伸缩实例配额。bandwidth_scaling_policy:伸缩带宽策略配额。","enum":["scaling_group","scaling_config","scaling_Policy","scaling_Instance","bandwidth_scaling_policy"],"type":"string"},"used":{"description":"已使用的配额数量。当type为scaling_Policy和scaling_Instance时,该字段为保留字段,返回-1。可通过查询弹性伸缩策略和伸缩实例配额查询指定弹性伸缩组下的弹性伸缩策略和伸缩实例已使用的配额数量。","format":"int32","type":"integer"}}},"QuotaResult":{"description":"请求正常","properties":{"quotas":{"$ref":"#/definitions/AllQuotas","description":"配额详情"}}}},"description":null,"group_id":"c14e7adea4354f78bb333ea8451df077","host":"as.cn-north-4.myhuaweicloud.com","id":"b18d8eafc23e4d7482427a24f103d554","info_version":"v1","method":"get","name":"ShowResourceQuota","parameters":{},"paths":{"/autoscaling-api/v1/{project_id}/quotas":{"get":{"description":"查询指定租户下的弹性伸缩组、伸缩配置、伸缩带宽策略、伸缩策略和伸缩实例的配额总数及已使用配额数。","operationId":"ShowResourceQuota","parameters":[{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-example":"0513757xxxxxd5eb2f08xxxb93ef4f0f","x-order":1},{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX...","x-order":2}],"responses":{"200":{"description":"请求正常","examples":{"application/json":{"quotas":{"resources":[{"max":50,"quota":25,"type":"scaling_Group","used":2},{"max":200,"quota":100,"type":"scaling_Config","used":3},{"max":50,"quota":50,"type":"scaling_Policy","used":-1},{"max":1000,"quota":200,"type":"scaling_Instance","used":-1},{"max":100,"quota":10,"type":"bandwidth_scaling_policy","used":1}]}}},"schema":{"$ref":"#/definitions/QuotaResult"}},"400":{"description":"Bad Request 服务器未能处理请求。"},"401":{"description":"Unauthorized 被请求的页面需要用户名和密码。"},"403":{"description":"Forbidden 对被请求的页面访问禁止。"},"404":{"description":"Not Found 服务器无法找到被请求的页面。"},"405":{"description":"Method Not Allowed 请求中指定的方法不被允许。"},"406":{"description":"Not Acceptable 服务器生成的响应无法被客户端所接受。"},"407":{"description":"Proxy Authentication 用户必须首先使用代理服务器进行验证,这样请求才会被处理"},"408":{"description":"Request Timeout 请求超出了服务器的等待时间。"},"409":{"description":"Conflict 由于冲突,请求无法被完成。"},"500":{"description":"Internal Server Error 请求未完成。服务异常。"},"501":{"description":"Not Implemented 请求未完成。服务器不支持所请求的功能。"},"502":{"description":"Bad Gateway 请求未完成。服务器从上游服务器收到一个无效的响应。"},"503":{"description":"Service Unavailable 请求未完成。系统暂时异常。"},"504":{"description":"Gateway Timeout 网关超时。"}},"summary":"查询配额","tags":["配额管理"],"x-apiErrorCodes":"","x-apigateway-auth-type":"","x-apigateway-match-mode":"","x-apigateway-request-type":"","x-call_frequency":"","x-constraint":"","x-ctc":"Y","x-first_open_time":"2016-06-30","x-flow_control_group":"as","x-hc":"Y","x-hk":"Y","x-hybridcloud":true,"x-iftype":"公开接口","x-in_cli":"","x-is-registered":"Y","x-is_calling":"Y","x-multi_tenant_flow_time":"1","x-multi_tenant_flow_value":"780","x-name":"查询配额","x-obc":"Y","x-order":1,"x-otc":"Y","x-request-examples-description-1":"本示例展示了查询租户下弹性伸缩组,伸缩配置,伸缩带宽策略,伸缩策略和伸缩实例配额的总数及已使用配额数。","x-request-examples-url-1":"GET https://{Endpoint}/autoscaling-api/v1/{project_id}/quotas","x-scope":"Commercial","x-source":"SelfDeveloped","x-source_url":"","x-support-sdk":"Y","x-tenant_flow_time":"1","x-tenant_flow_value":"78","x-timeout":"10s","x-tlf":"Y","x-un_cli":"","x-version":"v1"}}},"product_short":"AS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询配额","tags":"配额管理","uri":null,"version":"2.0"}