Obtaining an IAM Project ID
Obtaining a Project ID by Calling an API
A project ID can be obtained by calling a specific API. For details, see Querying Project Information.
The API used to obtain a project ID is GET https://{Endpoint}/v4/projects/, where {Endpoint} indicates the Req endpoint. You can obtain the Req endpoint from Endpoints. For details about API authentication, see Authentication.
In the following example, project_id indicates a project ID.
{ "projects" : [ { "project_num_id" : 3183801, "project_id" : "41bd3eab86544863b8fc92ffcd35e3c8", "project_name" : "demo_project", "description" : "demo", "created_time" : 1576114296000, "updated_time" : 1576114296000, "project_type" : "xboard", "creator" : { "user_num_id" : 4097, "user_id" : "c4bd39f0573a436589714bedbcca8536", "user_name" : "modile_user", "domain_id" : "2489d8cbba804db8bcd35384685ff3ac", "domain_name" : "modile_user", "nick_name" : "Tom.M.Riddle" } } ], "total" : 10 }
Obtaining an IAM Project ID from the Console
A project ID is required for some URLs when an API is called. To obtain a project ID, perform the following operations:
- Log in to the management console.
- Hover over the username in the upper right corner and click My Credentials from the drop-down list.
On the API Credentials page, view the project ID in the project list.
Figure 1 Viewing an IAM project ID
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