- [HTTP request](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#body.request_body)
- [Response body](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#body.ListOutboundEndpointsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#body.aspect)
- [Examples](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#examples)
- [Try it!](https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints/list#try-it)

Enumerates all Outbound Endpoints associated with a project.

### HTTP request

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

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent project and location from which to list resources. Format: projects/{project}/locations/{location} |

### Query parameters

| Parameters ||
|---|---|
| `clientOperationId` | `string` |
| `pageSize` | `integer` Optional. The maximum number of results to return. |
| `pageToken` | `string` Optional. A page token received from a previous List call. |

### Request body

The request body must be empty.

### Response body

Response message for OutboundEndpointsService.ListOutboundEndpoints

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

| JSON representation |
|---|
| ``` { "outboundEndpoints": [ { object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints#OutboundEndpoint`) } ], "nextPageToken": string, "unreachable": [ string ] } ``` |

| Fields ||
|---|---|
| `outboundEndpoints[]` | ``object (`https://docs.cloud.google.com/dns/docs/reference/rest/v1/outboundEndpoints#OutboundEndpoint`)`` The list of OutboundEndpoints. |
| `nextPageToken` | `string` A token to retrieve the next page of results. Set to empty if there are no remaining results. |
| `unreachable[]` | `string` Unordered list. The resource names of the unreachable locations. Format: `projects/{project}/locations/{location}` |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/cloud-platform.read-only`
- `
  https://www.googleapis.com/auth/ndev.clouddns.readonly`
- `
  https://www.googleapis.com/auth/ndev.clouddns.readwrite`

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