1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. nas
  5. MountTarget
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.nas.MountTarget

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

    Provides a Network Attached Storage (NAS) Mount Target resource.

    File system mount point.

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

    NOTE: Available since v1.34.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = alicloud.nas.getZones({
        fileSystemType: "extreme",
    });
    const countSize = _default.then(_default => _default.zones).length;
    const zoneId = Promise.all([_default, countSize]).then(([_default, countSize]) => _default.zones[countSize - 1].zoneId);
    const example = new alicloud.vpc.Network("example", {
        vpcName: "terraform-example",
        cidrBlock: "172.17.3.0/24",
    });
    const exampleSwitch = new alicloud.vpc.Switch("example", {
        vswitchName: example.vpcName,
        cidrBlock: example.cidrBlock,
        vpcId: example.id,
        zoneId: zoneId,
    });
    const exampleFileSystem = new alicloud.nas.FileSystem("example", {
        protocolType: "NFS",
        storageType: "advance",
        fileSystemType: "extreme",
        capacity: 100,
        zoneId: zoneId,
    });
    const exampleAccessGroup = new alicloud.nas.AccessGroup("example", {
        accessGroupName: "access_group_xxx",
        accessGroupType: "Vpc",
        description: "test_access_group",
        fileSystemType: "extreme",
    });
    const exampleMountTarget = new alicloud.nas.MountTarget("example", {
        fileSystemId: exampleFileSystem.id,
        accessGroupName: exampleAccessGroup.accessGroupName,
        vswitchId: exampleSwitch.id,
        vpcId: example.id,
        networkType: exampleAccessGroup.accessGroupType,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.nas.get_zones(file_system_type="extreme")
    count_size = len(default.zones)
    zone_id = default.zones[count_size - 1].zone_id
    example = alicloud.vpc.Network("example",
        vpc_name="terraform-example",
        cidr_block="172.17.3.0/24")
    example_switch = alicloud.vpc.Switch("example",
        vswitch_name=example.vpc_name,
        cidr_block=example.cidr_block,
        vpc_id=example.id,
        zone_id=zone_id)
    example_file_system = alicloud.nas.FileSystem("example",
        protocol_type="NFS",
        storage_type="advance",
        file_system_type="extreme",
        capacity=100,
        zone_id=zone_id)
    example_access_group = alicloud.nas.AccessGroup("example",
        access_group_name="access_group_xxx",
        access_group_type="Vpc",
        description="test_access_group",
        file_system_type="extreme")
    example_mount_target = alicloud.nas.MountTarget("example",
        file_system_id=example_file_system.id,
        access_group_name=example_access_group.access_group_name,
        vswitch_id=example_switch.id,
        vpc_id=example.id,
        network_type=example_access_group.access_group_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := nas.GetZones(ctx, &nas.GetZonesArgs{
    			FileSystemType: pulumi.StringRef("extreme"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		countSize := len(_default.Zones)
    		zoneId := _default.Zones[countSize-1].ZoneId
    		example, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
    			VpcName:   pulumi.String("terraform-example"),
    			CidrBlock: pulumi.String("172.17.3.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
    			VswitchName: example.VpcName,
    			CidrBlock:   example.CidrBlock,
    			VpcId:       example.ID(),
    			ZoneId:      pulumi.String(zoneId),
    		})
    		if err != nil {
    			return err
    		}
    		exampleFileSystem, err := nas.NewFileSystem(ctx, "example", &nas.FileSystemArgs{
    			ProtocolType:   pulumi.String("NFS"),
    			StorageType:    pulumi.String("advance"),
    			FileSystemType: pulumi.String("extreme"),
    			Capacity:       pulumi.Int(100),
    			ZoneId:         pulumi.String(zoneId),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccessGroup, err := nas.NewAccessGroup(ctx, "example", &nas.AccessGroupArgs{
    			AccessGroupName: pulumi.String("access_group_xxx"),
    			AccessGroupType: pulumi.String("Vpc"),
    			Description:     pulumi.String("test_access_group"),
    			FileSystemType:  pulumi.String("extreme"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = nas.NewMountTarget(ctx, "example", &nas.MountTargetArgs{
    			FileSystemId:    exampleFileSystem.ID(),
    			AccessGroupName: exampleAccessGroup.AccessGroupName,
    			VswitchId:       exampleSwitch.ID(),
    			VpcId:           example.ID(),
    			NetworkType:     exampleAccessGroup.AccessGroupType,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.Nas.GetZones.Invoke(new()
        {
            FileSystemType = "extreme",
        });
    
        var countSize = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones)).Length;
    
        var zoneId = Output.Tuple(@default, countSize).Apply(values =>
        {
            var @default = values.Item1;
            var countSize = values.Item2;
            return @default.Apply(getZonesResult => getZonesResult.Zones)[countSize - 1].ZoneId;
        });
    
        var example = new AliCloud.Vpc.Network("example", new()
        {
            VpcName = "terraform-example",
            CidrBlock = "172.17.3.0/24",
        });
    
        var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
        {
            VswitchName = example.VpcName,
            CidrBlock = example.CidrBlock,
            VpcId = example.Id,
            ZoneId = zoneId,
        });
    
        var exampleFileSystem = new AliCloud.Nas.FileSystem("example", new()
        {
            ProtocolType = "NFS",
            StorageType = "advance",
            FileSystemType = "extreme",
            Capacity = 100,
            ZoneId = zoneId,
        });
    
        var exampleAccessGroup = new AliCloud.Nas.AccessGroup("example", new()
        {
            AccessGroupName = "access_group_xxx",
            AccessGroupType = "Vpc",
            Description = "test_access_group",
            FileSystemType = "extreme",
        });
    
        var exampleMountTarget = new AliCloud.Nas.MountTarget("example", new()
        {
            FileSystemId = exampleFileSystem.Id,
            AccessGroupName = exampleAccessGroup.AccessGroupName,
            VswitchId = exampleSwitch.Id,
            VpcId = example.Id,
            NetworkType = exampleAccessGroup.AccessGroupType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.nas.NasFunctions;
    import com.pulumi.alicloud.nas.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    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) {
            final var default = NasFunctions.getZones(GetZonesArgs.builder()
                .fileSystemType("extreme")
                .build());
    
            final var countSize = default_.zones().length();
    
            final var zoneId = default_.zones()[countSize - 1].zoneId();
    
            var example = new Network("example", NetworkArgs.builder()
                .vpcName("terraform-example")
                .cidrBlock("172.17.3.0/24")
                .build());
    
            var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
                .vswitchName(example.vpcName())
                .cidrBlock(example.cidrBlock())
                .vpcId(example.id())
                .zoneId(zoneId)
                .build());
    
            var exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()
                .protocolType("NFS")
                .storageType("advance")
                .fileSystemType("extreme")
                .capacity("100")
                .zoneId(zoneId)
                .build());
    
            var exampleAccessGroup = new AccessGroup("exampleAccessGroup", AccessGroupArgs.builder()
                .accessGroupName("access_group_xxx")
                .accessGroupType("Vpc")
                .description("test_access_group")
                .fileSystemType("extreme")
                .build());
    
            var exampleMountTarget = new MountTarget("exampleMountTarget", MountTargetArgs.builder()
                .fileSystemId(exampleFileSystem.id())
                .accessGroupName(exampleAccessGroup.accessGroupName())
                .vswitchId(exampleSwitch.id())
                .vpcId(example.id())
                .networkType(exampleAccessGroup.accessGroupType())
                .build());
    
        }
    }
    
    Coming soon!
    

    Create MountTarget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MountTarget(name: string, args: MountTargetArgs, opts?: CustomResourceOptions);
    @overload
    def MountTarget(resource_name: str,
                    args: MountTargetArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def MountTarget(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    file_system_id: Optional[str] = None,
                    access_group_name: Optional[str] = None,
                    dual_stack: Optional[bool] = None,
                    network_type: Optional[str] = None,
                    security_group_id: Optional[str] = None,
                    status: Optional[str] = None,
                    vpc_id: Optional[str] = None,
                    vswitch_id: Optional[str] = None)
    func NewMountTarget(ctx *Context, name string, args MountTargetArgs, opts ...ResourceOption) (*MountTarget, error)
    public MountTarget(string name, MountTargetArgs args, CustomResourceOptions? opts = null)
    public MountTarget(String name, MountTargetArgs args)
    public MountTarget(String name, MountTargetArgs args, CustomResourceOptions options)
    
    type: alicloud:nas:MountTarget
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MountTargetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var mountTargetResource = new AliCloud.Nas.MountTarget("mountTargetResource", new()
    {
        FileSystemId = "string",
        AccessGroupName = "string",
        DualStack = false,
        NetworkType = "string",
        SecurityGroupId = "string",
        Status = "string",
        VpcId = "string",
        VswitchId = "string",
    });
    
    example, err := nas.NewMountTarget(ctx, "mountTargetResource", &nas.MountTargetArgs{
    	FileSystemId:    pulumi.String("string"),
    	AccessGroupName: pulumi.String("string"),
    	DualStack:       pulumi.Bool(false),
    	NetworkType:     pulumi.String("string"),
    	SecurityGroupId: pulumi.String("string"),
    	Status:          pulumi.String("string"),
    	VpcId:           pulumi.String("string"),
    	VswitchId:       pulumi.String("string"),
    })
    
    var mountTargetResource = new MountTarget("mountTargetResource", MountTargetArgs.builder()
        .fileSystemId("string")
        .accessGroupName("string")
        .dualStack(false)
        .networkType("string")
        .securityGroupId("string")
        .status("string")
        .vpcId("string")
        .vswitchId("string")
        .build());
    
    mount_target_resource = alicloud.nas.MountTarget("mountTargetResource",
        file_system_id="string",
        access_group_name="string",
        dual_stack=False,
        network_type="string",
        security_group_id="string",
        status="string",
        vpc_id="string",
        vswitch_id="string")
    
    const mountTargetResource = new alicloud.nas.MountTarget("mountTargetResource", {
        fileSystemId: "string",
        accessGroupName: "string",
        dualStack: false,
        networkType: "string",
        securityGroupId: "string",
        status: "string",
        vpcId: "string",
        vswitchId: "string",
    });
    
    type: alicloud:nas:MountTarget
    properties:
        accessGroupName: string
        dualStack: false
        fileSystemId: string
        networkType: string
        securityGroupId: string
        status: string
        vpcId: string
        vswitchId: string
    

    MountTarget Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MountTarget resource accepts the following input properties:

    FileSystemId string
    The ID of the file system.
    AccessGroupName string
    The name of the permission group.
    DualStack bool

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    NetworkType string
    Network type.
    SecurityGroupId string
    The ID of the security group.
    Status string
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    VpcId string
    VPC ID.
    VswitchId string
    The ID of the switch.
    FileSystemId string
    The ID of the file system.
    AccessGroupName string
    The name of the permission group.
    DualStack bool

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    NetworkType string
    Network type.
    SecurityGroupId string
    The ID of the security group.
    Status string
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    VpcId string
    VPC ID.
    VswitchId string
    The ID of the switch.
    fileSystemId String
    The ID of the file system.
    accessGroupName String
    The name of the permission group.
    dualStack Boolean

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    networkType String
    Network type.
    securityGroupId String
    The ID of the security group.
    status String
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    vpcId String
    VPC ID.
    vswitchId String
    The ID of the switch.
    fileSystemId string
    The ID of the file system.
    accessGroupName string
    The name of the permission group.
    dualStack boolean

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    networkType string
    Network type.
    securityGroupId string
    The ID of the security group.
    status string
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    vpcId string
    VPC ID.
    vswitchId string
    The ID of the switch.
    file_system_id str
    The ID of the file system.
    access_group_name str
    The name of the permission group.
    dual_stack bool

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    network_type str
    Network type.
    security_group_id str
    The ID of the security group.
    status str
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    vpc_id str
    VPC ID.
    vswitch_id str
    The ID of the switch.
    fileSystemId String
    The ID of the file system.
    accessGroupName String
    The name of the permission group.
    dualStack Boolean

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    networkType String
    Network type.
    securityGroupId String
    The ID of the security group.
    status String
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    vpcId String
    VPC ID.
    vswitchId String
    The ID of the switch.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MountTarget resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    MountTargetDomain string
    The domain name of the Mount point.
    Id string
    The provider-assigned unique ID for this managed resource.
    MountTargetDomain string
    The domain name of the Mount point.
    id String
    The provider-assigned unique ID for this managed resource.
    mountTargetDomain String
    The domain name of the Mount point.
    id string
    The provider-assigned unique ID for this managed resource.
    mountTargetDomain string
    The domain name of the Mount point.
    id str
    The provider-assigned unique ID for this managed resource.
    mount_target_domain str
    The domain name of the Mount point.
    id String
    The provider-assigned unique ID for this managed resource.
    mountTargetDomain String
    The domain name of the Mount point.

    Look up Existing MountTarget Resource

    Get an existing MountTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MountTargetState, opts?: CustomResourceOptions): MountTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_group_name: Optional[str] = None,
            dual_stack: Optional[bool] = None,
            file_system_id: Optional[str] = None,
            mount_target_domain: Optional[str] = None,
            network_type: Optional[str] = None,
            security_group_id: Optional[str] = None,
            status: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None) -> MountTarget
    func GetMountTarget(ctx *Context, name string, id IDInput, state *MountTargetState, opts ...ResourceOption) (*MountTarget, error)
    public static MountTarget Get(string name, Input<string> id, MountTargetState? state, CustomResourceOptions? opts = null)
    public static MountTarget get(String name, Output<String> id, MountTargetState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:nas:MountTarget    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessGroupName string
    The name of the permission group.
    DualStack bool

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    FileSystemId string
    The ID of the file system.
    MountTargetDomain string
    The domain name of the Mount point.
    NetworkType string
    Network type.
    SecurityGroupId string
    The ID of the security group.
    Status string
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    VpcId string
    VPC ID.
    VswitchId string
    The ID of the switch.
    AccessGroupName string
    The name of the permission group.
    DualStack bool

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    FileSystemId string
    The ID of the file system.
    MountTargetDomain string
    The domain name of the Mount point.
    NetworkType string
    Network type.
    SecurityGroupId string
    The ID of the security group.
    Status string
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    VpcId string
    VPC ID.
    VswitchId string
    The ID of the switch.
    accessGroupName String
    The name of the permission group.
    dualStack Boolean

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    fileSystemId String
    The ID of the file system.
    mountTargetDomain String
    The domain name of the Mount point.
    networkType String
    Network type.
    securityGroupId String
    The ID of the security group.
    status String
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    vpcId String
    VPC ID.
    vswitchId String
    The ID of the switch.
    accessGroupName string
    The name of the permission group.
    dualStack boolean

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    fileSystemId string
    The ID of the file system.
    mountTargetDomain string
    The domain name of the Mount point.
    networkType string
    Network type.
    securityGroupId string
    The ID of the security group.
    status string
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    vpcId string
    VPC ID.
    vswitchId string
    The ID of the switch.
    access_group_name str
    The name of the permission group.
    dual_stack bool

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    file_system_id str
    The ID of the file system.
    mount_target_domain str
    The domain name of the Mount point.
    network_type str
    Network type.
    security_group_id str
    The ID of the security group.
    status str
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    vpc_id str
    VPC ID.
    vswitch_id str
    The ID of the switch.
    accessGroupName String
    The name of the permission group.
    dualStack Boolean

    Whether to create an IPv6 mount point.

    Value:

    • true: create
    • false (default): not created

    NOTE: currently, only extreme NAS supports IPv6 function in various regions in mainland China, and IPv6 function needs to be turned on for this file system.

    fileSystemId String
    The ID of the file system.
    mountTargetDomain String
    The domain name of the Mount point.
    networkType String
    Network type.
    securityGroupId String
    The ID of the security group.
    status String
    The current status of the Mount point, including Active and Inactive, can be used to mount the file system only when the status is Active.
    vpcId String
    VPC ID.
    vswitchId String
    The ID of the switch.

    Import

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

    $ pulumi import alicloud:nas/mountTarget:MountTarget example <file_system_id>:<mount_target_domain>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi