All Products
Search
Document Center

Quota Center:ListQuotaApplicationTemplates

Last Updated:Nov 14, 2024

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

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
quotas:ListQuotaApplicationTemplateslist
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProductCodestringNo

The abbreviation of the Alibaba Cloud service name.

Note To query the abbreviation of an Alibaba Cloud service name, call the ListProducts operation and check the value of ProductCode in the response.
ecs
Dimensionsarray<object>No

The quota dimensions.

objectNo

The information about the array object.

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.

  • You must specify both Key and Value for each quota dimension.

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.

  • You must specify both Key and Value for each quota dimension.

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.

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
QuotaApplicationTemplatesarray<object>

The information about quota templates.

QuotaApplicationTemplatesobject

The information about a quota template.

ApplicableRangearray

None.

Applicablefloat

The range of the quota value that can be requested for the quota item.

Note This parameter is deprecated. For more information about the range, see the value of SupportedRange in the response of the GetProductQuota or ListProductQuotas operation.
  • If the value of ApplicableType is continuous and the value of this parameter is [802,1000], the range contains all integers from 802 to 1000.
  • If the value of ApplicableType is discontinuous and the value of this parameter is [10,20,50,100], the range contains only 10,20,50, and 100.
[802,1000]
ApplicableTypestring

The type of the adjustable value. Valid values:

  • continuous
  • discontinuous
continuous
DesireValuefloat

The requested value of the quota.

802
Dimensionsobject

The quota dimensions.

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

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

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

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

The language of the quota alert notification. Valid values:

  • zh: Chinese
  • en: English
zh
ExpireTimestring

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

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

The ID of the quota template.

1****
NoticeTypeinteger

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

  • 0: no
  • 3: yes
0
Periodobject

The calculation cycle of the quota.

PeriodUnitstring

The unit of the calculation cycle. Valid values:

  • second
  • minute
  • hour
  • day
  • week
day
PeriodValueinteger

The value of the calculation cycle.

1
ProductCodestring

The abbreviation of the Alibaba Cloud service name.

ecs
QuotaActionCodestring

The ID of the quota.

q_security-groups
QuotaCategorystring

The type of the quota. Valid values:

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

The description of the quota.

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

The name of the quota.

Maximum Number of Security Groups
RequestIdstring

The request ID.

D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053
TotalCountinteger

The total number of records returned for the query.

40

Examples

Sample success responses

JSONformat

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

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 affectedView Change Details
2022-11-15The internal configuration of the API is changed, but the call is not affectedView Change Details