• Cloud Eye

ces
  1. Help Center
  2. Cloud Eye
  3. API Reference
  4. API Description
  5. Quota Management
  6. Querying Quotas

Querying Quotas

Function

This API is used to query a resource quota and the used amount. The current resource refers to alarm rules only.

URI

GET /V1.0/{project_id}/quotas

  • Parameter description
    Table 1 Parameter description

    Parameter

    Description

    project_id

    Indicates the project ID.

  • Example
    /V1.0/{project_id}/quotas

Request

None

Response

  • Response parameters
    Table 2 Response parameters

    Parameter

    Type

    Description

    quotas

    JSON object

    Indicates the quota list.

    resources

    JSON array

    Indicates the resource quota list.

    type

    Enumerated

    Indicates the quota type.

    The value can be:

    alarm indicates the alarm rule.

    used

    Integer

    Indicates the used amount of the quota.

    unit

    String

    Indicates the quota unit.

    quota

    Integer

    Indicates the total amount of the quota.

  • Example response
    { 
    "quotas": 
        { 
        "resources": [
                {
                    "type":"alarm",
                    "used":0, 
                    "unit":"",
                    "quota":20
                }
            ]
        } 
    }

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    Request error

    401 Unauthorized

    The authentication information is not provided or is incorrect.

    403 Forbidden

    You are forbidden to access the page requested.

    408 Request Timeout

    The request timed out.

    429 Too Many Requests

    Concurrent requests are excessive.

    500 Internal Server Error

    Failed to complete the request because of an internal service error.

    503 Service Unavailable

    The service is currently unavailable.

Error Code

For details, see Error Codes.