# Method: services.list

- [HTTP request](https://docs.cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services/list#body.HTTP_TEMPLATE)
- [Query parameters](https://docs.cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services/list#body.request_body)
- [Response body](https://docs.cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services/list#body.ListServicesResponse.SCHEMA_REPRESENTATION)
- [Authorization Scopes](https://docs.cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services/list#body.aspect)

Lists managed services.

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

### HTTP request

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

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Query parameters

| Parameters ||
|---|---|
| `producerProjectId` | `string` Include services produced by the specified project. |
| `pageSize` | `integer` The max number of items to include in the response list. Page size is 50 if not specified. Maximum value is 500. |
| `pageToken` | `string` token identifying which result to start with; returned by a previous list call. |
| `consumerId (deprecated)` | `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 (`https://docs.cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services#ManagedService`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `services[]` | ``object (`https://docs.cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services#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 [Authentication Overview](https://cloud.google.com/docs/authentication/).