Updated on 2023-12-27 GMT+08:00

Querying Quotas of a Tenant

Function

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

URI

GET /v1/{domain_id}/objectstorage/quotas

Table 1 describes the parameters in the URI.

Table 1 Parameter description

Parameter

Mandatory

Description

domain_id

Yes

Specifies the tenant ID.

Request

Request Parameters

None.

Response

Response Parameters

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

type

String

Specifies the tenant quota item. You can query the maximum number of concurrent migration tasks of a tenant. This parameter value is MaxParallelTaskNum.

quota

int

Specifies the number of quotas of a domain.

Examples

Request example

GET /v1/{domain_id}/objectstorage/quotas

Response example

{
  "quotas": {
    "resource": {
      "type": "MaxParallelTaskNum",
      "quota": 5
    }
  }
}

Status Code

For details about the status code, see Status Code.