# Method: projects.iap_tunnel.locations.destGroups.list

- [HTTP request](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#body.request_body)
- [Response body](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#body.ListTunnelDestGroupsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups/list#try-it)

Lists the existing TunnelDestGroups. To group across all locations, use a `-` as the location ID. For example: `/v1/projects/123/iap_tunnel/locations/-/destGroups`

### HTTP request

`GET https://iap.googleapis.com/v1/{parent=projects/*/iap_tunnel/locations/*}/destGroups`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Google Cloud Project ID and location. In the following format: `projects/{projectNumber/id}/iap_tunnel/locations/{location}`. A `-` can be used for the location to group across all locations. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `iap.tunnelDestGroups.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` The maximum number of groups to return. The service might return fewer than this value. If unspecified, at most 100 groups are returned. The maximum value is 1000; values above 1000 are coerced to 1000. |
| `pageToken` | `string` A page token, received from a previous `destGroups.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `destGroups.list` must match the call that provided the page token. |

### Request body

The request body must be empty.

### Response body

The response from destGroups.list.

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

| JSON representation |
|---|
| ``` { "tunnelDestGroups": [ { object (`https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups#TunnelDestGroup`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `tunnelDestGroups[]` | ``object (`https://docs.cloud.google.com/iap/docs/reference/rest/v1/projects.iap_tunnel.locations.destGroups#TunnelDestGroup`)`` TunnelDestGroup existing in the project. |
| `nextPageToken` | `string` A token that you can send as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### Authorization scopes

Requires the following OAuth scope:

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

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

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `iap.tunnelDestGroups.list`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).