# Method: projects.locations.discoveryClients.list

- [HTTP request](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/list#body.request_body)
- [Response body](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/list#body.ListDiscoveryClientsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients/list#body.aspect)

Lists all the discovery clients in a given project and location.

### HTTP request

`GET https://migrationcenter.googleapis.com/v1/{parent=projects/*/locations/*}/discoveryClients`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Parent resource. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. The maximum number of items to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default value. |
| `pageToken` | `string` Optional. A page token, received from a previous `discoveryClients.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `discoveryClients.list` must match the call that provided the page token. |
| `filter` | `string` Optional. Filter expression to filter results by. |
| `orderBy` | `string` Optional. Field to sort by. |

### Request body

The request body must be empty.

### Response body

Response message for listing discovery clients.

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

| JSON representation |
|---|
| ``` { "discoveryClients": [ { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients#DiscoveryClient`) } ], "nextPageToken": string, "unreachable": [ string ] } ``` |

| Fields ||
|---|---|
| `discoveryClients[]` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.discoveryClients#DiscoveryClient`)`` List of discovery clients. |
| `nextPageToken` | `string` A token that can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| `unreachable[]` | `string` Locations that could not be reached. |

### Authorization scopes

Requires the following OAuth scope:

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

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