Lists projects that are direct children of the specified folder or organization resource. list()
provides a strongly consistent view of the projects underneath the specified parent resource. list()
returns projects sorted based upon the (ascending) lexical ordering of their displayName
. The caller must have resourcemanager.projects.list
permission on the identified parent.
HTTP request
GET https://cloudresourcemanager.googleapis.com/v3/projects
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
parent |
Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value Authorization requires the following IAM permission on the specified resource
|
pageToken |
Optional. A pagination token returned from a previous call to |
pageSize |
Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. |
showDeleted |
Optional. Indicate that projects in the |
Request body
The request body must be empty.
Response body
A page of the response received from the projects.list
method.
A paginated response where more pages are available has nextPageToken
set. This token can be used in a subsequent request to retrieve the next request page.
NOTE: A response may contain fewer elements than the request pageSize
and still have a nextPageToken
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"projects": [
{
object ( |
Fields | |
---|---|
projects[] |
The list of Projects under the parent. This list can be paginated. |
nextPageToken |
Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the When Pagination tokens have a limited lifetime. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only
https://www.googleapis.com/auth/cloudplatformprojects
https://www.googleapis.com/auth/cloudplatformprojects.readonly
For more information, see the Authentication Overview.