Queries the quota dimensions that are supported by a specified cloud service.

In this example, the operation is called to query the quota dimensions that are supported by Elastic Compute Service (ECS). The query result shows all the quota dimensions that are supported by ECS.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListProductQuotaDimensions

The operation that you want to perform. Set the value to ListProductQuotaDimensions.

ProductCode String Yes ecs

The abbreviation of the cloud service name.

Note For more information, see Alibaba Cloud services that support Quota Center.
NextToken String No 0

The token that marks the position where you want to start the query. An empty value indicates that the query starts from the beginning.

MaxResults Integer No 30

The maximum number of records that you want to return for the query.

Valid values: 1 to 200. Default value: 30.

QuotaCategory String No CommonQuota

The type of the quota. Valid values:

  • FlowControl: API rate limit
  • CommonQuota: general quota

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
MaxResults Integer 10

The number of records returned for the query.

NextToken String 10

The token that marks the position where the query ends. An empty value indicates that all the data is returned.

QuotaDimensions Array of QuotaDimensions

The quota dimensions.

DependentDimensions List regionId

The quota dimensions that are supported by the cloud service.

DimensionKey String zoneId

The dimension key. Valid values:

  • RegionId: the region ID
  • zoneId: the zone ID
  • chargeType: the billing method
  • networkType: the network type
DimensionValueDetail Array of DimensionValueDetail

The details about the dimension value.

Name String cn-hangzhou

The name of the dimension value.

Value String cn-hangzhou

The dimension value.

DimensionValues List ["cn-shenzhen", "cn-beijing", "cn-hangzhou"]

The list of the dimension values.

Name String zone

The name of the quota dimension.

Requisite Boolean false

Indicates whether the quota dimension is required when you query quota dimensions. Valid values:

  • true
  • false
RequestId String 7ED584FB-ECBF-4A2A-969D-F54D25EFABF9

The ID of the request.

TotalCount Integer 10

The total number of records returned for the query.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListProductQuotaDimensions
&ProductCode=ecs
&<Common request parameters>

Sample success responses

XML format

<ListProductQuotaDimensionsResponse>
  <QuotaDimensions>
        <DimensionKey>regionId</DimensionKey>
        <DimensionValues>cn-shenzhen</DimensionValues>
        <DimensionValues>cn-beijing</DimensionValues>
        <DimensionValues>cn-wulanchabu</DimensionValues>
        <DimensionValues>ap-south-1</DimensionValues>
        <DimensionValues>eu-west-1</DimensionValues>
        <DimensionValues>ap-northeast-1</DimensionValues>
        <DimensionValues>me-east-1</DimensionValues>
        <DimensionValues>cn-chengdu</DimensionValues>
        <DimensionValues>cn-qingdao</DimensionValues>
        <DimensionValues>cn-shanghai</DimensionValues>
        <DimensionValues>cn-guangzhou</DimensionValues>
        <DimensionValues>cn-hongkong</DimensionValues>
        <DimensionValues>ap-southeast-1</DimensionValues>
        <DimensionValues>cn-heyuan</DimensionValues>
        <DimensionValues>ap-southeast-2</DimensionValues>
        <DimensionValues>ap-southeast-3</DimensionValues>
        <DimensionValues>eu-central-1</DimensionValues>
        <DimensionValues>cn-huhehaote</DimensionValues>
        <DimensionValues>ap-southeast-5</DimensionValues>
        <DimensionValues>us-east-1</DimensionValues>
        <DimensionValues>cn-zhangjiakou</DimensionValues>
        <DimensionValues>us-west-1</DimensionValues>
        <DimensionValues>cn-hangzhou</DimensionValues>
        <Name>region</Name>
        <Requisite>false</Requisite>
  </QuotaDimensions>
  <QuotaDimensions>
        <DimensionKey>zoneId</DimensionKey>
        <Name>zone ID</Name>
        <Requisite>false</Requisite>
        <DependentDimensions>regionId</DependentDimensions>
  </QuotaDimensions>
  <QuotaDimensions>
        <DimensionKey>chargeType</DimensionKey>
        <DimensionValues>Spot</DimensionValues>
        <DimensionValues>PostPaid</DimensionValues>
        <DimensionValues>PrePaid</DimensionValues>
        <Name>billing method</Name>
        <Requisite>false</Requisite>
  </QuotaDimensions>
  <QuotaDimensions>
        <DimensionKey>networkType</DimensionKey>
        <DimensionValues>classic</DimensionValues>
        <DimensionValues>vpc</DimensionValues>
        <Name>network type</Name>
        <Requisite>false</Requisite>
  </QuotaDimensions>
  <TotalCount>4</TotalCount>
  <RequestId>7ED584FB-ECBF-4A2A-969D-F54D25EFABF9</RequestId>
  <MaxResults>4</MaxResults>
</ListProductQuotaDimensionsResponse>

JSON format

{
  "ListProductQuotaDimensionsResponse": {
    "QuotaDimensions": [
      {
        "DimensionKey": "regionId",
        "DimensionValues": [
          "cn-shenzhen",
          "cn-beijing",
          "cn-hangzhou"
        ],
        "Name": "region",
        "Requisite": "false"
      },
      {
        "DimensionKey": "zoneId",
        "Name": "zone ID",
        "Requisite": "false",
        "DependentDimensions": "regionId"
      },
      {
        "DimensionKey": "chargeType",
        "DimensionValues": [
          "Spot",
          "PostPaid",
          "PrePaid"
        ],
        "Name": "billing method",
        "Requisite": "false"
      },
      {
        "DimensionKey": "networkType",
        "DimensionValues": [
          "classic",
          "vpc"
        ],
        "Name": "network type",
        "Requisite": "false"
      }
    ],
    "TotalCount": "4",
    "RequestId": "7ED584FB-ECBF-4A2A-969D-F54D25EFABF9",
    "MaxResults": "4"
  }
}

Error codes

For a list of error codes, visit the API Error Center.