Updated on 2024-03-26 GMT+08:00

Querying Tenant Quotas (Deprecated)

Function

This API is used to query the actual quotas of a specified tenant.

This API has been deprecated. For details about how to use this function, see the Storage Disaster Recovery Service API Reference.

Constraints

None

URI

  • URI

    GET v2/{project_id}/os-vendor-replication-quota-sets/{project_id}

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID.

    • The first project_id is the project ID of the query party.
    • The second project_id is the project ID of the queried party.

Request

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    usage

    No

    String

    Specifies whether to display the tenant's resource usages. The default value is false.

    • true: indicates to display the tenant's resource usages.
    • false: indicates not to display the tenant's resource usages.
  • Example request

    None

Response

  • Parameter description

    Parameter

    Type

    Description

    id

    String

    Specifies the tenant ID. The tenant ID is the same as the project ID.

    replications

    Integer

    Specifies the actual quota of EVS replication pairs.

    replication_consistency_groups

    Integer

    Specifies the actual quota of replication consistency groups.

    per_replication_consistency_groups_size

    Integer

    Specifies the actual quota of EVS replication pairs in a replication consistency group.

  • Example response
    {
        "quota_set": {
            "replications": 20, 
            "replication_consistency_groups": 20, 
            "id": "8fc128d1a8d245268b72e26a62027b20", 
            "per_replication_consistency_group_size": 20
        }
    }

Status Codes

  • Normal

    Returned Value

    Description

    200

    The server has processed the request.

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    The server failed to process the request.

    401 Unauthorized

    You must enter the username and password to access the requested page.

    403 Forbidden

    You are forbidden to access the requested page.

    404 Not Found

    The requested page was not found.

    405 Method Not Allowed

    You are not allowed to use the method specified in the request.

    406 Not Acceptable

    The response generated by the server cannot be accepted by the client.

    407 Proxy Authentication Required

    You must use the proxy server for authentication. Then, the request can be processed.

    408 Request Timeout

    The request timed out.

    409 Conflict

    The request cannot be processed due to a conflict.

    500 Internal Server Error

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

    501 Not Implemented

    Failed to complete the request because the server does not support the requested function.

    502 Bad Gateway

    Failed to complete the request because the server has received an invalid response.

    503 Service Unavailable

    Failed to complete the request because the service is unavailable.

    504 Gateway Timeout

    A gateway timeout error occurs.