alicloud_nas_recycle_bin

更新时间:

Provides a Network Attached Storage (NAS) Recycle Bin resource.

For information about Network Attached Storage (NAS) Recycle Bin and how to use it, see What is Recycle Bin.

-> NOTE: Available in v1.155.0+.

Example Usage

Basic Usage


data "alicloud_nas_zones" "example" {
  file_system_type = "standard"
}

resource "alicloud_nas_file_system" "example" {
  protocol_type = "NFS"
  storage_type  = "Performance"
  description   = "terraform-example"
  encrypt_type  = "1"
  zone_id       = data.alicloud_nas_zones.example.zones[0].zone_id
}

resource "alicloud_nas_recycle_bin" "example" {
  file_system_id = alicloud_nas_file_system.example.id
  reserved_days  = 3
}

Argument Reference

The following arguments are supported:

  • file_system_id - (Required, ForceNew) The ID of the file system for which you want to enable the recycle bin feature.
  • reserved_days - (Optional, Computed) The period for which the files in the recycle bin are retained. Unit: days. Valid values: 1 to 180.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Recycle Bin. Its value is same as file_system_id.
  • status - The status of the recycle bin.

Import

Network Attached Storage (NAS) Recycle Bin can be imported using the id, e.g.

$ terraform import alicloud_nas_recycle_bin.example <file_system_id>