Lists all the workspaces under the project within a cloud location.
HTTP request
GET https://cloudoptimization.googleapis.com/v1/{parent}/workspaces
Path parameters
Parameters | |
---|---|
parent |
Required. The parent, which owns this collection of workspaces. Format: "projects/{project}/locations/{location}" |
Query parameters
Parameters | |
---|---|
pageSize |
The maximum number of workspaces to return. The service may return fewer than this value. If unspecified, at most 50 workspaces will be returned. The maximum value is 100; values above 100 will be coerced to 100. |
pageToken |
A page token, received from a previous When paginating, all other parameters provided to |
filter |
Filter expression that matches a subset of the Workspaces to show. For more information about filter syntax, see https://google.aip.dev/160. |
Request body
The request body must be empty.
Response body
The response message for workspaces.list
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"workspaces": [
{
object ( |
Fields | |
---|---|
workspaces[] |
The workspaces from the specified project and location. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.