Files
doc-exports/docs/rds/api-ref/rds_15_0001.html
wangdengke2 1ddaec1a62 rds_api
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: wangdengke2 <wangdengke2@huawei.com>
Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
2026-01-29 11:28:26 +00:00

13 KiB

Querying Resource Quotas

Function

This API is used to query resource quotas in a project.

URI

  • URI format

    GET https://{Endpoint}/v3/{project_id}/quotas

  • Parameter description
    Table 1 Parameter description

    Name

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID of a tenant in a region.

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

Request

  • Pequest parameters
    Table 2 Request header parameters

    Parameter

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    Specifies the user token.

    The user token is a response to the API used to obtain a user token.

  • URI Example
    GET https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/quotas

Response

  • Normal Response
    Table 3 Parameters

    Parameter

    Type

    Description

    quotas

    Object

    Specifies the objects in the quota list.

    For details, see Table 4.

    Table 4 quotas field data structure description

    Parameter

    Type

    Description

    resources

    Array of objects

    Indicates the resource list objects.

    For details, see Table 5.

    Table 5 resources field data structure description

    Parameter

    Type

    Description

    quota

    Integer

    Indicates the project resource quota.

    used

    Integer

    Indicates the number of used resources.

    type

    String

    Indicates the project resource type.

    instance: instance resources

  • Example normal response
    {
      "quotas" : {
        "resources" : [ {
          "quota" : 100,
          "used" : 1,
          "type" : "instance"
        } ]
      }
    }
  • Abnormal Response

    For details, see Abnormal Request Results.

Status Code

Error Code

For details, see Error Codes.