Obtaining an IAM Project ID

Updated on 2025-05-27 GMT+08:00

Obtaining a Project ID by Calling an API

You can obtain the project ID by calling the APIs used to query the project information based on the specified criteria.

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 Regions and 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 a 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:

  1. Log in to the management console.
  2. Hover over your username in the upper right corner and select My Credentials from the drop-down list.

    On the API Credentials page, view the project ID in the project list.

    Figure 1 Viewing a project ID
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback