» Data Source: oci_database_maintenance_runs

This data source provides the list of Maintenance Runs in Oracle Cloud Infrastructure Database service.

Gets a list of the Maintenance Runs in the specified compartment.

» Example Usage

data "oci_database_maintenance_runs" "test_maintenance_runs" {
    #Required
    compartment_id = "${var.compartment_id}"

    #Optional
    availability_domain = "${var.maintenance_run_availability_domain}"
    maintenance_type = "${var.maintenance_run_maintenance_type}"
    state = "${var.maintenance_run_state}"
    target_resource_id = "${oci_database_target_resource.test_target_resource.id}"
    target_resource_type = "${var.maintenance_run_target_resource_type}"
}

» Argument Reference

The following arguments are supported:

  • availability_domain - (Optional) A filter to return only resources that match the given availability domain exactly.
  • compartment_id - (Required) The compartment OCID.
  • maintenance_type - (Optional) The maintenance type.
  • state - (Optional) A filter to return only resources that match the given lifecycle state exactly.
  • target_resource_id - (Optional) The target resource ID.
  • target_resource_type - (Optional) The type of the target resource. Accepted values are: AUTONOMOUS_CONTAINER_DATABASE, AUTONOMOUS_EXADATA_INFRASTRUCTURE, EXADATA_DB_SYSTEM

» Attributes Reference

The following attributes are exported:

» MaintenanceRun Reference

The following attributes are exported: