This page describes how to list and view data source details in the Google Cloud console.
Each data source in a backup vault identifies a specific resource. A data source can be a specific virtual machine or a specific database instance that is being backed up or has been backed up to the backup vault. Data sources are automatically created by the Backup and DR Service based on the backup plan you apply to the resource.
Before you begin
To get the permissions that
you need to list and view data source details,
ask your administrator to grant you the
Backup and DR Backup Vault Viewer (roles/backupdr.backupvaultViewer) IAM role on your backup vault project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
This predefined role contains the permissions required to list and view data source details. To see the exact permissions that are required, expand the Required permissions section:
Required permissions
The following permissions are required to list and view data source details:
-
backupdr.bvdataSources.list -
backupdr.bvdataSources.get
You might also be able to get these permissions with custom roles or other predefined roles.
List data sources
Use the following instructions to list data sources.
Console
In the Google Cloud console, go to the Backup and DR Vaulted backups page.
In the Resources with vaulted backups list, you can see a list of all of your vaulted backups with a Resource type column that lists their data sources. You can sort the list by the Resource type column or filter by Resource type to see the data source types that are protected.
gcloud
Use the following instructions to list the protected data source types.
List the data sources.
gcloud backup-dr data-sources list \ --backup-vault=BACKUPVAULT_NAME \ --location=LOCATION \ --project=PROJECT_IDReplace the following:
BACKUPVAULT_NAME: the name of the backup vault.LOCATION: the location of the backup vault.PROJECT_ID: the name of the project where the backup vault is created.
Use the following instructions to view the data source details.
View the data source details.
gcloud backup-dr data-sources describe DATA_SOURCE \ --backup-vault=BACKUPVAULT_NAME \ --location=LOCATION \ --project=PROJECT_IDReplace the following:
DATA_SOURCE: the ID of the data source you want to view details of.BACKUPVAULT_NAME: the name of the backup vault.LOCATION: the location of the backup vault.PROJECT_ID: the name of the project where the backup vault is created.