Method: projects.locations.fleets.list

Returns all fleets within an organization or a project that the caller has access to.

HTTP request

GET https://gkehub.googleapis.com/v1alpha/{parent=projects/*/locations/*}/fleets

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The organization or project to list for Fleets under, in the format organizations/*/locations/* or projects/*/locations/*.

Query parameters

Parameters
pageToken

string

Optional. A page token, received from a previous fleets.list call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to fleets.list must match the call that provided the page token.

pageSize

integer

Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of ListFleetsResponse.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.