Updated on 2023-05-29 GMT+08:00

Querying Quota

Function

This API is used to query evaluation project and migration project quota of a tenant.

URI

GET /v1/{project_id}/quotas

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region.

For details about how to obtain the project ID, see Obtaining a Project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token obtained from IAM.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

quotas

Array of Table 4 objects

Quota list.

Table 4 Quota

Parameter

Type

Description

project_type

String

UGO project type.

quota

Integer

Total quota.

used

Integer

Used quota.

Example Request

GET https://{endpoint}/v1/0ac6eb2c8000d2ee2fd9c006dededbe6/quotas

Example Response

Status code: 200

Request succeeded.

{ 
  "quotas" : [ { 
    "quota" : 8, 
    "used" : 3, 
    "project_type" : "evaluation_project" 
  }, { 
    "quota" : 8, 
    "used" : 1, 
    "project_type" : "migration_project" 
  } ] 
}

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes

For details, see Error Codes.