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.
IAM Permissions Requires no specific IAM permission(s) to use this
method. The results are filtered to only include projects on which the caller has been granted a project-level role such as a BigQuery predefined IAM role or a basic role such as Viewer or Owner.
Arguments
| 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. |
Raised exceptions
| Exceptions | |
|---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of ProjectList.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- list: call: googleapis.bigquery.v2.projects.list args: maxResults: ... pageToken: ... result: listResult
JSON
[ { "list": { "call": "googleapis.bigquery.v2.projects.list", "args": { "maxResults": "...", "pageToken": "..." }, "result": "listResult" } } ]