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.
Debugging
You can debug this API in API Explorer.
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 |
Account ID of the project. |
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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot