1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. nas
  5. ProtocolMountTarget
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi

    Provides a File Storage (NAS) Protocol Mount Target resource.

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

    NOTE: Available since v1.267.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const example = new alicloud.vpc.Network("example", {
        isDefault: false,
        cidrBlock: "192.168.0.0/16",
        vpcName: "nas-examplee1223-vpc",
        enableIpv6: true,
    });
    const exampleSwitch = new alicloud.vpc.Switch("example", {
        isDefault: false,
        vpcId: example.id,
        zoneId: "cn-beijing-i",
        cidrBlock: "192.168.3.0/24",
        vswitchName: "nas-examplee1223-vsw2sdw-C",
    });
    const exampleFileSystem = new alicloud.nas.FileSystem("example", {
        description: name,
        storageType: "advance_100",
        zoneId: "cn-beijing-i",
        vpcId: example.id,
        capacity: 3600,
        protocolType: "cpfs",
        vswitchId: exampleSwitch.id,
        fileSystemType: "cpfs",
    });
    const exampleProtocolService = new alicloud.nas.ProtocolService("example", {
        vpcId: example.id,
        protocolType: "NFS",
        protocolSpec: "General",
        vswitchId: exampleSwitch.id,
        dryRun: false,
        fileSystemId: exampleFileSystem.id,
    });
    const exampleFileset = new alicloud.nas.Fileset("example", {
        fileSystemPath: "/examplefileset/",
        description: "cpfs-LRS-filesetexample-wyf",
        fileSystemId: exampleFileSystem.id,
    });
    const _default = new alicloud.nas.ProtocolMountTarget("default", {
        fsetId: exampleFileset.filesetId,
        description: name,
        vpcId: example.id,
        vswitchId: exampleSwitch.id,
        accessGroupName: "DEFAULT_VPC_GROUP_NAME",
        dryRun: false,
        fileSystemId: exampleFileSystem.id,
        protocolServiceId: exampleProtocolService.protocolServiceId,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    example = alicloud.vpc.Network("example",
        is_default=False,
        cidr_block="192.168.0.0/16",
        vpc_name="nas-examplee1223-vpc",
        enable_ipv6=True)
    example_switch = alicloud.vpc.Switch("example",
        is_default=False,
        vpc_id=example.id,
        zone_id="cn-beijing-i",
        cidr_block="192.168.3.0/24",
        vswitch_name="nas-examplee1223-vsw2sdw-C")
    example_file_system = alicloud.nas.FileSystem("example",
        description=name,
        storage_type="advance_100",
        zone_id="cn-beijing-i",
        vpc_id=example.id,
        capacity=3600,
        protocol_type="cpfs",
        vswitch_id=example_switch.id,
        file_system_type="cpfs")
    example_protocol_service = alicloud.nas.ProtocolService("example",
        vpc_id=example.id,
        protocol_type="NFS",
        protocol_spec="General",
        vswitch_id=example_switch.id,
        dry_run=False,
        file_system_id=example_file_system.id)
    example_fileset = alicloud.nas.Fileset("example",
        file_system_path="/examplefileset/",
        description="cpfs-LRS-filesetexample-wyf",
        file_system_id=example_file_system.id)
    default = alicloud.nas.ProtocolMountTarget("default",
        fset_id=example_fileset.fileset_id,
        description=name,
        vpc_id=example.id,
        vswitch_id=example_switch.id,
        access_group_name="DEFAULT_VPC_GROUP_NAME",
        dry_run=False,
        file_system_id=example_file_system.id,
        protocol_service_id=example_protocol_service.protocol_service_id)
    
    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"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		example, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
    			IsDefault:  pulumi.Bool(false),
    			CidrBlock:  pulumi.String("192.168.0.0/16"),
    			VpcName:    pulumi.String("nas-examplee1223-vpc"),
    			EnableIpv6: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
    			IsDefault:   pulumi.Bool(false),
    			VpcId:       example.ID(),
    			ZoneId:      pulumi.String("cn-beijing-i"),
    			CidrBlock:   pulumi.String("192.168.3.0/24"),
    			VswitchName: pulumi.String("nas-examplee1223-vsw2sdw-C"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleFileSystem, err := nas.NewFileSystem(ctx, "example", &nas.FileSystemArgs{
    			Description:    pulumi.String(name),
    			StorageType:    pulumi.String("advance_100"),
    			ZoneId:         pulumi.String("cn-beijing-i"),
    			VpcId:          example.ID(),
    			Capacity:       pulumi.Int(3600),
    			ProtocolType:   pulumi.String("cpfs"),
    			VswitchId:      exampleSwitch.ID(),
    			FileSystemType: pulumi.String("cpfs"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleProtocolService, err := nas.NewProtocolService(ctx, "example", &nas.ProtocolServiceArgs{
    			VpcId:        example.ID(),
    			ProtocolType: pulumi.String("NFS"),
    			ProtocolSpec: pulumi.String("General"),
    			VswitchId:    exampleSwitch.ID(),
    			DryRun:       pulumi.Bool(false),
    			FileSystemId: exampleFileSystem.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleFileset, err := nas.NewFileset(ctx, "example", &nas.FilesetArgs{
    			FileSystemPath: pulumi.String("/examplefileset/"),
    			Description:    pulumi.String("cpfs-LRS-filesetexample-wyf"),
    			FileSystemId:   exampleFileSystem.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = nas.NewProtocolMountTarget(ctx, "default", &nas.ProtocolMountTargetArgs{
    			FsetId:            exampleFileset.FilesetId,
    			Description:       pulumi.String(name),
    			VpcId:             example.ID(),
    			VswitchId:         exampleSwitch.ID(),
    			AccessGroupName:   pulumi.String("DEFAULT_VPC_GROUP_NAME"),
    			DryRun:            pulumi.Bool(false),
    			FileSystemId:      exampleFileSystem.ID(),
    			ProtocolServiceId: exampleProtocolService.ProtocolServiceId,
    		})
    		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 config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var example = new AliCloud.Vpc.Network("example", new()
        {
            IsDefault = false,
            CidrBlock = "192.168.0.0/16",
            VpcName = "nas-examplee1223-vpc",
            EnableIpv6 = true,
        });
    
        var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
        {
            IsDefault = false,
            VpcId = example.Id,
            ZoneId = "cn-beijing-i",
            CidrBlock = "192.168.3.0/24",
            VswitchName = "nas-examplee1223-vsw2sdw-C",
        });
    
        var exampleFileSystem = new AliCloud.Nas.FileSystem("example", new()
        {
            Description = name,
            StorageType = "advance_100",
            ZoneId = "cn-beijing-i",
            VpcId = example.Id,
            Capacity = 3600,
            ProtocolType = "cpfs",
            VswitchId = exampleSwitch.Id,
            FileSystemType = "cpfs",
        });
    
        var exampleProtocolService = new AliCloud.Nas.ProtocolService("example", new()
        {
            VpcId = example.Id,
            ProtocolType = "NFS",
            ProtocolSpec = "General",
            VswitchId = exampleSwitch.Id,
            DryRun = false,
            FileSystemId = exampleFileSystem.Id,
        });
    
        var exampleFileset = new AliCloud.Nas.Fileset("example", new()
        {
            FileSystemPath = "/examplefileset/",
            Description = "cpfs-LRS-filesetexample-wyf",
            FileSystemId = exampleFileSystem.Id,
        });
    
        var @default = new AliCloud.Nas.ProtocolMountTarget("default", new()
        {
            FsetId = exampleFileset.FilesetId,
            Description = name,
            VpcId = example.Id,
            VswitchId = exampleSwitch.Id,
            AccessGroupName = "DEFAULT_VPC_GROUP_NAME",
            DryRun = false,
            FileSystemId = exampleFileSystem.Id,
            ProtocolServiceId = exampleProtocolService.ProtocolServiceId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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.ProtocolService;
    import com.pulumi.alicloud.nas.ProtocolServiceArgs;
    import com.pulumi.alicloud.nas.Fileset;
    import com.pulumi.alicloud.nas.FilesetArgs;
    import com.pulumi.alicloud.nas.ProtocolMountTarget;
    import com.pulumi.alicloud.nas.ProtocolMountTargetArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var example = new Network("example", NetworkArgs.builder()
                .isDefault(false)
                .cidrBlock("192.168.0.0/16")
                .vpcName("nas-examplee1223-vpc")
                .enableIpv6(true)
                .build());
    
            var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
                .isDefault(false)
                .vpcId(example.id())
                .zoneId("cn-beijing-i")
                .cidrBlock("192.168.3.0/24")
                .vswitchName("nas-examplee1223-vsw2sdw-C")
                .build());
    
            var exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()
                .description(name)
                .storageType("advance_100")
                .zoneId("cn-beijing-i")
                .vpcId(example.id())
                .capacity(3600)
                .protocolType("cpfs")
                .vswitchId(exampleSwitch.id())
                .fileSystemType("cpfs")
                .build());
    
            var exampleProtocolService = new ProtocolService("exampleProtocolService", ProtocolServiceArgs.builder()
                .vpcId(example.id())
                .protocolType("NFS")
                .protocolSpec("General")
                .vswitchId(exampleSwitch.id())
                .dryRun(false)
                .fileSystemId(exampleFileSystem.id())
                .build());
    
            var exampleFileset = new Fileset("exampleFileset", FilesetArgs.builder()
                .fileSystemPath("/examplefileset/")
                .description("cpfs-LRS-filesetexample-wyf")
                .fileSystemId(exampleFileSystem.id())
                .build());
    
            var default_ = new ProtocolMountTarget("default", ProtocolMountTargetArgs.builder()
                .fsetId(exampleFileset.filesetId())
                .description(name)
                .vpcId(example.id())
                .vswitchId(exampleSwitch.id())
                .accessGroupName("DEFAULT_VPC_GROUP_NAME")
                .dryRun(false)
                .fileSystemId(exampleFileSystem.id())
                .protocolServiceId(exampleProtocolService.protocolServiceId())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      example:
        type: alicloud:vpc:Network
        properties:
          isDefault: false
          cidrBlock: 192.168.0.0/16
          vpcName: nas-examplee1223-vpc
          enableIpv6: true
      exampleSwitch:
        type: alicloud:vpc:Switch
        name: example
        properties:
          isDefault: false
          vpcId: ${example.id}
          zoneId: cn-beijing-i
          cidrBlock: 192.168.3.0/24
          vswitchName: nas-examplee1223-vsw2sdw-C
      exampleFileSystem:
        type: alicloud:nas:FileSystem
        name: example
        properties:
          description: ${name}
          storageType: advance_100
          zoneId: cn-beijing-i
          vpcId: ${example.id}
          capacity: '3600'
          protocolType: cpfs
          vswitchId: ${exampleSwitch.id}
          fileSystemType: cpfs
      exampleProtocolService:
        type: alicloud:nas:ProtocolService
        name: example
        properties:
          vpcId: ${example.id}
          protocolType: NFS
          protocolSpec: General
          vswitchId: ${exampleSwitch.id}
          dryRun: false
          fileSystemId: ${exampleFileSystem.id}
      exampleFileset:
        type: alicloud:nas:Fileset
        name: example
        properties:
          fileSystemPath: /examplefileset/
          description: cpfs-LRS-filesetexample-wyf
          fileSystemId: ${exampleFileSystem.id}
      default:
        type: alicloud:nas:ProtocolMountTarget
        properties:
          fsetId: ${exampleFileset.filesetId}
          description: ${name}
          vpcId: ${example.id}
          vswitchId: ${exampleSwitch.id}
          accessGroupName: DEFAULT_VPC_GROUP_NAME
          dryRun: false
          fileSystemId: ${exampleFileSystem.id}
          protocolServiceId: ${exampleProtocolService.protocolServiceId}
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create ProtocolMountTarget Resource

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

    Constructor syntax

    new ProtocolMountTarget(name: string, args: ProtocolMountTargetArgs, opts?: CustomResourceOptions);
    @overload
    def ProtocolMountTarget(resource_name: str,
                            args: ProtocolMountTargetArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProtocolMountTarget(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            file_system_id: Optional[str] = None,
                            protocol_service_id: Optional[str] = None,
                            access_group_name: Optional[str] = None,
                            description: Optional[str] = None,
                            dry_run: Optional[bool] = None,
                            fset_id: Optional[str] = None,
                            path: Optional[str] = None,
                            vpc_id: Optional[str] = None,
                            vswitch_id: Optional[str] = None,
                            vswitch_ids: Optional[Sequence[str]] = None)
    func NewProtocolMountTarget(ctx *Context, name string, args ProtocolMountTargetArgs, opts ...ResourceOption) (*ProtocolMountTarget, error)
    public ProtocolMountTarget(string name, ProtocolMountTargetArgs args, CustomResourceOptions? opts = null)
    public ProtocolMountTarget(String name, ProtocolMountTargetArgs args)
    public ProtocolMountTarget(String name, ProtocolMountTargetArgs args, CustomResourceOptions options)
    
    type: alicloud:nas:ProtocolMountTarget
    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 ProtocolMountTargetArgs
    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 ProtocolMountTargetArgs
    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 ProtocolMountTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProtocolMountTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProtocolMountTargetArgs
    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 protocolMountTargetResource = new AliCloud.Nas.ProtocolMountTarget("protocolMountTargetResource", new()
    {
        FileSystemId = "string",
        ProtocolServiceId = "string",
        AccessGroupName = "string",
        Description = "string",
        DryRun = false,
        FsetId = "string",
        Path = "string",
        VpcId = "string",
        VswitchId = "string",
        VswitchIds = new[]
        {
            "string",
        },
    });
    
    example, err := nas.NewProtocolMountTarget(ctx, "protocolMountTargetResource", &nas.ProtocolMountTargetArgs{
    	FileSystemId:      pulumi.String("string"),
    	ProtocolServiceId: pulumi.String("string"),
    	AccessGroupName:   pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	DryRun:            pulumi.Bool(false),
    	FsetId:            pulumi.String("string"),
    	Path:              pulumi.String("string"),
    	VpcId:             pulumi.String("string"),
    	VswitchId:         pulumi.String("string"),
    	VswitchIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var protocolMountTargetResource = new ProtocolMountTarget("protocolMountTargetResource", ProtocolMountTargetArgs.builder()
        .fileSystemId("string")
        .protocolServiceId("string")
        .accessGroupName("string")
        .description("string")
        .dryRun(false)
        .fsetId("string")
        .path("string")
        .vpcId("string")
        .vswitchId("string")
        .vswitchIds("string")
        .build());
    
    protocol_mount_target_resource = alicloud.nas.ProtocolMountTarget("protocolMountTargetResource",
        file_system_id="string",
        protocol_service_id="string",
        access_group_name="string",
        description="string",
        dry_run=False,
        fset_id="string",
        path="string",
        vpc_id="string",
        vswitch_id="string",
        vswitch_ids=["string"])
    
    const protocolMountTargetResource = new alicloud.nas.ProtocolMountTarget("protocolMountTargetResource", {
        fileSystemId: "string",
        protocolServiceId: "string",
        accessGroupName: "string",
        description: "string",
        dryRun: false,
        fsetId: "string",
        path: "string",
        vpcId: "string",
        vswitchId: "string",
        vswitchIds: ["string"],
    });
    
    type: alicloud:nas:ProtocolMountTarget
    properties:
        accessGroupName: string
        description: string
        dryRun: false
        fileSystemId: string
        fsetId: string
        path: string
        protocolServiceId: string
        vpcId: string
        vswitchId: string
        vswitchIds:
            - string
    

    ProtocolMountTarget 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 ProtocolMountTarget resource accepts the following input properties:

    FileSystemId string
    The ID of the file system.
    ProtocolServiceId string
    Protocol Service ID
    AccessGroupName string
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    Description string

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    DryRun bool
    FsetId string

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    Path string

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    VpcId string
    The VPC ID of the protocol service mount point.
    VswitchId string
    The vSwitch ID of the protocol service mount target.
    VswitchIds List<string>
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    FileSystemId string
    The ID of the file system.
    ProtocolServiceId string
    Protocol Service ID
    AccessGroupName string
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    Description string

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    DryRun bool
    FsetId string

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    Path string

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    VpcId string
    The VPC ID of the protocol service mount point.
    VswitchId string
    The vSwitch ID of the protocol service mount target.
    VswitchIds []string
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    fileSystemId String
    The ID of the file system.
    protocolServiceId String
    Protocol Service ID
    accessGroupName String
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    description String

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    dryRun Boolean
    fsetId String

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    path String

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    vpcId String
    The VPC ID of the protocol service mount point.
    vswitchId String
    The vSwitch ID of the protocol service mount target.
    vswitchIds List<String>
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    fileSystemId string
    The ID of the file system.
    protocolServiceId string
    Protocol Service ID
    accessGroupName string
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    description string

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    dryRun boolean
    fsetId string

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    path string

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    vpcId string
    The VPC ID of the protocol service mount point.
    vswitchId string
    The vSwitch ID of the protocol service mount target.
    vswitchIds string[]
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    file_system_id str
    The ID of the file system.
    protocol_service_id str
    Protocol Service ID
    access_group_name str
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    description str

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    dry_run bool
    fset_id str

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    path str

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    vpc_id str
    The VPC ID of the protocol service mount point.
    vswitch_id str
    The vSwitch ID of the protocol service mount target.
    vswitch_ids Sequence[str]
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    fileSystemId String
    The ID of the file system.
    protocolServiceId String
    Protocol Service ID
    accessGroupName String
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    description String

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    dryRun Boolean
    fsetId String

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    path String

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    vpcId String
    The VPC ID of the protocol service mount point.
    vswitchId String
    The vSwitch ID of the protocol service mount target.
    vswitchIds List<String>
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.

    Outputs

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

    CreateTime string
    The creation time of the resource
    ExportId string
    Protocol Service Mount Target ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status
    CreateTime string
    The creation time of the resource
    ExportId string
    Protocol Service Mount Target ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status
    createTime String
    The creation time of the resource
    exportId String
    Protocol Service Mount Target ID
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status
    createTime string
    The creation time of the resource
    exportId string
    Protocol Service Mount Target ID
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status
    create_time str
    The creation time of the resource
    export_id str
    Protocol Service Mount Target ID
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status
    createTime String
    The creation time of the resource
    exportId String
    Protocol Service Mount Target ID
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status

    Look up Existing ProtocolMountTarget Resource

    Get an existing ProtocolMountTarget 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?: ProtocolMountTargetState, opts?: CustomResourceOptions): ProtocolMountTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_group_name: Optional[str] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            dry_run: Optional[bool] = None,
            export_id: Optional[str] = None,
            file_system_id: Optional[str] = None,
            fset_id: Optional[str] = None,
            path: Optional[str] = None,
            protocol_service_id: Optional[str] = None,
            status: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None,
            vswitch_ids: Optional[Sequence[str]] = None) -> ProtocolMountTarget
    func GetProtocolMountTarget(ctx *Context, name string, id IDInput, state *ProtocolMountTargetState, opts ...ResourceOption) (*ProtocolMountTarget, error)
    public static ProtocolMountTarget Get(string name, Input<string> id, ProtocolMountTargetState? state, CustomResourceOptions? opts = null)
    public static ProtocolMountTarget get(String name, Output<String> id, ProtocolMountTargetState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:nas:ProtocolMountTarget    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 permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    CreateTime string
    The creation time of the resource
    Description string

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    DryRun bool
    ExportId string
    Protocol Service Mount Target ID
    FileSystemId string
    The ID of the file system.
    FsetId string

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    Path string

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    ProtocolServiceId string
    Protocol Service ID
    Status string
    Status
    VpcId string
    The VPC ID of the protocol service mount point.
    VswitchId string
    The vSwitch ID of the protocol service mount target.
    VswitchIds List<string>
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    AccessGroupName string
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    CreateTime string
    The creation time of the resource
    Description string

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    DryRun bool
    ExportId string
    Protocol Service Mount Target ID
    FileSystemId string
    The ID of the file system.
    FsetId string

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    Path string

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    ProtocolServiceId string
    Protocol Service ID
    Status string
    Status
    VpcId string
    The VPC ID of the protocol service mount point.
    VswitchId string
    The vSwitch ID of the protocol service mount target.
    VswitchIds []string
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    accessGroupName String
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    createTime String
    The creation time of the resource
    description String

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    dryRun Boolean
    exportId String
    Protocol Service Mount Target ID
    fileSystemId String
    The ID of the file system.
    fsetId String

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    path String

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    protocolServiceId String
    Protocol Service ID
    status String
    Status
    vpcId String
    The VPC ID of the protocol service mount point.
    vswitchId String
    The vSwitch ID of the protocol service mount target.
    vswitchIds List<String>
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    accessGroupName string
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    createTime string
    The creation time of the resource
    description string

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    dryRun boolean
    exportId string
    Protocol Service Mount Target ID
    fileSystemId string
    The ID of the file system.
    fsetId string

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    path string

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    protocolServiceId string
    Protocol Service ID
    status string
    Status
    vpcId string
    The VPC ID of the protocol service mount point.
    vswitchId string
    The vSwitch ID of the protocol service mount target.
    vswitchIds string[]
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    access_group_name str
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    create_time str
    The creation time of the resource
    description str

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    dry_run bool
    export_id str
    Protocol Service Mount Target ID
    file_system_id str
    The ID of the file system.
    fset_id str

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    path str

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    protocol_service_id str
    Protocol Service ID
    status str
    Status
    vpc_id str
    The VPC ID of the protocol service mount point.
    vswitch_id str
    The vSwitch ID of the protocol service mount target.
    vswitch_ids Sequence[str]
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.
    accessGroupName String
    The permission group name. Default value: DEFAULT_VPC_GROUP_NAME
    createTime String
    The creation time of the resource
    description String

    Description of the protocol service mount target. Display as the export directory name in the console.

    Limitations:

    • Length is 2~128 English or Chinese characters.
    • It must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https.
    • Can contain numbers, colons (:), underscores (_), or dashes (-).
    dryRun Boolean
    exportId String
    Protocol Service Mount Target ID
    fileSystemId String
    The ID of the file system.
    fsetId String

    The ID of the Fileset to be mounted.

    Limitations:

    • The Fileset must already exist.
    • A Fileset allows only one export directory to be created.
    • Fileset and Path can and must specify only one.
    path String

    The path of the CPFS directory to be mounted.

    Limitations:

    • The directory must be an existing directory on the CPFS.
    • Only one export is allowed for the same directory.
    • Fileset and Path can and must specify only one.

    Format:

    • 1~1024 characters in length.
    • Use UTF-8 encoding.
    • Must start and end with a forward slash (/) and root directory is/.
    protocolServiceId String
    Protocol Service ID
    status String
    Status
    vpcId String
    The VPC ID of the protocol service mount point.
    vswitchId String
    The vSwitch ID of the protocol service mount target.
    vswitchIds List<String>
    The vSwitch IDs of the protocol service mount target. When the storage redundancy type of the file system is ZRS, if VpcId is set, the vSwitch ID of three different zones under the Vpc must be set in this field.

    Import

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

    $ pulumi import alicloud:nas/protocolMountTarget:ProtocolMountTarget example <file_system_id>:<protocol_service_id>:<export_id>
    

    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.95.0 published on Thursday, Feb 12, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate