查询目标云产品的配额详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
quotas:GetProductQuota |
get |
*Quota
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
ProductCode |
string |
是 |
云产品的缩写名称。 说明
关于如何获取云产品的缩写名称,请参见 ListProducts 中的 |
ecs |
QuotaActionCode |
string |
是 |
配额 ID。 说明
关于如何获取目标云产品的配额 ID,请参见 ListProductQuotas 中的 |
q_security-groups |
Dimensions |
array<object> |
否 |
配额维度。 配额项的属性,维度(Dimensions)+配额 ID(QuotaActionCode)确定唯一的配额项。 说明
部分云产品维度必填。云产品的配额是什么,以及配额是否必填可以从 ListProductQuotaDimensions 获取,返回参数 |
{\"regionId\":\"cn-beijing\"} |
object |
否 |
配额维度。 |
||
Key |
string |
否 |
配额维度的 Key。 说明
|
regionId |
Value |
string |
否 |
配额维度的 Value。 说明
|
cn-hangzhou |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
返回结果。 |
||
Quota |
object |
配额详情。 |
|
Adjustable |
boolean |
配额是否可调整。取值:
|
true |
ApplicableRange |
array |
配额调整范围。 |
|
number |
配额调整范围。例如: |
802 |
|
ApplicableType |
string |
配额调整类型。取值:
|
continuous |
ApplyReasonTips |
string |
申请配额调整理由示例。 |
The business xxx is expected to grow by 50%. |
Consumable |
boolean |
是否显示“已使用”的配额。取值:
|
true |
Dimensions |
object |
配额维度。格式: |
{"regionId":"cn-hangzhou"} |
EffectiveTime |
string |
配额生效的 UTC 时间。 |
2022-09-28T06:06:00Z |
ExpireTime |
string |
配额失效的 UTC 时间。 |
2022-09-29T06:06:00Z |
GlobalQuota |
boolean |
是否为全局配额。取值:
|
true |
Period |
object |
配额周期。 |
|
PeriodUnit |
string |
配额周期的单位。取值:
|
day |
PeriodValue |
integer |
配额周期的取值。 |
1 |
ProductCode |
string |
云产品名称缩写。 |
ecs |
QuotaActionCode |
string |
配额 ID。 |
q_security-groups |
QuotaArn |
string |
配额 ARN。 |
acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/ |
QuotaCategory |
string |
配额种类。取值:
|
CommonQuota |
QuotaDescription |
string |
配额描述。 |
The maximum number of security groups that can be owned by the current account. |
QuotaItems |
array<object> |
配额详情。 |
|
object |
配额类别。 |
||
Quota |
string |
配额值。 |
801 |
QuotaUnit |
string |
配额单位。 说明
每个配额的单位不同。例如:容器服务 Kubernetes 版的配额 |
Count |
Type |
string |
配额类别。取值:
|
BaseQuota |
Usage |
string |
配额用量。 |
26 |
QuotaName |
string |
配额名称。 |
Maximum Number of Security Groups |
QuotaType |
string |
配额类型。取值:
|
normal |
QuotaUnit |
string |
配额单位。 说明
每个配额的单位不同。例如:容器服务 Kubernetes 版的配额 |
Count |
SupportedRange |
array |
当前配额项支持的配额值区间,用于配置配额模板时进行参考。 |
|
number |
当前配额项支持的配额值区间,用于配置配额模板时进行参考。
|
[802,1000] |
|
TotalQuota |
number |
配额值。 |
801 |
TotalUsage |
number |
配额用量。 |
26 |
UnadjustableDetail |
string |
配额不可调整原因。取值:
|
limitReached |
UsageMetric |
object |
配额用量在云监控(CloudMonitor)中的监控信息。 说明
空表示云监控中无此配额监控数据。 |
|
MetricDimensions |
object |
CloudMonitor 监控维度。 格式: |
|
string |
CloudMonitor 监控维度值。 |
ecs |
|
MetricName |
string |
CloudMonitor 监控项名称。 |
Usage |
MetricNamespace |
string |
CloudMonitor 监控数据命名空间。 |
acs_quotas_flowcontrol |
RequestId |
string |
请求 ID。 |
8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3 |
示例
正常返回示例
JSON
格式
{
"Quota": {
"Adjustable": true,
"ApplicableRange": [
802
],
"ApplicableType": "continuous",
"ApplyReasonTips": "The business xxx is expected to grow by 50%.",
"Consumable": true,
"Dimensions": {
"regionId": "cn-hangzhou"
},
"EffectiveTime": "2022-09-28T06:06:00Z",
"ExpireTime": "2022-09-29T06:06:00Z",
"GlobalQuota": true,
"Period": {
"PeriodUnit": "day",
"PeriodValue": 1
},
"ProductCode": "ecs",
"QuotaActionCode": "q_security-groups",
"QuotaArn": "acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups/",
"QuotaCategory": "CommonQuota",
"QuotaDescription": "The maximum number of security groups that can be owned by the current account.",
"QuotaItems": [
{
"Quota": "801",
"QuotaUnit": "Count",
"Type": "BaseQuota",
"Usage": "26"
}
],
"QuotaName": "Maximum Number of Security Groups",
"QuotaType": "normal",
"QuotaUnit": "Count",
"SupportedRange": [
0
],
"TotalQuota": 801,
"TotalUsage": 26,
"UnadjustableDetail": "limitReached",
"UsageMetric": {
"MetricDimensions": {
"key": "ecs"
},
"MetricName": "Usage",
"MetricNamespace": "acs_quotas_flowcontrol"
}
},
"RequestId": "8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。