Shows information about one or more backups accessible via the data source specified by input parameter datasource_name.
Parameters
Name of the backup. An empty string or ‘*’ will show all existing backups. Any text followed by a ‘*’ will show backups whose name starts with that text. The default value is ‘’.
Data source through which the backup is accessible.
Optional parameters. Allowed keys are:
backup_id – ID of the snapshot to show. Leave empty to show information from the most recent snapshot in the backup. The default value is ‘’.
backup_type – Show backups by type. This option is ignored if backup_id is non-empty. Allowed values are:
all – Show all backup types.
full – Show full backups only.
incremental – Show incremental backups only.
differential – Show differential backups only.
The default value is ‘all’.
show_contents – Show the contents of the backed-up snapshots. Allowed values are:
none – Don’t show snapshot contents.
object_names – Show backed-up object names, and for tables, sizing detail.
object_files – Show backed-up object names, and for tables, sizing detail and associated files.
The default value is ‘none’.
no_error_if_not_exists – Whether or not to suppress the error if the specified backup does not exist. Allowed values are:
true
false
The default value is ‘false’.
The default value is an empty dict ( ).
Returns
A dict with the following entries–
Value of input parameter backup_name.
Details about the overall backup(s).
Details about the individual snapshots contained within the backup(s).
When show_contents is object_names, the names of the backed-up objects as well as sizing detail of any backed-up tables; when object_files, the names of the backed-up objects as well as sizing detail and associated data files of any backed-up tables.
IDs of any snapshots that have been deleted from the containing backup(s).
Additional information.