Queries the details about a quota dimension that is supported by a specified cloud service.
In this example, the operation is called to query the details about a quota dimension
whose key is regionId
. The quota dimension belongs to ECS Quotas by Instance Type whose service code is
ecs-spec. The following query result is returned:
- The values of the quota dimension include
cn-shenzhen
,cn-beijing
, andcn-hangzhou
. - The name of the quota dimension is
region
.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetProductQuotaDimension |
The operation that you want to perform. Set the value to GetProductQuotaDimension. |
ProductCode | String | Yes | ecs-spec |
The abbreviation of the cloud service name. Note For more information, see Alibaba Cloud services that support Quota Center.
|
DimensionKey | String | No | regionId |
The dimension key. |
DependentDimensions.N.Key | String | No | regionId |
The dimension keys that are supported by the cloud service. Note The value range of N varies based on the number of dimensions that are supported by
the related cloud service.
|
DependentDimensions.N.Value | String | No | cn-hangzhou |
The dimension values that are supported by the cloud service. Note The value range of N varies based on the number of dimensions that are supported by
the related cloud service.
|
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1FA5F0E2-368E-4BA4-A8D0-6060FC6BB8F3 |
The ID of the request. |
QuotaDimension | Object |
The details about the quota dimension. |
|
DimensionKey | String | regionId |
The dimension key. Valid values:
|
DependentDimensions | Array of String | regionId |
The quota dimensions that are supported by the cloud service. |
DimensionValues | Array of String | ["cn-shenzhen", "cn-beijing", "cn-hangzhou"] |
The dimension values. |
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. |
Name | String | region |
The name of the dimension. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetProductQuotaDimension
&ProductCode=ecs-spec
&DimensionKey=regionId
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetProductQuotaDimensionResponse>
<RequestId>1FA5F0E2-368E-4BA4-A8D0-6060FC6BB8F3</RequestId>
<QuotaDimension>
<DimensionKey>regionId</DimensionKey>
<DimensionValues>cn-shenzhen</DimensionValues>
<DimensionValues>cn-beijing</DimensionValues>
<DimensionValues>cn-hangzhou</DimensionValues>
<DimensionValueDetail>
<Value>cn-shenzhen</Value>
<Name>cn-shenzhen</Name>
</DimensionValueDetail>
<DimensionValueDetail>
<Value>cn-beijing</Value>
<Name>cn-beijing</Name>
</DimensionValueDetail>
<DimensionValueDetail>
<Value>cn-hangzhou</Value>
<Name>cn-hangzhou</Name>
</DimensionValueDetail>
<Name>region</Name>
</QuotaDimension>
</GetProductQuotaDimensionResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1FA5F0E2-368E-4BA4-A8D0-6060FC6BB8F3",
"QuotaDimension" : {
"DimensionKey" : "regionId",
"DimensionValues" : [ "cn-shenzhen", "cn-beijing", "cn-hangzhou" ],
"DimensionValueDetail" : [ {
"Value" : "cn-shenzhen",
"Name" : "cn-shenzhen"
}, {
"Value" : "cn-beijing",
"Name" : "cn-beijing"
}, {
"Value" : "cn-hangzhou",
"Name" : "cn-hangzhou"
} ],
"Name" : "region"
}
}
Error codes
For a list of error codes, visit the API Error Center.