» alicloud_nas_mount_target

Provides a Nas Mount Target resource.

» Example Usage

Basic Usage

resource "alicloud_nas_file_system" "foo" {
    protocol_type = "NFS"
        storage_type = "Performance"
        description = "tf-testAccNasConfigFs"
}
resource "alicloud_nas_access_group" "foo" {
        name = "tf-NasConfig-%d"
        type = "Classic"
        description = "tf-testAccNasConfig"
}
resource "alicloud_nas_access_group" "bar" {
        name = "tf-cNasConfig-2-%d"
        type = "Classic"
        description = "tf-testAccNasConfig-2"
}
resource "alicloud_nas_mount_target" "foo" {
        file_system_id = "${alicloud_nas_file_system.foo.id}"
        access_group_name = "${alicloud_nas_access_group.foo.id}"
}

» Argument Reference

The following arguments are supported:

  • file_system_id - (Required, ForceNew) File system ID.
  • access_group_name - (Required) Permission group name.
  • vswitch_id - (Optional, ForceNew) VSwitch ID.
  • status - (Optional) Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.

» Attributes Reference

The following attributes are exported:

  • id - This ID of this resource. The value is a mount target domain.

» Import

Nas MountTarget can be imported using the id, e.g.

$ terraform import alicloud_nas_mount_target.foo 192094b415-luw38.cn-beijing.nas.aliyuncs.com