文档

alicloud_threat_detection_backup_policy

更新时间:
一键部署

Provides a Threat Detection Backup Policy resource.

For information about Threat Detection Backup Policy and how to use it, see What is Backup Policy.

-> NOTE: Available in v1.195.0+.

Example Usage

Basic Usage

data "alicloud_threat_detection_assets" "default" {
  machine_types = "ecs"
}
resource "alicloud_threat_detection_backup_policy" "default" {
  backup_policy_name = "tf-example-name"
  policy             = "{\"Exclude\":[\"/bin/\",\"/usr/bin/\",\"/sbin/\",\"/boot/\",\"/proc/\",\"/sys/\",\"/srv/\",\"/lib/\",\"/selinux/\",\"/usr/sbin/\",\"/run/\",\"/lib32/\",\"/lib64/\",\"/lost+found/\",\"/var/lib/kubelet/\",\"/var/lib/ntp/proc\",\"/var/lib/container\"],\"ExcludeSystemPath\":true,\"Include\":[],\"IsDefault\":1,\"Retention\":7,\"Schedule\":\"I|1668703620|PT24H\",\"Source\":[],\"SpeedLimiter\":\"\",\"UseVss\":true}"
  policy_version     = "2.0.0"
  uuid_list          = [data.alicloud_threat_detection_assets.default.ids.0]
}

Argument Reference

The following arguments are supported:

  • backup_policy_name - (Required) Protection of the Name of the Policy.
  • policy - (Required) The Specified Protection Policies of the Specific Configuration. see how to use it.
  • policy_version - (Required, ForceNew) Anti-Blackmail Policy Version. Valid values: 1.0.0, 2.0.0.
  • uuid_list - (Required) Specify the Protection of Server UUID List.
  • policy_region_id - (Optional) The region ID of the non-Alibaba cloud server. You can call the DescribeSupportRegion interface to view the region supported by anti-ransomware, and then select the region supported by anti-ransomware according to the region where your non-Alibaba cloud server is located.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Backup Policy.
  • status - The status of the Backup Policy instance.

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Backup Policy.
  • update - (Defaults to 5 mins) Used when update the Backup Policy.
  • delete - (Defaults to 5 mins) Used when delete the Backup Policy.

Import

Threat Detection Backup Policy can be imported using the id, e.g.

$ terraform import alicloud_threat_detection_backup_policy.example <id>

  • 本页导读 (0)
文档反馈