# Method: projects.attestors.list

- [HTTP request](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1alpha2/projects.attestors/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1alpha2/projects.attestors/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1alpha2/projects.attestors/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1alpha2/projects.attestors/list#body.request_body)
- [Response body](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1alpha2/projects.attestors/list#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1alpha2/projects.attestors/list#body.aspect)

Lists `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor`. Returns INVALID_ARGUMENT if the project does not exist.

### HTTP request

`GET https://binaryauthorization.googleapis.com/v1alpha2/{parent=projects/*}/attestors`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The resource name of the project associated with the `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor`, in the format `projects/*`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `binaryauthorization.attestors.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default. |
| `pageToken` | `string` A token identifying a page of results the server should return. Typically, this is the value of `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/ListAttestorsResponse#FIELDS.next_page_token` returned from the previous call to the `attestors.list` method. |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/ListAttestorsResponse`.

### Authorization scopes

Requires the following OAuth scope:

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

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