Help Center> Identity and Access Management> API Reference> API> Project Management> Querying Project Information and Status
Updated on 2023-07-05 GMT+08:00

Querying Project Information and Status

Function

This API is provided for the administrator to query project details and status.

The API can be called using both the global endpoint and region-specific endpoints. For IAM endpoints, see Regions and Endpoints.

URI

GET /v3-ext/projects/{project_id}

Table 1 URI parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

ID of the project to be queried. For details about how to obtain the project ID, see Obtaining Account, IAM User, Group, Project, Region, and Agency Information.

Request Parameters

Table 2 Parameters in the request header

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Fill application/json;charset=utf8 in this field.

X-Auth-Token

Yes

String

Token with Security Administrator permissions.

Response Parameters

Table 3 Parameters in the response body

Parameter

Type

Description

project

Object

Project information.

Table 4 project

Parameter

Type

Description

domain_id

String

ID of the account to which the project belongs.

is_domain

Boolean

The value is false.

parent_id

String

ID of the specified subproject or account ID of a specified system project, for example, the ap-southeast-1 project.

name

String

Project name.

description

String

Description of the project.

id

String

Project ID.

enabled

Boolean

Enabling status of the project.

status

String

Project status.

Example Request

Request for querying project information and status

GET https://iam.myhuaweicloud.com/v3-ext/projects/{project_id}

Example Response

Status code: 200

The request is successful.

{
    "project": {
        "domain_id": "d78cbac186b744899480f25bd02...",
        "is_domain": false,
        "parent_id": "aa2d97d7e62c4b7da3ffdfc11551...",
        "name": "ap-southeast-1_IAMProject",
        "description": "IAMDescription",
        "id": "07707ab14980265e2f5fc003a02...",
        "enabled": true,
        "status": "normal"
    }
}

Status Codes

Status Code

Description

200

The request is successful.

400

Invalid parameters.

401

Authentication failed.

403

Access denied.

404

The requested resource cannot be found.

500

Internal server error.

503

Service unavailable.

Error Codes

None