MountTarget

Provides a NAS Mount Target resource. For information about NAS Mount Target and how to use it, see Manage NAS Mount Targets.

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

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.nas.AccessGroup;
import com.pulumi.alicloud.nas.AccessGroupArgs;
import com.pulumi.alicloud.nas.MountTarget;
import com.pulumi.alicloud.nas.MountTargetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()
.protocolType("NFS")
.storageType("Performance")
.description("test file system")
.build());
var exampleAccessGroup = new AccessGroup("exampleAccessGroup", AccessGroupArgs.builder()
.accessGroupName("test_name")
.accessGroupType("Classic")
.description("test access group")
.build());
var exampleMountTarget = new MountTarget("exampleMountTarget", MountTargetArgs.builder()
.fileSystemId(exampleFileSystem.id())
.accessGroupName(exampleAccessGroup.accessGroupName())
.build());
}
}

Import

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

$ pulumi import alicloud:nas/mountTarget:MountTarget foo 192094b415:192094b415-luw38.cn-beijing.nas.aliyuncs.com

Properties

Link copied to clipboard
val accessGroupName: Output<String>?

The name of the permission group that applies to the mount target.

Link copied to clipboard
val fileSystemId: Output<String>

The ID of the file system.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The IPv4 domain name of the mount target. NOTE: Available in v1.161.0+.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val securityGroupId: Output<String>?

The ID of security group.

Link copied to clipboard
val status: Output<String>

Whether the MountTarget is active. The status of the mount target. Valid values: Active and Inactive, Default value is Active. Before you mount a file system, make sure that the mount target is in the Active state.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vswitchId: Output<String>?

The ID of the VSwitch in the VPC where the mount target resides.