To audit available recovery points, verify backup completion, or find a backup
ID for a restore operation, you can view a list of AlloyDB for PostgreSQL backups in
your project.


## Before you begin

- The Google Cloud project you are using must have been [enabled to access AlloyDB](https://docs.cloud.google.com/alloydb/docs/quickstart/create-and-connect.md.txt#before-you-begin).
- You must have one of these IAM roles in the Google Cloud project you are using:
  - `roles/alloydb.admin` (the AlloyDB Admin predefined IAM role)
  - `roles/owner` (the Owner basic IAM role)
  - `roles/editor` (the Editor basic IAM role)

  If you don't have any of these roles, contact your Organization Administrator to request
  access.

<br />

## Procedure

### Console

In the Google Cloud console, go to the **Backups** page.

[Go to Backups](https://console.cloud.google.com/alloydb/backups)

This displays a list of all AlloyDB backups within your project.

### gcloud


To use the gcloud CLI, you can
[install and initialize](https://docs.cloud.google.com/sdk/docs/install-sdk.md.txt) the Google Cloud CLI, or you
can use [Cloud Shell](https://docs.cloud.google.com/shell/docs/using-cloud-shell.md.txt).

<br />

To view a list of backups, use the [`gcloud alloydb backups
list`](https://docs.cloud.google.com/sdk/gcloud/reference/alloydb/backups/list) command.

```bash
gcloud alloydb backups list \
--region=REGION_ID \
--filter="cluster_name:clusters/CLUSTER_ID" \
--project=PROJECT_ID
```

Replace the following:

- `REGION_ID`: The region whose
  backups you want listed. For example, `us-central1`.

  To list backups in all regions, omit this argument.
- `CLUSTER_ID`: The ID of the cluster whose
  backups you want listed.

  To list backups in all your clusters within the specified
  regions, omit this argument.
- `PROJECT_ID`: The ID of the project whose backups
  you want listed.

Note that the `NAME` column in the output table displays the full name of
each backup, which includes its project ID and location. The backup's ID
is the substring following `/backups/` in its name.

For example, if a backup has a name of
`projects/myproject/locations/us-central1/backups/bkp-1`, the backup's ID
is `bkp-1`.