alicloud_oos_patch_baseline

Provides a OOS Patch Baseline resource.

For information about OOS Patch Baseline and how to use it, see What is Patch Baseline.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}


resource "alicloud_oos_patch_baseline" "default" {
  patch_baseline_name = var.name
  operation_system    = "Windows"
  approval_rules      = jsonencode({ "PatchRules" : [{ "EnableNonSecurity" : true, "PatchFilterGroup" : [{ "Values" : ["*"], "Key" : "Product" }, { "Values" : ["Security", "Bugfix"], "Key" : "Classification" }, { "Values" : ["Critical", "Important"], "Key" : "Severity" }], "ApproveAfterDays" : 7, "ComplianceLevel" : "Unspecified" }] })
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

OOS Patch Baseline can be imported using the id, e.g.

$ terraform import alicloud_oos_patch_baseline.example <id>