All Products
Search
Document Center

Quota Center:ListQuotaApplicationTemplates

Last Updated:Apr 22, 2024

Queries quota templates by using the management account of a resource directory.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProductCodestringNo

The abbreviation of the Alibaba Cloud service name.

Note For more information, see Alibaba Cloud services that support Quota Center.
ecs
Dimensionsobject []No

The quota dimensions.

KeystringNo

The key of the dimension.

Note The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.
regionId
ValuestringNo

The value of the dimension.

Note The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.
cn-hangzhou
QuotaActionCodestringNo

The ID of the quota.

q_security-groups
IdstringNo

The ID of the quota item.

1****
MaxResultsintegerNo

The maximum number of records that can be returned for the query. Valid values: 1 to 100. Default value: 30.

30
NextTokenstringNo

The token that marks the position from which you want to start the query.

Note If you leave this parameter empty, the query starts from the beginning.
1
QuotaCategorystringNo

The type of the quota. Valid values:

  • CommonQuota: general quota
  • WhiteListLabel: privilege
  • FlowControl: API rate limit
CommonQuota

Response parameters

ParameterTypeDescriptionExample
object

None.

RequestIdstring

The request ID.

D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053
MaxResultsinteger

The maximum number of records returned for the query.

30
NextTokenstring

The token that marks the position at which the query ends.

Note An empty value indicates that all data is returned.
1
TotalCountinteger

The total number of records returned for the query.

40
QuotaApplicationTemplatesobject []

The queried quota templates.

Idstring

The ID of the quota template.

1****
ProductCodestring

The abbreviation of the Alibaba Cloud service name.

ecs
Dimensionsobject

The quota dimensions.

Format: {"regionId":"Region"}.

{"regionId":"cn-hangzhou"}
DesireValuefloat

The requested value of the quota.

802
NoticeTypeinteger

Indicates whether Quota Center sends a notification about the application result. Valid values:

  • 0: no
  • 3: yes
0
QuotaActionCodestring

The ID of the quota.

q_security-groups
ApplicableTypestring

The type of the adjustable value. Valid values:

  • continuous
  • discontinuous
continuous
ApplicableRangearray

None

float

The range of the quota value.

  • If the value of ApplicableType is continuous and the value of ApplicableRange is [802,1000], the quota value ranges from 802 to 1,000.
  • If the value of ApplicableType is discontinuous and the value of ApplicableRange is [10,20,50,100], the quota value is 10, 20, 50, or 100.
Note This parameter is obsolete. You can call the GetProductQuota or ListProductQuotas operation to obtain the value of the SupportedRange parameter.
[802,1000]
EnvLanguagestring

The language of the quota alert notification. Valid values:

  • zh: Chinese
  • en: English
zh
QuotaNamestring

The name of the quota.

Maximum Number of Security Groups
QuotaDescriptionstring

The description of the quota.

The maximum number of security groups that can be created by the current account.
EffectiveTimestring

The start time of the validity period of the quota. The value is displayed in UTC.

2022-09-28T06:07:00Z
ExpireTimestring

The end time of the validity period of the quota. The value is displayed in UTC.

2022-09-29T06:07:00Z
QuotaCategorystring

The type of the quota. Valid values:

  • CommonQuota: general quota
  • FlowControl: API rate limit
  • WhiteListLabel: privilege
CommonQuota
Periodobject

The calculation cycle of the quota.

PeriodValueinteger

The value of the calculation cycle.

1
PeriodUnitstring

The unit of the calculation cycle. Valid values:

  • second
  • minute
  • hour
  • day
  • week
day

Examples

Sample success responses

JSONformat

{
  "RequestId": "D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053",
  "MaxResults": 30,
  "NextToken": "1",
  "TotalCount": 40,
  "QuotaApplicationTemplates": [
    {
      "Id": "1****",
      "ProductCode": "ecs",
      "Dimensions": {
        "regionId": "cn-hangzhou"
      },
      "DesireValue": 802,
      "NoticeType": 0,
      "QuotaActionCode": "q_security-groups",
      "ApplicableType": "continuous",
      "ApplicableRange": [
        0
      ],
      "EnvLanguage": "zh",
      "QuotaName": "Maximum Number of Security Groups\n",
      "QuotaDescription": "The maximum number of security groups that can be created by the current account.\n",
      "EffectiveTime": "2022-09-28T06:07:00Z",
      "ExpireTime": "2022-09-29T06:07:00Z",
      "QuotaCategory": "CommonQuota",
      "Period": {
        "PeriodValue": 1,
        "PeriodUnit": "day"
      }
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-03-08The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.
2022-11-15The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.