Files
doc-exports/docs/eps/api-ref/en-us_topic_0121230883.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

14 KiB

Querying Details About a Specified Enterprise Project

Function

This API is used to query details about a specified enterprise project.

URI

GET /v1.0/enterprise-projects/{enterprise_project_id}

For details about the parameters, see Table 1.
Table 1 Parameter in the URI

Name

Mandatory

Type

Description

enterprise_project_id

Yes

String

Specifies the enterprise project ID.

You can obtain the ID by using API Querying the Enterprise Project List.

Request

  • Parameter description
    Table 2 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/5aa119a8-d25b-45a7-8d1b-88e127885635

Response

Status code: 200

  • Parameter description
    Table 3 Parameters in the response body

    Name

    Type

    Description

    enterprise_project

    Dict<enterprise_project>

    Specifies the enterprise project.

    For details, see Table 4.

  • enterprise_project field data structure
    Table 4 enterprise_project field data structure description

    Name

    Type

    Description

    id

    String

    Specifies the enterprise project ID.

    name

    String

    Specifies the enterprise project name.

    description

    String

    Provides supplementary information about the enterprise project.

    status

    Integer

    1 indicates Enabled. 2 indicates Disabled.

    created_at

    String

    Specifies the time (UTC) when the enterprise project was created.

    Example: 2018-05-18T06:49:06Z

    updated_at

    String

    Specifies the time (UTC) when the enterprise project was modified.

    Example: 2018-05-18T06:49:06Z

    type

    String

    Project type. prod: commercial project; poc: test project

    delete_flag

    Boolean

    Deletion flag. The value false means that the information is not deleted and the value true means that the information is deleted.

  • Example response
    Status code: 200
    {
        "enterprise_project": {
            "id": "5aa119a8-d25b-45a7-8d1b-88e127885635",
            "name": "enterprise_project1",
            "description": "description",
            "type": "prod",
            "status": 1,
            "delete_flag": false,
            "created_at": "2016-03-28T00:00:00Z",
            "updated_at": "2016-03-28T00:00:00Z"
        }
    }

Status Codes

For details, see Status Code.

Error Codes

For details, see Error Codes.