ListQuotaApplicationTemplates - 查询配额模板列表

管理账号查询配额模板列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
quotas:ListQuotaApplicationTemplateslist
*全部资源
*

请求参数

名称类型必填描述示例值
ProductCodestring

The abbreviation of the Alibaba Cloud service name.

说明 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>

The quota dimensions.

object

The information about the array object.

Keystring

The key of the dimension.

说明
  • 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
Valuestring

The value of the dimension.

说明
  • 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
QuotaActionCodestring

The ID of the quota.

q_security-groups
Idstring

The ID of the quota item.

1****
MaxResultsinteger

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

30
NextTokenstring

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

说明 If you leave this parameter empty, the query starts from the beginning.
1
QuotaCategorystring

The quota type. Valid values:

  • CommonQuota: general quota.
  • WhiteListLabel: whitelist quota.
  • FlowControl: API rate limit.
CommonQuota

返回参数

名称类型描述示例值
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.

说明 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.

说明 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

示例

正常返回示例

JSON格式

{
  "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
}

错误码

HTTP status code错误码错误信息描述
400TEMPLATE.ITEM.NOT.FOUNDQuota template item does not exist.配额模板项不存在

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2023-03-08API 内部配置变更,不影响调用查看变更详情
2022-11-15API 内部配置变更,不影响调用查看变更详情