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.
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 the 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 eu-west-101 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.eu/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": "eu-west-101_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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.