RPC to list projects to which the user has been granted any project role.
Users of this method are encouraged to consider the Resource Manager API, which provides the underlying data for this method and has more capabilities.
HTTP request
GET https://bigquery.googleapis.com/bigquery/v2/projects
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
maxResults |
|
pageToken |
Page token, returned by a previous call, to request the next page of results. If not present, no further pages are present. |
Request body
The request body must be empty.
Response body
Response object of projects.list
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"kind": string,
"etag": string,
"nextPageToken": string,
"projects": [
{
"kind": string,
"id": string,
"numericId": string,
"projectReference": {
object ( |
Fields | |
---|---|
kind |
The resource type of the response. |
etag |
A hash of the page of results. |
nextPageToken |
Use this token to request the next page of results. |
projects[] |
Projects to which the user has at least READ access. |
projects[].kind |
The resource type. |
projects[].id |
An opaque ID of this project. |
projects[].numericId |
The numeric ID of this project. |
projects[].projectReference |
A unique reference to this project. |
projects[].friendlyName |
A descriptive name for this project. A wrapper is used here because friendlyName can be set to the empty string. |
totalItems |
The total number of projects in the page. A wrapper is used here because the field should still be in the response when the value is 0. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/bigquery
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/bigquery.readonly
https://www.googleapis.com/auth/cloud-platform.read-only
For more information, see the Authentication Overview.