Method: projects.locations.services.list

Stay organized with collections Save and categorize content based on your preferences.

List Services.

HTTP request

GET https://{endpoint}/v2/{parent}/services

Where {endpoint} is one of the supported service endpoints.

Path parameters

Parameters
parent

string

Required. The location and project to list resources on. Location must be a valid GCP region, and may not be the "-" wildcard. Format: projects/{projectnumber}/locations/{location} It takes the form projects/{project}/locations/{location}.

Authorization requires the following IAM permission on the specified resource parent:

  • run.services.list

Query parameters

Parameters
pageSize

integer

Maximum number of Services to return in this call.

pageToken

string

A page token received from a previous call to services.list. All other parameters must match.

showDeleted

boolean

If true, returns deleted (but unexpired) resources along with active ones.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response message containing a list of Services.

JSON representation
{
  "services": [
    {
      object (Service)
    }
  ],
  "nextPageToken": string
}
Fields
services[]

object (Service)

The resulting list of Services.

nextPageToken

string

A token indicating there are more items than pageSize. Use it in the next services.list request to continue.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.