- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Examples
- Try it!
Lists Memberships in a given project and location.
HTTP request
GET https://gkehub.googleapis.com/v1alpha/{parent=projects/*/locations/*}/memberships
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent (project and location) where the Memberships will be listed. Specified in the format Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
page |
Optional. When requesting a 'page' of resources, |
page |
Optional. Token returned by previous call to |
filter |
Optional. Lists Memberships that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples:
|
order |
Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering. |
Request body
The request body must be empty.
Response body
Response message for the GkeHub.ListMemberships
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"resources": [
{
object ( |
Fields | |
---|---|
resources[] |
The list of matching Memberships. |
next |
A token to request the next page of resources from the |
unreachable[] |
List of locations that could not be reached while fetching this list. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.