» 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:
-
autonomous_database_backups
- The list of autonomous_database_backups.
» AutonomousDatabaseBackup Reference
The following attributes are exported:
-
autonomous_database_id
- The OCID of the Autonomous Database. -
compartment_id
- The OCID of the compartment. -
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. -
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.