List secret backups

This document explains how to view the list of backups of a secret.

Required roles

To get the permissions that you need to list backups, ask your administrator to grant you the following IAM roles on the project, folder, or organization:

For more information about granting roles, see Manage access to projects, folders, and organizations.

These predefined roles contain the permissions required to list backups. To see the exact permissions that are required, expand the Required permissions section:

Required permissions

The following permissions are required to list backups:

  • secretmanager.backups.list
  • secretmanager.backups.get

You might also be able to get these permissions with custom roles or other predefined roles.

List the backups of a secret

To list the backups of a secret, use one of the following methods:

Console

  1. In the Google Cloud console, go to the Secret Manager page.

    Go to Secret Manager

  2. Optional: To view all the backups in the project, navigate to the Backups tab.

  3. To view the backups of a specific secret, click the secret name to go to the secret details page.

  4. Navigate to the Backups tab to view the backups of the secret.

REST

Before using any of the request data, make the following replacements:

  • BACKUP_LOCATION: the Google Cloud supported region where the backup is stored.
  • PROJECT_ID: the Google Cloud project ID where the backup is stored.

By default, this request returns all backups stored in BACKUP_LOCATION in the project, including backups of secrets that were deleted. To list only the backups of a specific secret, add the filter query parameter. For example: ?filter=sourceSecret="projects/PROJECT_ID/secrets/SECRET_ID". To get the details of a single backup, send a GET request to https://secretmanager.BACKUP_LOCATION.rep.googleapis.com/v1/projects/PROJECT_ID/locations/BACKUP_LOCATION/backups/BACKUP_ID.

HTTP method and URL:

GET https://secretmanager.BACKUP_LOCATION.rep.googleapis.com/v1/projects/PROJECT_ID/locations/BACKUP_LOCATION/backups

To send your request, choose one of these options:

curl

Execute the following command:

curl -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://secretmanager.BACKUP_LOCATION.rep.googleapis.com/v1/projects/PROJECT_ID/locations/BACKUP_LOCATION/backups"

PowerShell

Execute the following command:

$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }

Invoke-WebRequest `
-Method GET `
-Headers $headers `
-Uri "https://secretmanager.BACKUP_LOCATION.rep.googleapis.com/v1/projects/PROJECT_ID/locations/BACKUP_LOCATION/backups" | Select-Object -Expand Content

You should receive a JSON response similar to the following:

{
  "backups": [
    {
      "name": "projects/PROJECT_ID/locations/BACKUP_LOCATION/backups/BACKUP_ID",
      "sourceSecret": "projects/PROJECT_ID/secrets/SECRET_ID",
      "createTime": "2026-03-25T08:24:13.153705Z",
      "updateTime": "2026-03-25T08:24:45.912340Z",
      "sourceSecretCreateTime": "2026-03-20T10:15:00.000000Z",
      "versionCount": 1,
      "state": "ACTIVE",
      "etag": "\"16211daf5f29c5\""
    }
  ]
}

What's next