- [HTTP request](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#body.request_body)
- [Response body](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#body.ListSharedServicesResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#body.aspect)
- [SharedService](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#SharedService)
  - [JSON representation](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#SharedService.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#try-it)

List shared services to the given resource.

### HTTP request

`GET https://serviceusage.googleapis.com/v2beta/{parent=*/*}/sharedServices`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Resource name that services are shared with. Format: `projects/100`, `folders/101` or `organizations/102`. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` The maximum number of services to return. The service may return fewer than this value. If unspecified, at most 50 services will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| `pageToken` | `string` A page token, received from a previous `sharedServices.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `sharedServices.list` must match the call that provided the page token. |
| `filter` | `string` A filter to apply to the list of services. Supported filter strings include: - `mcpServer:urls` True if service's mcpServer.urls field is not empty. |

### Request body

The request body must be empty.

### Response body

The response message of the `sharedServices.list` method.

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

| JSON representation |
|---|
| ``` { "sharedServices": [ { object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#SharedService`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `sharedServices[]` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/sharedServices/list#SharedService`)`` Output only. The services that are shared with the parent resource. |
| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform.read-only`
- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

## SharedService

A shared service available to the parent resource.

| JSON representation |
|---|
| ``` { "name": string, "service": { object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Service`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The name of the shared service in format, e.g., `projects/{project}/services/{service}`, `folders/{folder}/services/{service}`, `organizations/{organization}/services/{service}`. |
| `service` | ``object (`https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/services#Service`)`` Output only. The service referenced by this shared service. |