» Data Source: oci_database_autonomous_database_backups

This data source provides the list of Autonomous Database Backups in Oracle Cloud Infrastructure Database service.

Gets a list of Autonomous Database backups based on either the autonomousDatabaseId or compartmentId specified as a query parameter.

» Example Usage

data "oci_database_autonomous_database_backups" "test_autonomous_database_backups" {

    #Optional
    autonomous_database_id = "${oci_database_autonomous_database.test_autonomous_database.id}"
    compartment_id = "${var.compartment_id}"
    display_name = "${var.autonomous_database_backup_display_name}"
    state = "${var.autonomous_database_backup_state}"
}

» Argument Reference

The following arguments are supported:

  • autonomous_database_id - (Optional) The database OCID.
  • compartment_id - (Optional) The compartment OCID.
  • display_name - (Optional) A filter to return only resources that match the entire display name given. The match is not case sensitive.
  • state - (Optional) A filter to return only resources that match the given lifecycle state exactly.

» Attributes Reference

The following attributes are exported:

» AutonomousDatabaseBackup Reference

The following attributes are exported:

  • autonomous_database_id - The OCID of the Autonomous Database.
  • compartment_id - The OCID of the compartment.
  • database_size_in_tbs - The size of the database in terabytes at the time the backup was taken.
  • display_name - The user-friendly name for the backup. The name does not have to be unique.
  • id - The OCID of the Autonomous Database backup.
  • is_automatic - Indicates whether the backup is user-initiated or automatic.
  • is_restorable - Indicates whether the backup can be used to restore the associated Autonomous Database.
  • lifecycle_details - Additional information about the current lifecycle state.
  • state - The current state of the backup.
  • time_ended - The date and time the backup completed.
  • time_started - The date and time the backup started.
  • type - The type of backup.