This page explains how to retrieve project metadata and modify existing project settings. You can also search for specific projects within your resource hierarchy based on their state or display names.
Find the project name, number, and ID
To interact with Google Cloud resources, you must provide the identifying project information for every request. A project is identified by its project ID and project number.
Console
Go to the Welcome page in the Google Cloud console.
From the project picker at the top of the page, select your project.
The project name, project number, and project ID appear after the Welcome heading.
gcloud
To find the project number, ID, or name, use the gcloud projects describe command:
gcloud projects describe PROJECT_ID
To retrieve only the project number as a value, use the --format flag:
gcloud projects describe PROJECT_ID --format="value(projectNumber)"
Get an existing project
To get the detailed metadata of a specific Google Cloud project, such as the project's lifecycle state, creation time, and parent resource, use the Google Cloud CLI or the API.
You must have Project Owner status or the permissions of the Browser role
(roles/browser) to access project details.
gcloud
Before using any of the command data below, make the following replacements:
- PROJECT_ID: the Google Cloud project ID
Execute the following command:
Linux, macOS, or Cloud Shell
gcloud projects describe PROJECT_ID
Windows (PowerShell)
gcloud projects describe PROJECT_ID
Windows (cmd.exe)
gcloud projects describe PROJECT_ID
REST
Before using any of the request data, make the following replacements:
- PROJECT_ID: the Google Cloud project ID
HTTP method and URL:
GET https://cloudresourcemanager.googleapis.com/v3/projects/