Method: services.list

Lists managed services.

Returns all public services. For authenticated users, also returns all services the calling user has "servicemanagement.services.get" permission for.

BETA: If the caller specifies the consumerId, it returns only the services enabled on the consumer. The consumerId must have the format of "project:{PROJECT-ID}".

HTTP request

GET https://servicemanagement.googleapis.com/v1/services

The URL uses Google API HTTP annotation syntax.

Query parameters

Parameters
producerProjectId

string

Include services produced by the specified project.

pageSize

number

Requested size of the next page of data.

pageToken

string

token identifying which result to start with; returned by a previous list call.

consumerId

string

Include services consumed by the specified consumer.

The Google Service Management implementation accepts the following forms: - project:

Request body

The request body must be empty.

Response body

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

Response message for services.list method.

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

object(ManagedService)

The returned services will only have the name field set.

nextPageToken

string

token that can be passed to services.list to resume a paginated query.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/service.management.readonly
  • https://www.googleapis.com/auth/cloud-platform.read-only
  • https://www.googleapis.com/auth/service.management
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Auth Guide.

Was this page helpful? Let us know how we did:

Send feedback about...

Service Infrastructure