• Image Management Service

ims
  1. Help Center
  2. Image Management Service
  3. API Reference
  4. APIs
  5. Image Quota (Extension API)
  6. Querying the Image Quota

Querying the Image Quota

Function

This extension API is used to query the quota of private images of a tenant in the current region.

URI

URI format

GET /v1/cloudimages/quota

Request

Example request
GET /v1/cloudimages/quota

Response

  • Parameter description

    Parameter

    Type

    Description

    type

    string

    Specifies the type of the resource to be queried.

    used

    int

    Specifies the used quota.

    quota

    int

    Specifies the total quota.

    min

    int

    Specifies the minimum quota.

    max

    int

    Specifies the maximum quota.

  • Example response
    STATUS CODE 200
    {
      "quotas": {
        "resources": [
          {
            "type": "image",
            "used": 0,
            "quota": 20,
            "min": 1,
            "max": 1000
          }
        ]
      }
    }

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    Request error. For details, see Error Codes.

    401 Unauthorized

    Authentication failed.

    403 Forbidden

    You do not have the rights to perform the operation.

    404 Not Found

    The requested resource was not found.

    500 Internal Server Error

    Internal service error.

    503 Service Unavailable

    The service is unavailable.