» Data Source: oci_database_autonomous_container_databases

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

Gets a list of the Autonomous Container Databases in the specified compartment.

» Example Usage

data "oci_database_autonomous_container_databases" "test_autonomous_container_databases" {
    #Required
    compartment_id = "${var.compartment_id}"

    #Optional
    autonomous_exadata_infrastructure_id = "${oci_database_autonomous_exadata_infrastructure.test_autonomous_exadata_infrastructure.id}"
    availability_domain = "${var.autonomous_container_database_availability_domain}"
    display_name = "${var.autonomous_container_database_display_name}"
    state = "${var.autonomous_container_database_state}"
}

» Argument Reference

The following arguments are supported:

  • autonomous_exadata_infrastructure_id - (Optional) The Autonomous Exadata Infrastructure OCID.
  • availability_domain - (Optional) A filter to return only resources that match the given availability domain exactly.
  • compartment_id - (Required) 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:

» AutonomousContainerDatabase Reference

The following attributes are exported:

  • autonomous_exadata_infrastructure_id - The OCID of the Autonomous Exadata Infrastructure.
  • availability_domain - The availability domain of the Autonomous Container Database.
  • backup_config -
    • recovery_window_in_days - Number of days between the current and the earliest point of recoverability covered by automatic backups. This value applies to automatic backups. After a new automatic backup has been created, Oracle removes old automatic backups that are created before the window. When the value is updated, it is applied to all existing automatic backups.
  • compartment_id - The OCID of the compartment.
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
  • display_name - The user-provided name for the Autonomous Container Database.
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • id - The OCID of the Autonomous Container Database.
  • last_maintenance_run_id - The OCID of the last maintenance run.
  • lifecycle_details - Additional information about the current lifecycleState.
  • maintenance_window -
    • days_of_week - Days during the week when maintenance should be performed.
      • name - Name of the day of the week.
    • hours_of_day - The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are
      • 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC
    • lead_time_in_weeks - Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.
    • months - Months during the year when maintenance should be performed.
      • name - Name of the month of the year.
    • preference - The maintenance window scheduling preference.
    • weeks_of_month - Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow maintenance during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and hours that maintenance will be performed.
  • next_maintenance_run_id - The OCID of the next maintenance run.
  • patch_model - Database patch model preference.
  • service_level_agreement_type - The service level agreement type of the container database. The default is STANDARD.
  • state - The current state of the Autonomous Container Database.
  • time_created - The date and time the Autonomous Container Database was created.