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}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
ID of the project to be queried. For details about how to obtain a project ID, see Obtaining Account, IAM User, Group, Project, Region, and Agency Information. |
Request Parameters
|
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
|
Parameter |
Type |
Description |
|---|---|---|
|
Object |
Project information. |
|
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 cn-north-4 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
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": "cn-north-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
Last Article: Changing Project Status
Next Article: Querying the Quotas of a Project
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.