1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. nas
  5. FileSystem
Alibaba Cloud v3.74.0 published on Monday, Jan 27, 2025 by Pulumi

alicloud.nas.FileSystem

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.74.0 published on Monday, Jan 27, 2025 by Pulumi

    Provides a File Storage (NAS) File System resource.

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

    NOTE: Available since v1.33.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 default = alicloud.nas.getZones({
        fileSystemType: "standard",
    });
    const defaultFileSystem = new alicloud.nas.FileSystem("default", {
        protocolType: "NFS",
        storageType: "Capacity",
        description: name,
        encryptType: 1,
        fileSystemType: "standard",
        recycleBin: {
            status: "Enable",
            reservedDays: 10,
        },
        nfsAcl: {
            enabled: true,
        },
        zoneId: _default.then(_default => _default.zones?.[0]?.zoneId),
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.nas.get_zones(file_system_type="standard")
    default_file_system = alicloud.nas.FileSystem("default",
        protocol_type="NFS",
        storage_type="Capacity",
        description=name,
        encrypt_type=1,
        file_system_type="standard",
        recycle_bin={
            "status": "Enable",
            "reserved_days": 10,
        },
        nfs_acl={
            "enabled": True,
        },
        zone_id=default.zones[0].zone_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
    	"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
    		}
    		_default, err := nas.GetZones(ctx, &nas.GetZonesArgs{
    			FileSystemType: pulumi.StringRef("standard"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = nas.NewFileSystem(ctx, "default", &nas.FileSystemArgs{
    			ProtocolType:   pulumi.String("NFS"),
    			StorageType:    pulumi.String("Capacity"),
    			Description:    pulumi.String(name),
    			EncryptType:    pulumi.Int(1),
    			FileSystemType: pulumi.String("standard"),
    			RecycleBin: &nas.FileSystemRecycleBinArgs{
    				Status:       pulumi.String("Enable"),
    				ReservedDays: pulumi.Int(10),
    			},
    			NfsAcl: &nas.FileSystemNfsAclArgs{
    				Enabled: pulumi.Bool(true),
    			},
    			ZoneId: pulumi.String(_default.Zones[0].ZoneId),
    		})
    		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 @default = AliCloud.Nas.GetZones.Invoke(new()
        {
            FileSystemType = "standard",
        });
    
        var defaultFileSystem = new AliCloud.Nas.FileSystem("default", new()
        {
            ProtocolType = "NFS",
            StorageType = "Capacity",
            Description = name,
            EncryptType = 1,
            FileSystemType = "standard",
            RecycleBin = new AliCloud.Nas.Inputs.FileSystemRecycleBinArgs
            {
                Status = "Enable",
                ReservedDays = 10,
            },
            NfsAcl = new AliCloud.Nas.Inputs.FileSystemNfsAclArgs
            {
                Enabled = true,
            },
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId)),
        });
    
    });
    
    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.nas.FileSystem;
    import com.pulumi.alicloud.nas.FileSystemArgs;
    import com.pulumi.alicloud.nas.inputs.FileSystemRecycleBinArgs;
    import com.pulumi.alicloud.nas.inputs.FileSystemNfsAclArgs;
    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");
            final var default = NasFunctions.getZones(GetZonesArgs.builder()
                .fileSystemType("standard")
                .build());
    
            var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()
                .protocolType("NFS")
                .storageType("Capacity")
                .description(name)
                .encryptType(1)
                .fileSystemType("standard")
                .recycleBin(FileSystemRecycleBinArgs.builder()
                    .status("Enable")
                    .reservedDays("10")
                    .build())
                .nfsAcl(FileSystemNfsAclArgs.builder()
                    .enabled(true)
                    .build())
                .zoneId(default_.zones()[0].zoneId())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultFileSystem:
        type: alicloud:nas:FileSystem
        name: default
        properties:
          protocolType: NFS
          storageType: Capacity
          description: ${name}
          encryptType: 1
          fileSystemType: standard
          recycleBin:
            status: Enable
            reservedDays: '10'
          nfsAcl:
            enabled: true
          zoneId: ${default.zones[0].zoneId}
    variables:
      default:
        fn::invoke:
          function: alicloud:nas:getZones
          arguments:
            fileSystemType: standard
    
    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 default = alicloud.nas.getZones({
        fileSystemType: "extreme",
    });
    const defaultFileSystem = new alicloud.nas.FileSystem("default", {
        protocolType: "NFS",
        storageType: "standard",
        capacity: 100,
        description: name,
        encryptType: 1,
        fileSystemType: "extreme",
        zoneId: _default.then(_default => _default.zones?.[0]?.zoneId),
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.nas.get_zones(file_system_type="extreme")
    default_file_system = alicloud.nas.FileSystem("default",
        protocol_type="NFS",
        storage_type="standard",
        capacity=100,
        description=name,
        encrypt_type=1,
        file_system_type="extreme",
        zone_id=default.zones[0].zone_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
    	"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
    		}
    		_default, err := nas.GetZones(ctx, &nas.GetZonesArgs{
    			FileSystemType: pulumi.StringRef("extreme"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = nas.NewFileSystem(ctx, "default", &nas.FileSystemArgs{
    			ProtocolType:   pulumi.String("NFS"),
    			StorageType:    pulumi.String("standard"),
    			Capacity:       pulumi.Int(100),
    			Description:    pulumi.String(name),
    			EncryptType:    pulumi.Int(1),
    			FileSystemType: pulumi.String("extreme"),
    			ZoneId:         pulumi.String(_default.Zones[0].ZoneId),
    		})
    		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 @default = AliCloud.Nas.GetZones.Invoke(new()
        {
            FileSystemType = "extreme",
        });
    
        var defaultFileSystem = new AliCloud.Nas.FileSystem("default", new()
        {
            ProtocolType = "NFS",
            StorageType = "standard",
            Capacity = 100,
            Description = name,
            EncryptType = 1,
            FileSystemType = "extreme",
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId)),
        });
    
    });
    
    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.nas.FileSystem;
    import com.pulumi.alicloud.nas.FileSystemArgs;
    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");
            final var default = NasFunctions.getZones(GetZonesArgs.builder()
                .fileSystemType("extreme")
                .build());
    
            var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()
                .protocolType("NFS")
                .storageType("standard")
                .capacity(100)
                .description(name)
                .encryptType(1)
                .fileSystemType("extreme")
                .zoneId(default_.zones()[0].zoneId())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultFileSystem:
        type: alicloud:nas:FileSystem
        name: default
        properties:
          protocolType: NFS
          storageType: standard
          capacity: 100
          description: ${name}
          encryptType: 1
          fileSystemType: extreme
          zoneId: ${default.zones[0].zoneId}
    variables:
      default:
        fn::invoke:
          function: alicloud:nas:getZones
          arguments:
            fileSystemType: extreme
    
    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 default = alicloud.nas.getZones({
        fileSystemType: "cpfs",
    });
    const defaultNetwork = new alicloud.vpc.Network("default", {
        vpcName: name,
        cidrBlock: "172.17.3.0/24",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vswitchName: name,
        cidrBlock: "172.17.3.0/24",
        vpcId: defaultNetwork.id,
        zoneId: _default.then(_default => _default.zones?.[1]?.zoneId),
    });
    const defaultFileSystem = new alicloud.nas.FileSystem("default", {
        protocolType: "cpfs",
        storageType: "advance_100",
        capacity: 5000,
        description: name,
        fileSystemType: "cpfs",
        vswitchId: defaultSwitch.id,
        vpcId: defaultNetwork.id,
        zoneId: _default.then(_default => _default.zones?.[1]?.zoneId),
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.nas.get_zones(file_system_type="cpfs")
    default_network = alicloud.vpc.Network("default",
        vpc_name=name,
        cidr_block="172.17.3.0/24")
    default_switch = alicloud.vpc.Switch("default",
        vswitch_name=name,
        cidr_block="172.17.3.0/24",
        vpc_id=default_network.id,
        zone_id=default.zones[1].zone_id)
    default_file_system = alicloud.nas.FileSystem("default",
        protocol_type="cpfs",
        storage_type="advance_100",
        capacity=5000,
        description=name,
        file_system_type="cpfs",
        vswitch_id=default_switch.id,
        vpc_id=default_network.id,
        zone_id=default.zones[1].zone_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
    		}
    		_default, err := nas.GetZones(ctx, &nas.GetZonesArgs{
    			FileSystemType: pulumi.StringRef("cpfs"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("172.17.3.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("172.17.3.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(_default.Zones[1].ZoneId),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = nas.NewFileSystem(ctx, "default", &nas.FileSystemArgs{
    			ProtocolType:   pulumi.String("cpfs"),
    			StorageType:    pulumi.String("advance_100"),
    			Capacity:       pulumi.Int(5000),
    			Description:    pulumi.String(name),
    			FileSystemType: pulumi.String("cpfs"),
    			VswitchId:      defaultSwitch.ID(),
    			VpcId:          defaultNetwork.ID(),
    			ZoneId:         pulumi.String(_default.Zones[1].ZoneId),
    		})
    		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 @default = AliCloud.Nas.GetZones.Invoke(new()
        {
            FileSystemType = "cpfs",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = name,
            CidrBlock = "172.17.3.0/24",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VswitchName = name,
            CidrBlock = "172.17.3.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[1]?.ZoneId)),
        });
    
        var defaultFileSystem = new AliCloud.Nas.FileSystem("default", new()
        {
            ProtocolType = "cpfs",
            StorageType = "advance_100",
            Capacity = 5000,
            Description = name,
            FileSystemType = "cpfs",
            VswitchId = defaultSwitch.Id,
            VpcId = defaultNetwork.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[1]?.ZoneId)),
        });
    
    });
    
    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 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");
            final var default = NasFunctions.getZones(GetZonesArgs.builder()
                .fileSystemType("cpfs")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("172.17.3.0/24")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vswitchName(name)
                .cidrBlock("172.17.3.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(default_.zones()[1].zoneId())
                .build());
    
            var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()
                .protocolType("cpfs")
                .storageType("advance_100")
                .capacity(5000)
                .description(name)
                .fileSystemType("cpfs")
                .vswitchId(defaultSwitch.id())
                .vpcId(defaultNetwork.id())
                .zoneId(default_.zones()[1].zoneId())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          vpcName: ${name}
          cidrBlock: 172.17.3.0/24
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vswitchName: ${name}
          cidrBlock: 172.17.3.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${default.zones[1].zoneId}
      defaultFileSystem:
        type: alicloud:nas:FileSystem
        name: default
        properties:
          protocolType: cpfs
          storageType: advance_100
          capacity: 5000
          description: ${name}
          fileSystemType: cpfs
          vswitchId: ${defaultSwitch.id}
          vpcId: ${defaultNetwork.id}
          zoneId: ${default.zones[1].zoneId}
    variables:
      default:
        fn::invoke:
          function: alicloud:nas:getZones
          arguments:
            fileSystemType: cpfs
    

    Create FileSystem Resource

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

    Constructor syntax

    new FileSystem(name: string, args: FileSystemArgs, opts?: CustomResourceOptions);
    @overload
    def FileSystem(resource_name: str,
                   args: FileSystemArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def FileSystem(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   protocol_type: Optional[str] = None,
                   storage_type: Optional[str] = None,
                   file_system_type: Optional[str] = None,
                   capacity: Optional[int] = None,
                   kms_key_id: Optional[str] = None,
                   nfs_acl: Optional[FileSystemNfsAclArgs] = None,
                   encrypt_type: Optional[int] = None,
                   recycle_bin: Optional[FileSystemRecycleBinArgs] = None,
                   resource_group_id: Optional[str] = None,
                   snapshot_id: Optional[str] = None,
                   description: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   vpc_id: Optional[str] = None,
                   vswitch_id: Optional[str] = None,
                   zone_id: Optional[str] = None)
    func NewFileSystem(ctx *Context, name string, args FileSystemArgs, opts ...ResourceOption) (*FileSystem, error)
    public FileSystem(string name, FileSystemArgs args, CustomResourceOptions? opts = null)
    public FileSystem(String name, FileSystemArgs args)
    public FileSystem(String name, FileSystemArgs args, CustomResourceOptions options)
    
    type: alicloud:nas:FileSystem
    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 FileSystemArgs
    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 FileSystemArgs
    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 FileSystemArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FileSystemArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FileSystemArgs
    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 alicloudFileSystemResource = new AliCloud.Nas.FileSystem("alicloudFileSystemResource", new()
    {
        ProtocolType = "string",
        StorageType = "string",
        FileSystemType = "string",
        Capacity = 0,
        KmsKeyId = "string",
        NfsAcl = new AliCloud.Nas.Inputs.FileSystemNfsAclArgs
        {
            Enabled = false,
        },
        EncryptType = 0,
        RecycleBin = new AliCloud.Nas.Inputs.FileSystemRecycleBinArgs
        {
            EnableTime = "string",
            ReservedDays = 0,
            SecondarySize = 0,
            Size = 0,
            Status = "string",
        },
        ResourceGroupId = "string",
        SnapshotId = "string",
        Description = "string",
        Tags = 
        {
            { "string", "string" },
        },
        VpcId = "string",
        VswitchId = "string",
        ZoneId = "string",
    });
    
    example, err := nas.NewFileSystem(ctx, "alicloudFileSystemResource", &nas.FileSystemArgs{
    	ProtocolType:   pulumi.String("string"),
    	StorageType:    pulumi.String("string"),
    	FileSystemType: pulumi.String("string"),
    	Capacity:       pulumi.Int(0),
    	KmsKeyId:       pulumi.String("string"),
    	NfsAcl: &nas.FileSystemNfsAclArgs{
    		Enabled: pulumi.Bool(false),
    	},
    	EncryptType: pulumi.Int(0),
    	RecycleBin: &nas.FileSystemRecycleBinArgs{
    		EnableTime:    pulumi.String("string"),
    		ReservedDays:  pulumi.Int(0),
    		SecondarySize: pulumi.Int(0),
    		Size:          pulumi.Int(0),
    		Status:        pulumi.String("string"),
    	},
    	ResourceGroupId: pulumi.String("string"),
    	SnapshotId:      pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VpcId:     pulumi.String("string"),
    	VswitchId: pulumi.String("string"),
    	ZoneId:    pulumi.String("string"),
    })
    
    var alicloudFileSystemResource = new FileSystem("alicloudFileSystemResource", FileSystemArgs.builder()
        .protocolType("string")
        .storageType("string")
        .fileSystemType("string")
        .capacity(0)
        .kmsKeyId("string")
        .nfsAcl(FileSystemNfsAclArgs.builder()
            .enabled(false)
            .build())
        .encryptType(0)
        .recycleBin(FileSystemRecycleBinArgs.builder()
            .enableTime("string")
            .reservedDays(0)
            .secondarySize(0)
            .size(0)
            .status("string")
            .build())
        .resourceGroupId("string")
        .snapshotId("string")
        .description("string")
        .tags(Map.of("string", "string"))
        .vpcId("string")
        .vswitchId("string")
        .zoneId("string")
        .build());
    
    alicloud_file_system_resource = alicloud.nas.FileSystem("alicloudFileSystemResource",
        protocol_type="string",
        storage_type="string",
        file_system_type="string",
        capacity=0,
        kms_key_id="string",
        nfs_acl={
            "enabled": False,
        },
        encrypt_type=0,
        recycle_bin={
            "enable_time": "string",
            "reserved_days": 0,
            "secondary_size": 0,
            "size": 0,
            "status": "string",
        },
        resource_group_id="string",
        snapshot_id="string",
        description="string",
        tags={
            "string": "string",
        },
        vpc_id="string",
        vswitch_id="string",
        zone_id="string")
    
    const alicloudFileSystemResource = new alicloud.nas.FileSystem("alicloudFileSystemResource", {
        protocolType: "string",
        storageType: "string",
        fileSystemType: "string",
        capacity: 0,
        kmsKeyId: "string",
        nfsAcl: {
            enabled: false,
        },
        encryptType: 0,
        recycleBin: {
            enableTime: "string",
            reservedDays: 0,
            secondarySize: 0,
            size: 0,
            status: "string",
        },
        resourceGroupId: "string",
        snapshotId: "string",
        description: "string",
        tags: {
            string: "string",
        },
        vpcId: "string",
        vswitchId: "string",
        zoneId: "string",
    });
    
    type: alicloud:nas:FileSystem
    properties:
        capacity: 0
        description: string
        encryptType: 0
        fileSystemType: string
        kmsKeyId: string
        nfsAcl:
            enabled: false
        protocolType: string
        recycleBin:
            enableTime: string
            reservedDays: 0
            secondarySize: 0
            size: 0
            status: string
        resourceGroupId: string
        snapshotId: string
        storageType: string
        tags:
            string: string
        vpcId: string
        vswitchId: string
        zoneId: string
    

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

    ProtocolType string
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    StorageType string

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    Capacity int
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    Description string
    The description of the file system.
    EncryptType int
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    FileSystemType string
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    KmsKeyId string
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    NfsAcl Pulumi.AliCloud.Nas.Inputs.FileSystemNfsAcl

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    RecycleBin Pulumi.AliCloud.Nas.Inputs.FileSystemRecycleBin

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    ResourceGroupId string
    The ID of the resource group.
    SnapshotId string
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    VpcId string
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    VswitchId string
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    ZoneId string
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    ProtocolType string
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    StorageType string

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    Capacity int
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    Description string
    The description of the file system.
    EncryptType int
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    FileSystemType string
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    KmsKeyId string
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    NfsAcl FileSystemNfsAclArgs

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    RecycleBin FileSystemRecycleBinArgs

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    ResourceGroupId string
    The ID of the resource group.
    SnapshotId string
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    VpcId string
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    VswitchId string
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    ZoneId string
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    protocolType String
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    storageType String

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    capacity Integer
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    description String
    The description of the file system.
    encryptType Integer
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    fileSystemType String
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    kmsKeyId String
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    nfsAcl FileSystemNfsAcl

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    recycleBin FileSystemRecycleBin

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    resourceGroupId String
    The ID of the resource group.
    snapshotId String
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    vpcId String
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    vswitchId String
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    zoneId String
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    protocolType string
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    storageType string

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    capacity number
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    description string
    The description of the file system.
    encryptType number
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    fileSystemType string
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    kmsKeyId string
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    nfsAcl FileSystemNfsAcl

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    recycleBin FileSystemRecycleBin

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    resourceGroupId string
    The ID of the resource group.
    snapshotId string
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    vpcId string
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    vswitchId string
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    zoneId string
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    protocol_type str
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    storage_type str

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    capacity int
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    description str
    The description of the file system.
    encrypt_type int
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    file_system_type str
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    kms_key_id str
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    nfs_acl FileSystemNfsAclArgs

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    recycle_bin FileSystemRecycleBinArgs

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    resource_group_id str
    The ID of the resource group.
    snapshot_id str
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    vpc_id str
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    vswitch_id str
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    zone_id str
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    protocolType String
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    storageType String

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    capacity Number
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    description String
    The description of the file system.
    encryptType Number
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    fileSystemType String
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    kmsKeyId String
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    nfsAcl Property Map

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    recycleBin Property Map

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    resourceGroupId String
    The ID of the resource group.
    snapshotId String
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    tags Map<String>
    A mapping of tags to assign to the resource.
    vpcId String
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    vswitchId String
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    zoneId String
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.

    Outputs

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

    CreateTime string
    (Available since v1.236.0) The time when the file system was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (Available since v1.236.0) The status of the File System.
    CreateTime string
    (Available since v1.236.0) The time when the file system was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (Available since v1.236.0) The status of the File System.
    createTime String
    (Available since v1.236.0) The time when the file system was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (Available since v1.236.0) The status of the File System.
    createTime string
    (Available since v1.236.0) The time when the file system was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    (Available since v1.236.0) The status of the File System.
    create_time str
    (Available since v1.236.0) The time when the file system was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    (Available since v1.236.0) The status of the File System.
    createTime String
    (Available since v1.236.0) The time when the file system was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (Available since v1.236.0) The status of the File System.

    Look up Existing FileSystem Resource

    Get an existing FileSystem 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?: FileSystemState, opts?: CustomResourceOptions): FileSystem
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            capacity: Optional[int] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            encrypt_type: Optional[int] = None,
            file_system_type: Optional[str] = None,
            kms_key_id: Optional[str] = None,
            nfs_acl: Optional[FileSystemNfsAclArgs] = None,
            protocol_type: Optional[str] = None,
            recycle_bin: Optional[FileSystemRecycleBinArgs] = None,
            resource_group_id: Optional[str] = None,
            snapshot_id: Optional[str] = None,
            status: Optional[str] = None,
            storage_type: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> FileSystem
    func GetFileSystem(ctx *Context, name string, id IDInput, state *FileSystemState, opts ...ResourceOption) (*FileSystem, error)
    public static FileSystem Get(string name, Input<string> id, FileSystemState? state, CustomResourceOptions? opts = null)
    public static FileSystem get(String name, Output<String> id, FileSystemState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:nas:FileSystem    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:
    Capacity int
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    CreateTime string
    (Available since v1.236.0) The time when the file system was created.
    Description string
    The description of the file system.
    EncryptType int
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    FileSystemType string
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    KmsKeyId string
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    NfsAcl Pulumi.AliCloud.Nas.Inputs.FileSystemNfsAcl

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    ProtocolType string
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    RecycleBin Pulumi.AliCloud.Nas.Inputs.FileSystemRecycleBin

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    ResourceGroupId string
    The ID of the resource group.
    SnapshotId string
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    Status string
    (Available since v1.236.0) The status of the File System.
    StorageType string

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    VpcId string
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    VswitchId string
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    ZoneId string
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    Capacity int
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    CreateTime string
    (Available since v1.236.0) The time when the file system was created.
    Description string
    The description of the file system.
    EncryptType int
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    FileSystemType string
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    KmsKeyId string
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    NfsAcl FileSystemNfsAclArgs

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    ProtocolType string
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    RecycleBin FileSystemRecycleBinArgs

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    ResourceGroupId string
    The ID of the resource group.
    SnapshotId string
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    Status string
    (Available since v1.236.0) The status of the File System.
    StorageType string

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    Tags map[string]string
    A mapping of tags to assign to the resource.
    VpcId string
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    VswitchId string
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    ZoneId string
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    capacity Integer
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    createTime String
    (Available since v1.236.0) The time when the file system was created.
    description String
    The description of the file system.
    encryptType Integer
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    fileSystemType String
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    kmsKeyId String
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    nfsAcl FileSystemNfsAcl

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    protocolType String
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    recycleBin FileSystemRecycleBin

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    resourceGroupId String
    The ID of the resource group.
    snapshotId String
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    status String
    (Available since v1.236.0) The status of the File System.
    storageType String

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    tags Map<String,String>
    A mapping of tags to assign to the resource.
    vpcId String
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    vswitchId String
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    zoneId String
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    capacity number
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    createTime string
    (Available since v1.236.0) The time when the file system was created.
    description string
    The description of the file system.
    encryptType number
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    fileSystemType string
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    kmsKeyId string
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    nfsAcl FileSystemNfsAcl

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    protocolType string
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    recycleBin FileSystemRecycleBin

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    resourceGroupId string
    The ID of the resource group.
    snapshotId string
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    status string
    (Available since v1.236.0) The status of the File System.
    storageType string

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    vpcId string
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    vswitchId string
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    zoneId string
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    capacity int
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    create_time str
    (Available since v1.236.0) The time when the file system was created.
    description str
    The description of the file system.
    encrypt_type int
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    file_system_type str
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    kms_key_id str
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    nfs_acl FileSystemNfsAclArgs

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    protocol_type str
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    recycle_bin FileSystemRecycleBinArgs

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    resource_group_id str
    The ID of the resource group.
    snapshot_id str
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    status str
    (Available since v1.236.0) The status of the File System.
    storage_type str

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    vpc_id str
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    vswitch_id str
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    zone_id str
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.
    capacity Number
    The capacity of the file system. Unit: GiB. Note: If file_system_type is set to extreme or cpfs, capacity must be set.
    createTime String
    (Available since v1.236.0) The time when the file system was created.
    description String
    The description of the file system.
    encryptType Number
    Specifies whether to encrypt data in the file system. Default value: 0. Valid values:
    fileSystemType String
    The type of the file system. Default value: standard. Valid values: standard, extreme, cpfs.
    kmsKeyId String
    The ID of the KMS-managed key. Note: If encrypt_type is set to 2, kms_key_id must be set.
    nfsAcl Property Map

    The NFS ACL feature of the file system. See nfs_acl below.

    NOTE: nfs_acl takes effect only if file_system_type is set to standard.

    protocolType String
    The protocol type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: NFS, SMB.
    • If file_system_type is set to extreme. Valid values: NFS.
    • If file_system_type is set to cpfs. Valid values: cpfs.
    recycleBin Property Map

    The recycle bin feature of the file system. See recycle_bin below.

    NOTE: recycle_bin takes effect only if file_system_type is set to standard.

    resourceGroupId String
    The ID of the resource group.
    snapshotId String
    The ID of the snapshot. NOTE: snapshot_id takes effect only if file_system_type is set to extreme.
    status String
    (Available since v1.236.0) The status of the File System.
    storageType String

    The storage type of the file system. Valid values:

    • If file_system_type is set to standard. Valid values: Performance, Capacity, Premium.
    • If file_system_type is set to extreme. Valid values: standard, advance.
    • If file_system_type is set to cpfs. Valid values: advance_100, advance_200.

    NOTE: From version 1.140.0, storage_type can be set to standard, advance. From version 1.153.0, storage_type can be set to advance_100, advance_200. From version 1.236.0, storage_type can be set to Premium.

    tags Map<String>
    A mapping of tags to assign to the resource.
    vpcId String
    The ID of the VPC. NOTE: vpc_id takes effect only if file_system_type is set to cpfs.
    vswitchId String
    The ID of the vSwitch. NOTE: vswitch_id takes effect only if file_system_type is set to cpfs.
    zoneId String
    The ID of the zone. Note: If file_system_type is set to extreme or cpfs, zone_id must be set.

    Supporting Types

    FileSystemNfsAcl, FileSystemNfsAclArgs

    Enabled bool
    Specifies whether to enable the NFS ACL feature. Default value: false. Valid values:
    Enabled bool
    Specifies whether to enable the NFS ACL feature. Default value: false. Valid values:
    enabled Boolean
    Specifies whether to enable the NFS ACL feature. Default value: false. Valid values:
    enabled boolean
    Specifies whether to enable the NFS ACL feature. Default value: false. Valid values:
    enabled bool
    Specifies whether to enable the NFS ACL feature. Default value: false. Valid values:
    enabled Boolean
    Specifies whether to enable the NFS ACL feature. Default value: false. Valid values:

    FileSystemRecycleBin, FileSystemRecycleBinArgs

    EnableTime string
    The time at which the recycle bin was enabled.
    ReservedDays int
    The retention period of the files in the recycle bin. Unit: days. Default value: 3. Valid values: 1 to 180. NOTE: reserved_days takes effect only if status is set to Enable.
    SecondarySize int
    The size of the Infrequent Access (IA) data that is dumped to the recycle bin.
    Size int
    The size of the files that are dumped to the recycle bin.
    Status string
    Specifies whether to enable the recycle bin feature. Default value: Disable. Valid values: Enable, Disable.
    EnableTime string
    The time at which the recycle bin was enabled.
    ReservedDays int
    The retention period of the files in the recycle bin. Unit: days. Default value: 3. Valid values: 1 to 180. NOTE: reserved_days takes effect only if status is set to Enable.
    SecondarySize int
    The size of the Infrequent Access (IA) data that is dumped to the recycle bin.
    Size int
    The size of the files that are dumped to the recycle bin.
    Status string
    Specifies whether to enable the recycle bin feature. Default value: Disable. Valid values: Enable, Disable.
    enableTime String
    The time at which the recycle bin was enabled.
    reservedDays Integer
    The retention period of the files in the recycle bin. Unit: days. Default value: 3. Valid values: 1 to 180. NOTE: reserved_days takes effect only if status is set to Enable.
    secondarySize Integer
    The size of the Infrequent Access (IA) data that is dumped to the recycle bin.
    size Integer
    The size of the files that are dumped to the recycle bin.
    status String
    Specifies whether to enable the recycle bin feature. Default value: Disable. Valid values: Enable, Disable.
    enableTime string
    The time at which the recycle bin was enabled.
    reservedDays number
    The retention period of the files in the recycle bin. Unit: days. Default value: 3. Valid values: 1 to 180. NOTE: reserved_days takes effect only if status is set to Enable.
    secondarySize number
    The size of the Infrequent Access (IA) data that is dumped to the recycle bin.
    size number
    The size of the files that are dumped to the recycle bin.
    status string
    Specifies whether to enable the recycle bin feature. Default value: Disable. Valid values: Enable, Disable.
    enable_time str
    The time at which the recycle bin was enabled.
    reserved_days int
    The retention period of the files in the recycle bin. Unit: days. Default value: 3. Valid values: 1 to 180. NOTE: reserved_days takes effect only if status is set to Enable.
    secondary_size int
    The size of the Infrequent Access (IA) data that is dumped to the recycle bin.
    size int
    The size of the files that are dumped to the recycle bin.
    status str
    Specifies whether to enable the recycle bin feature. Default value: Disable. Valid values: Enable, Disable.
    enableTime String
    The time at which the recycle bin was enabled.
    reservedDays Number
    The retention period of the files in the recycle bin. Unit: days. Default value: 3. Valid values: 1 to 180. NOTE: reserved_days takes effect only if status is set to Enable.
    secondarySize Number
    The size of the Infrequent Access (IA) data that is dumped to the recycle bin.
    size Number
    The size of the files that are dumped to the recycle bin.
    status String
    Specifies whether to enable the recycle bin feature. Default value: Disable. Valid values: Enable, Disable.

    Import

    File Storage (NAS) File System can be imported using the id, e.g.

    $ pulumi import alicloud:nas/fileSystem:FileSystem example <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.74.0 published on Monday, Jan 27, 2025 by Pulumi