• Scalable File Service

sfs
  1. Help Center
  2. Scalable File Service
  3. API Reference
  4. SFS APIs
  5. Quota Management

Quota Management

Function

This interface is used to query quota information.

URI

  • GET /v2/{project_id}/os-quota-sets/{project_id}
  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    string

    Specifies the project ID of the operator.

    project_id

    Yes

    string

    Specifies the UUID of the tenant whose quotas are to be queried, updated, or deleted. This ID differs from the first project ID (the administrative tenant ID) contained in the URI.

Request

  • Parameter description

    None

  • Example request

    None

Response

  • Parameter description

    Parameter

    Type

    Description

    quota_set

    object

    Specifies the quota_set object.

  • Description of field quota_set

    Parameter

    Type

    Description

    gigabytes

    integer

    Specifies the capacity in gigabytes allowed for each tenant.

    snapshots

    integer

    Specifies the number of snapshots allowed for each tenant.

    shares

    integer

    Specifies the number of shared file systems allowed for each tenant.

    snapshot_gigabytes

    integer

    Specifies the snapshot capacity in gigabytes allowed for each tenant.

    id

    string

    Specifies the UUID of the tenant for which you manage quotas.

    share_networks

    integer

    Specifies the number of share networks for each tenant.

  • Example response
    {
      "quota_set": {
        "gigabytes": -1,
        "snapshots": -1,
        "snapshot_gigabytes": -1,
        "shares": -1,
        "id": "da0f615c35eb4d72812d1547a77b5394",
        "share_networks": 10
      }
    }

Status Codes

  • Normal

    200

  • Abnormal

    Status Code

    Description

    400 Bad Request

    The server failed to process the request.

    401 Unauthorized

    You must enter a username and the 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 could not 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 could not 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 request is invalid.

    503 Service Unavailable

    Failed to complete the request because the service is unavailable.

    504 Gateway Timeout

    A gateway timeout error occurred.