» oci_database_maintenance_run

This resource provides the Maintenance Run resource in Oracle Cloud Infrastructure Database service.

Updates the properties of a Maintenance Run, such as the state of a Maintenance Run.

» Example Usage

resource "oci_database_maintenance_run" "test_maintenance_run" {
    #Required
    maintenance_run_id = "${oci_database_maintenance_run.test_maintenance_run.id}"

    #Optional
    is_enabled = "${var.maintenance_run_is_enabled}"
    time_scheduled = "${var.maintenance_run_time_scheduled}"
}

» Argument Reference

The following arguments are supported:

  • is_enabled - (Optional) (Updatable) If set to false, skips the Maintenance Run.
  • maintenance_run_id - (Required) The Maintenance Run OCID.
  • time_scheduled - (Optional) (Updatable) The scheduled date and time of the Maintenance Run to update.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

» Attributes Reference

The following attributes are exported:

» Import

MaintenanceRuns can be imported using the id, e.g.

$ terraform import oci_database_maintenance_run.test_maintenance_run "id"