» alicloud_nas_mount_target
Provides a Nas Mount Target resource.
NOTE: Available in v1.34.0+.
NOTE: Currently this resource support create a mount point in a classic network only when current region is China mainland regions.
NOTE: You must grant NAS with specific RAM permissions when creating a classic mount targets, and it only can be achieved by creating a classic mount target mannually. See Add a mount point and Why do I need RAM permissions to create a mount point in a classic network.
» Example Usage
Basic Usage
resource "alicloud_nas_mount_target" "foo" {
file_system_id = "192094b415"
access_group_name = "tf-testAccNasConfigName"
vswitch_id = "vsw-13dee3331d"
}
» 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.example 192094b415-luw38.cn-beijing.nas.aliyuncs.com