# Method: projects.locations.certificateAuthorities.list

- [HTTP request](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.request_body)
- [Response body](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.ListCertificateAuthoritiesResponse.SCHEMA_REPRESENTATION)
- [Authorization Scopes](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.aspect)

Lists `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities#CertificateAuthority`.

### HTTP request

`GET https://privateca.googleapis.com/v1beta1/{parent=projects/*/locations/*}/certificateAuthorities`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The resource name of the location associated with the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities#CertificateAuthority`, in the format `projects/*/locations/*`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `privateca.certificateAuthorities.list` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. Limit on the number of `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities#CertificateAuthority` to include in the response. Further `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities#CertificateAuthority` can subsequently be obtained by including the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.ListCertificateAuthoritiesResponse.FIELDS.next_page_token` in a subsequent request. If unspecified, the server will pick an appropriate default. |
| `pageToken` | `string` Optional. Pagination token, returned earlier via `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#body.ListCertificateAuthoritiesResponse.FIELDS.next_page_token`. |
| `filter` | `string` Optional. Only include resources that match the filter in the response. |
| `orderBy` | `string` Optional. Specify how the results should be sorted. |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains data with the following structure:
Response message for `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities/list#google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities`.

| JSON representation ||
|---|---|
| ``` { "certificateAuthorities": [ { object (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities#CertificateAuthority`) } ], "nextPageToken": string, "unreachable": [ string ] } ``` |

| Fields ||
|---|---|
| `certificateAuthorities[]` | ``object (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities#CertificateAuthority`)`` The list of `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities#CertificateAuthority`. |
| `nextPageToken` | `string` A token to retrieve next page of results. Pass this value in \[ListCertificateAuthoritiesRequest.next_page_token\]\[\] to retrieve the next page of results. |
| `unreachable[]` | `string` A list of locations (e.g. "us-west1") that could not be reached. |

### 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/).