# Method: annotations.list

**Full name**: projects.locations.datasets.annotationStores.annotations.list

Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.annotationStores.annotations#Annotation` in the given `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.annotationStores#AnnotationStore` for a source resource.

### HTTP request

`GET https://healthcare.googleapis.com/v1beta1/{parent=projects/*/locations/*/datasets/*/annotationStores/*}/annotations`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Name of the Annotation store to retrieve Annotations from. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `healthcare.annotations.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Limit on the number of Annotations to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
| `pageToken` | `string` The nextPageToken value returned from the previous List request, if any. |
| `filter` | `string` Restricts Annotations returned to those matching a filter. Functions available for filtering are: - `matches("annotationSource.cloud_healthcare_source.name", substring)`. Filter on `cloudHealthcareSource.name`. For example: `matches("annotationSource.cloud_healthcare_source.name", "some source")`. - `matches("annotation", substring)`. Filter on all fields of annotation. For example: `matches("annotation", "some-content")`. - `type("text")`, `type("image")`, `type("resource")`. Filter on the type of annotation `data`. |
| `view` | ``enum(`https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.annotationStores.annotations/list#AnnotationView`)`` Controls which fields are populated in the response. |

### Request body

The request body must be empty.

### Response body

Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.annotationStores.annotations#Annotation` in the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.annotationStores#AnnotationStore`.

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

| JSON representation |
|---|
| ``` { "annotations": [ { object(`https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.annotationStores.annotations#Annotation`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `annotations[]` | ``object(`https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.annotationStores.annotations#Annotation`)`` The returned Annotations. Won't be more values than the value of pageSize in the request. See `AnnotationView` in the request for populated fields. |
| `nextPageToken` | `string` Token to retrieve the next page of results or empty if there are no more results in the list. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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

## AnnotationView

The optional view on `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.annotationStores.annotations#Annotation`.

| Enums ||
|---|---|
| `ANNOTATION_VIEW_UNSPECIFIED` | Same as BASIC. |
| `ANNOTATION_VIEW_BASIC` | Only `name`, `annotationSource` and `customData` fields are populated. |
| `ANNOTATION_VIEW_FULL` | All fields are populated. |