- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Lists spaces in a given project and location.
HTTP request
GET https://designcenter.googleapis.com/v1alpha/{parent=projects/*/locations/*}/spaces
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The name of the parent resource, for which spaces are listed. |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. The maximum number of pages to return from this request. If unspecified, the value automatically reflects the number of results returned. |
pageToken |
Optional. If present, retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call. |
filter |
Optional. A filter that chooses which spaces to return. |
orderBy |
Optional. How the results are sorted. |
Request body
The request body must be empty.
Response body
Results returned from projects.locations.spaces.list.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"spaces": [
{
object ( |
Fields | |
---|---|
spaces[] |
A list of spaces. |
nextPageToken |
If there might be more results than those appearing in this response, nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken. |
unreachable[] |
Locations that could not be reached. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
designcenter.spaces.list
For more information, see the IAM documentation.