# Method: projects.traceSinks.list

- [HTTP request](https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks/list#body.request_body)
- [Response body](https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks/list#body.ListTraceSinksResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks/list#body.aspect)
- [Try it!](https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks/list#try-it)

List all sinks for the parent resource (GCP project).

### HTTP request

`GET https://cloudtrace.googleapis.com/v2beta1/{parent=projects/*}/traceSinks`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent resource whose sinks are to be listed (currently only project parent resources are supported): "projects/[PROJECT_ID]" Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `cloudtrace.tracesinks.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageToken` | `string` Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call. |
| `pageSize` | `integer` Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available. |

### Request body

The request body must be empty.

### Response body

Result returned from `traceSinks.list`.

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

| JSON representation |
|---|
| ``` { "sinks": [ { object (`https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks#TraceSink`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `sinks[]` | ``object (`https://docs.cloud.google.com/trace/docs/reference/v2/rest/v2beta1/projects.traceSinks#TraceSink`)`` A list of sinks. |
| `nextPageToken` | `string` A paginated response where more pages might be available has `nextPageToken` set. To get the next set of results, call the same method again using the value of `nextPageToken` as `pageToken`. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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