alicloud_oos_default_patch_baseline

更新时间:

Provides a Oos Default Patch Baseline resource.

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

-> NOTE: Available in v1.203.0+.

Example Usage

Basic Usage


resource "alicloud_oos_patch_baseline" "default" {
  operation_system    = "Windows"
  patch_baseline_name = "terraform-example"
  description         = "terraform-example"
  approval_rules      = "{\"PatchRules\":[{\"PatchFilterGroup\":[{\"Key\":\"PatchSet\",\"Values\":[\"OS\"]},{\"Key\":\"ProductFamily\",\"Values\":[\"Windows\"]},{\"Key\":\"Product\",\"Values\":[\"Windows 10\",\"Windows 7\"]},{\"Key\":\"Classification\",\"Values\":[\"Security Updates\",\"Updates\",\"Update Rollups\",\"Critical Updates\"]},{\"Key\":\"Severity\",\"Values\":[\"Critical\",\"Important\",\"Moderate\"]}],\"ApproveAfterDays\":7,\"EnableNonSecurity\":true,\"ComplianceLevel\":\"Medium\"}]}"
}
resource "alicloud_oos_default_patch_baseline" "default" {
  patch_baseline_name = alicloud_oos_patch_baseline.default.id
}

Argument Reference

The following arguments are supported:

  • patch_baseline_name - (Required,ForceNew) The name of the patch baseline.

Attributes Reference

The following attributes are exported:

  • id - The key of the resource supplied above.
  • patch_baseline_id - The ID of the patch baseline.

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Default Patch Baseline.
  • delete - (Defaults to 5 mins) Used when delete the Default Patch Baseline.

Import

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

$ terraform import alicloud_oos_default_patch_baseline.example <id>