查詢目標雲產品的配額列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quotas:ListProductQuotas |
list |
*Quota
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| NextToken |
string |
否 |
是否擁有下一次查詢的令牌(Token)。
|
AAAAAd**** |
| MaxResults |
integer |
否 |
本次查詢的最大記錄條數。 取值範圍:1~100。預設值:30。 |
30 |
| ProductCode |
string |
是 |
雲產品的縮寫名稱。 說明
關於如何擷取雲產品的縮寫名稱,請參見 ListProducts 中的 |
ecs |
| QuotaActionCode |
string |
否 |
配額 ID。 |
q_security-groups |
| KeyWord |
string |
否 |
配額的搜尋索引鍵。 說明
該參數僅針對Elastic Compute Service 規格配額(ecs-spec),搜尋範圍: |
security |
| SortField |
string |
否 |
配額支援的排序方式。 說明
該參數僅針對Elastic Compute Service 規格配額(ecs-spec),如果不設定,則為空白。 枚舉值:
|
TIME |
| SortOrder |
string |
否 |
配額支援的排序方式。 說明
該參數僅針對Elastic Compute Service 規格配額(ecs-spec),如果不設定,則為空白。 枚舉值:
|
Ascending |
| Dimensions |
array<object> |
否 |
配額維度。 |
|
|
object |
否 |
配額維度。 |
||
| Key |
string |
否 |
配額維度 Key。 說明
N 的取值範圍取決於對應雲產品支援的維度個數。 |
regionId |
| Value |
string |
否 |
配額維度 Value。 說明
N 的取值範圍取決於對應雲產品支援的維度個數。 |
cn-hangzhou |
| QuotaCategory |
string |
否 |
配額種類。 預設值:CommonQuota。 枚舉值:
|
FlowControl |
| GroupCode |
string |
否 |
維度組代碼。 |
entconsole_w1j3ms**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| MaxResults |
integer |
本次查詢返回的最大記錄條數。 |
1 |
| NextToken |
string |
是否擁有下一次查詢的令牌(Token)。
|
AAAAAd**** |
| Quotas |
array<object> |
配額詳情。 |
|
|
array<object> |
配額詳情。 |
||
| Adjustable |
boolean |
配額是否可調整。 枚舉值:
|
true |
| ApplicableRange |
array |
當前配額項可申請的配額值區間,用於配額申請時進行參考。 |
|
|
number |
當前配額項可申請的配額值區間。 排除目前使用者已有區間,用於申請配額時進行參考,例如: |
[1010,10000] |
|
| ApplicableType |
string |
配額調整類型。 枚舉值:
|
discontinuous |
| 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:07:00Z |
| ExpireTime |
string |
配額失效的 UTC 時間。 |
2022-09-29T06:07:00Z |
| GlobalQuota |
boolean |
是否為全域配額。 枚舉值:
|
true |
| Period |
object |
配額計算周期。 |
|
| PeriodUnit |
string |
配額計算周期的單位。 枚舉值:
|
day |
| PeriodValue |
integer |
配額計算周期的取值。 |
{} |
| 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 |
配額值。 |
1009 |
| QuotaUnit |
string |
配額單位。 |
Count |
| Type |
string |
配額類別。 枚舉值:
|
BaseQuota |
| Usage |
string |
配額用量。 |
1009 |
| QuotaName |
string |
配額名稱。 |
ecs.g5.2xlarge |
| QuotaType |
string |
配額類型。 枚舉值:
|
privilege |
| QuotaUnit |
string |
配額單位。 |
AMOUNT |
| SupportedRange |
array |
當前配額項支援的配額值區間,用於配置配額範本時進行參考。 |
|
|
number |
當前配額項支援的配額值區間,用於配置配額範本時進行參考。
|
[1009,10000] |
|
| TotalQuota |
number |
配額值。 |
200 |
| TotalUsage |
number |
配額用量。 |
1009 |
| UnadjustableDetail |
string |
配額不可調整原因。 枚舉值:
|
applicationProcess |
| UsageMetric |
object |
配額用量在CloudMonitor(CloudMonitor)中的監控資訊。 說明
空表示CloudMonitor中無此配額監控資料。 |
|
| MetricDimensions |
object |
CloudMonitor 監控維度。 格式: |
|
|
string |
CloudMonitor 監控維度值。 |
ecs |
|
| MetricName |
string |
CloudMonitor 監控項名稱。 |
Usage |
| MetricNamespace |
string |
CloudMonitor 監控資料命名空間。 |
acs_quotas_flowcontrol |
| RequestId |
string |
請求 ID。 |
D0131FD5-5397-44FE-BF5A-4B7165B813CC |
| TotalCount |
integer |
本次請求返回的全部記錄條數。 |
1 |
樣本
正常返回樣本
JSON格式
{
"MaxResults": 1,
"NextToken": "AAAAAd****",
"Quotas": [
{
"Adjustable": true,
"ApplicableRange": [
0
],
"ApplicableType": "discontinuous",
"ApplyReasonTips": "The business xxx is expected to grow by 50%.",
"Consumable": true,
"Dimensions": {
"regionId": "cn-hangzhou"
},
"EffectiveTime": "2022-09-28T06:07:00Z",
"ExpireTime": "2022-09-29T06:07:00Z",
"GlobalQuota": true,
"Period": {
"PeriodUnit": "day",
"PeriodValue": 0
},
"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": "1009",
"QuotaUnit": "Count",
"Type": "BaseQuota",
"Usage": "1009"
}
],
"QuotaName": "ecs.g5.2xlarge",
"QuotaType": "privilege",
"QuotaUnit": "AMOUNT",
"SupportedRange": [
0
],
"TotalQuota": 200,
"TotalUsage": 1009,
"UnadjustableDetail": "applicationProcess",
"UsageMetric": {
"MetricDimensions": {
"key": "ecs"
},
"MetricName": "Usage",
"MetricNamespace": "acs_quotas_flowcontrol"
}
}
],
"RequestId": "D0131FD5-5397-44FE-BF5A-4B7165B813CC",
"TotalCount": 1
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidSortOrder | Invalid SortOrder | 參數SortOrder無效。 |
| 400 | INVALID.MAX.RESULTS | The maxResults parameter is invalid. Use an integer ranging from 1 to 100. | maxResults參數不合法,請使用1~100範圍內的整數。 |
| 400 | DIMENSIONGROUP.NOT.FOUND | Dimension group does not exist. | 維度組參數不正確 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。