# Method: projects.locations.interceptEndpointGroups.list

Lists endpoint groups in a given project and location. See <https://google.aip.dev/132>.

### HTTP request

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

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent, which owns this collection of endpoint groups. Example: `projects/123456789/locations/global`. See <https://google.aip.dev/132> for more details. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See <https://google.aip.dev/158> for more details. |
| `pageToken` | `string` Optional. A page token, received from a previous `interceptEndpointGroups.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `interceptEndpointGroups.list` must match the call that provided the page token. See <https://google.aip.dev/158> for more details. |
| `filter` | `string` Optional. Filter expression. See <https://google.aip.dev/160#filtering> for more details. |
| `orderBy` | `string` Optional. Sort expression. See <https://google.aip.dev/132#ordering> for more details. |

### Request body

The request body must be empty.

### Response body

Response message for interceptEndpointGroups.list.

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

| JSON representation |
|---|
| ``` { "interceptEndpointGroups": [ { object (`https://docs.cloud.google.com/network-security-integration/docs/reference/rest/v1/projects.locations.interceptEndpointGroups#InterceptEndpointGroup`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `interceptEndpointGroups[]` | ``object (`https://docs.cloud.google.com/network-security-integration/docs/reference/rest/v1/projects.locations.interceptEndpointGroups#InterceptEndpointGroup`)`` The endpoint groups from the specified parent. |
| `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. See <https://google.aip.dev/158> for more details. |

### 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:

- `networksecurity.interceptEndpointGroups.list`

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