Files
doc-exports/docs/eps/api-ref/en-us_topic_0121230886.html
weihongmin1 89457a7fa8 EPS API First Version
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com>
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2025-11-13 12:55:55 +00:00

11 KiB

Querying Enterprise Project Quota

Function

This API is used to query the enterprise project quota.

URI

GET /v1.0/enterprise-projects/quotas

Request

  • Parameter description
    Table 1 Parameters in the request header

    Parameter

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    Specifies the user token. EPS is a global service. When calling the IAM API to obtain a user token, set scope to domain. The value of X-Subject-Token in the response header is the user token.

  • Example request
    GET https://{EPS endpoint}/v1.0/enterprise-projects/quotas

Response

Status code: 200

  • Parameter description
    Table 2 Parameters in the response body

    Name

    Type

    Description

    quotas

    Dict<quotas>

    Enterprise project quotas.

    For details, see Table 3.

  • quotas field data structure
    Table 3 quotas field data structure description

    Name

    Type

    Description

    resources

    List<resource>

    Specifies the resource quota of EPS.

    For details, see Table 4.

  • resource field data structure
    Table 4 resource field data structure description

    Name

    Type

    Description

    type

    String

    Specifies the resource type. Currently, it refers to enterprise_project.

    used

    int

    Specifies the number of used quotas.

    quota

    int

    Specifies the total amount of the quota.

  • Example response
    Status code: 200
    {
        "quotas": {
            "resources": [
                {
                    "type": "enterprise_project",
                    "used": 3,
                    "quota": 100
                }
            ]
        }
    }

Status Codes

For details, see Status Code.

Error Codes

For details, see Error Codes.