To inspect the status, size, encryption configuration, or expiration time of
an AlloyDB for PostgreSQL backup, you can view its detailed metadata.


## 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

### 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 details about a backup, use the [`gcloud alloydb backups
describe`](https://docs.cloud.google.com/sdk/gcloud/reference/alloydb/backups/describe) command.

```bash
gcloud alloydb backups describe BACKUP_ID \
--region=REGION_ID \
--project=PROJECT_ID
```

Replace the following:

- `BACKUP_ID`: The ID of the backup. You can find a
  backup's ID by [viewing a list of backups](https://docs.cloud.google.com/alloydb/docs/backup/list.md.txt).

- `REGION_ID`: The ID of the region where the backup
  is placed.

- `PROJECT_ID`: The ID of the project where the backup
  is placed.