oci_fleet_apps_management_maintenance_window
This resource provides the Maintenance Window resource in Oracle Cloud Infrastructure Fleet Apps Management service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/fleet-management/latest/MaintenanceWindow
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/fleet_apps_management
Create a maintenance window in Fleet Application Management.
Example Usage
resource "oci_fleet_apps_management_maintenance_window" "test_maintenance_window" {
#Required
compartment_id = var.compartment_id
duration = var.maintenance_window_duration
time_schedule_start = var.maintenance_window_time_schedule_start
#Optional
defined_tags = {"foo-namespace.bar-key"= "value"}
description = var.maintenance_window_description
display_name = var.maintenance_window_display_name
freeform_tags = {"bar-key"= "value"}
is_outage = var.maintenance_window_is_outage
is_recurring = var.maintenance_window_is_recurring
recurrences = var.maintenance_window_recurrences
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) Compartment OCIDdefined_tags- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}description- (Optional) (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.display_name- (Optional) (Updatable) A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information. Example:My new resourceduration- (Required) (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.freeform_tags- (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}is_outage- (Optional) (Updatable) Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.is_recurring- (Optional) (Updatable) Is this a recurring maintenance window?recurrences- (Optional) (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.time_schedule_start- (Required) (Updatable) Specify the date and time of the day that the maintenance window starts.
** 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:
compartment_id- Compartment OCIDdefined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}description- A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.display_name- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information. Example:My new resourceduration- Duration of the maintenance window. Specify how long the maintenance window remains open.freeform_tags- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}id- The OCID of the resource.is_outage- Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.is_recurring- Is this a recurring maintenance window?lifecycle_details- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.recurrences- Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.resource_region- Associated regionstate- The current state of the MaintenanceWindow.system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- The time this resource was created. An RFC3339 formatted datetime string.time_schedule_start- Specify the date and time of the day that the maintenance window starts.time_updated- The time this resource was last updated. An RFC3339 formatted datetime string.
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Maintenance Window
* update - (Defaults to 20 minutes), when updating the Maintenance Window
* delete - (Defaults to 20 minutes), when destroying the Maintenance Window
Import
MaintenanceWindows can be imported using the id, e.g.
$ terraform import oci_fleet_apps_management_maintenance_window.test_maintenance_window "id"