Queries the used amounts and upper limits of privileges and quotas that you have in a specified region.

Description

This operation cannot be used for resource group authentication.

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 ListUsage

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

RegionId String No cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
Attributes Map {"UsedCpu": 11,"MaxCpu": 1000,"MaxImageCacheCount": 50,"UsedImageCacheCount": 0}

The information about the used amounts and upper limits of privileges and quotas that you have in a specified region. The information contains the following items:

  • UsedCpu: the number of existing vCPUs.
  • MaxCpu: the maximum number of vCPUs.
  • UsedImageCacheCount: the number of existing image caches.
  • MaxImageCacheCount: the maximum number of image caches.
RequestId String 89164E78-FC82-4684-BE97-DCDD85D26546

The ID of the request.

Examples

Sample requests

https://eci.aliyuncs.com/?Action=ListUsage
&<Common request parameters>

Sample success responses

XML format

<ListUsage>
      <RequestId>89164E78-FC82-4684-BE97-DCDD85D26546</RequestId>
      <Attributes>
            <UsedCpu>11</UsedCpu>
            <MaxCpu>1000</MaxCpu>
            <MaxImageCacheCount>50</MaxImageCacheCount>
            <UsedImageCacheCount>0</UsedImageCacheCount>
      </Attributes>
</ListUsage>

JSON format

{
  "RequestId": "89164E78-FC82-4684-BE97-DCDD85D26546",
  "Attributes": {
    "UsedCpu": 11,
    "MaxCpu": 1000,
    "MaxImageCacheCount": 50,
    "UsedImageCacheCount": 0
  }
}

Error codes

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