Queries the quotas of Elastic Compute Service (ECS) resources that you can create in an Alibaba Cloud region. For a specific region, you can query the maximum numbers of security groups, elastic network interfaces (ENIs), vCPUs for pay-as-you-go instances, vCPUs for preemptible instances, the capacity quotas for pay-as-you-go disks that you can create and the number of dedicated hosts that you can create. You can also query information such as network types or whether an account has completed real-name verification.
Operation description
After you create an Alibaba Cloud account, you can create a specific number of ECS instances in different regions within the account. For more information, see Limits .
You can apply for a quota increase in the Quota Center console.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region. You can call the DescribeRegions operation to query the most recent list of regions. | cn-hangzhou |
ZoneId | string | No | The ID of the zone in which the resource resides. | cn-hangzhou-b |
AttributeName | array | No | The type of resource quota N. Valid values of N: 1 to 8. Valid values:
This parameter is empty by default. | |
string | No | The type of resource quota N. Valid values of N: 1 to 8. Valid values:
This parameter is empty by default. | max-security-groups |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "8CE45CD5-31FB-47C2-959D-CA8144CE****",
"AccountAttributeItems": {
"AccountAttributeItem": [
{
"AttributeName": "max-security-groups",
"AttributeValues": {
"ValueItem": [
{
"DiskCategory": "cloud_ssd",
"Value": "800",
"ExpiredTime": "2019-01-01T12:30:00Z",
"ZoneId": "cn-hangzhou-b",
"InstanceType": "ecs.g5.large",
"Count": 3,
"InstanceChargeType": "PrePaid"
}
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Invalid.Parameter | The required parameter regionId must be not null. | The RegionId parameter is required. |
500 | InternalError | The process of creating snapshot has failed due to some unknown error. | The snapshot cannot be created. |
500 | ServiceUnavailable | The service is unavailable, please try again later. | - |
For a list of error codes, visit the Service error codes.