• Elastic Load Balancing

elb
  1. Help Center
  2. Elastic Load Balancing
  3. API Reference
  4. Classic Load Balancer APIs
  5. Quota
  6. Querying Load Balancer or Listener Quotas

Querying Load Balancer or Listener Quotas

Function

This API is used to query the quotas of load balancer or listener.

URI

GET /v1.0/{project_id}/elbaas/quotas
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID of the operator.

Request

  • Request parameters

    None

  • Example request

    None

Response

  • Response parameters
    Table 2 Parameter description

    Parameter

    Type

    Description

    quotas

    Dict

    Specifies the resource quotas.

    Table 3 quotas field description

    Parameter

    Type

    Description

    resources

    List data structure

    Lists the resource quotas.

    Table 4 resources field description

    Parameter

    Type

    Description

    type

    String

    Specifies the resource type. The value can be elb or listener.

    used

    Integer

    Specifies the quantity of used resources.

    quota

    Integer

    Specifies the total resource quotas.

    max

    Integer

    Specifies the maximum number of resources.

    min

    Integer

    Specifies the minimum number of resources.

  • Example response
    {
        "quotas": {
            "resources": [
                {
                    "type": "elb",
                    "used": 2,
                    "quota": 5,
                    "max": 100,
                    "min": 1
                },
                {
                    "type": "listener",
                    "quota": 5,
                    "max": 200,
                    "min": 1
                }
            ]
        }
    }
    NOTE:

    The used field is unavailable for listeners, for which an empty character string is returned.

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 badRequest

    Request error.

    401 unauthorized

    Authentication failed.

    403 userDisabled

    You do not have the rights to perform the operation.

    404 Not Found

    The requested page does not exist.

    500 authFault

    System error.

    503 serviceUnavailable

    The service is unavailable.