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 spot instances, and dedicated hosts that you can create and the capacity quotas for pay-as-you-go disks that you can create. You can also query information such as network types or whether an account has completed the account 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.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeAccountAttributes |
get |
*All Resource
|
None | None |
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. |
max-security-groups |
|
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 elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
8CE45CD5-31FB-47C2-959D-CA8144CE**** |
| AccountAttributeItems |
object |
||
| AccountAttributeItem |
array<object> |
Details about account privileges in the specified region. |
|
|
array<object> |
|||
| AttributeName |
string |
The type of the resource quota in the specified region. Valid values:
|
max-security-groups |
| AttributeValues |
object |
||
| ValueItem |
array<object> |
The values of resource quotas. |
|
|
object |
|||
| DiskCategory |
string |
The data disk category. Valid values:
|
cloud_ssd |
| Value |
string |
The value of the resource quota in the specified region. Valid values: The values returned for the resource quotas to which the following AttributeName values correspond are 0 or positive integers:
When AttributeName is set to supported-postpay-instance-types, instance types are returned. For more information, see Overview of instance families. When AttributeName is set to real-name-authentications, one of the following values is returned:
When AttributeName is set to instance-network-type, one of the following values is returned:
|
800 |
| ExpiredTime |
string |
The expiration time of a privilege. This parameter is returned only when the account privilege has an expiration time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-01-01T12:30:00Z |
| ZoneId |
string |
The ID of the zone in which the resource resides. |
cn-hangzhou-b |
| InstanceType |
string |
The type of the instance. |
ecs.g5.large |
| Count |
integer |
The number of privilege attributes in the account. |
3 |
| InstanceChargeType |
string |
The billing method of the instance. |
PrePaid |
Examples
Success response
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 |
|---|---|---|---|
| 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. | |
| 403 | Invalid.Parameter | The required parameter regionId must be not null. | The RegionId parameter is required. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.