alicloud.nas.FileSystem
Explore with Pulumi AI
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:
- Protocol
Type string - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- Storage
Type string The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- Capacity int
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - Description string
- 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 stringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - Kms
Key stringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - Nfs
Acl Pulumi.Ali Cloud. Nas. Inputs. File System Nfs Acl The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- Recycle
Bin Pulumi.Ali Cloud. Nas. Inputs. File System Recycle Bin The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- Resource
Group stringId - The ID of the resource group.
- Snapshot
Id string - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - Vswitch
Id string - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - Zone
Id string - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- Protocol
Type string - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- Storage
Type string The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- Capacity int
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - Description string
- 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 stringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - Kms
Key stringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - Nfs
Acl FileSystem Nfs Acl Args The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- Recycle
Bin FileSystem Recycle Bin Args The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- Resource
Group stringId - The ID of the resource group.
- Snapshot
Id string - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - Vswitch
Id string - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - Zone
Id string - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- protocol
Type String - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- storage
Type String The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- capacity Integer
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - description String
- The description of the file system.
- encrypt
Type Integer - Specifies whether to encrypt data in the file system. Default value:
0
. Valid values: - file
System StringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - kms
Key StringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - nfs
Acl FileSystem Nfs Acl The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- recycle
Bin FileSystem Recycle Bin The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- resource
Group StringId - The ID of the resource group.
- snapshot
Id String - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - vswitch
Id String - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - zone
Id String - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- protocol
Type string - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- storage
Type string The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- capacity number
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - description string
- The description of the file system.
- encrypt
Type number - Specifies whether to encrypt data in the file system. Default value:
0
. Valid values: - file
System stringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - kms
Key stringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - nfs
Acl FileSystem Nfs Acl The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- recycle
Bin FileSystem Recycle Bin The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- resource
Group stringId - The ID of the resource group.
- snapshot
Id string - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - vswitch
Id string - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - zone
Id string - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- protocol_
type str - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- storage_
type str The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- capacity int
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,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_ strtype - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - kms_
key_ strid - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - nfs_
acl FileSystem Nfs Acl Args The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- recycle_
bin FileSystem Recycle Bin Args The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- resource_
group_ strid - The ID of the resource group.
- snapshot_
id str - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - 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 iffile_system_type
is set tocpfs
. - vswitch_
id str - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - zone_
id str - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- protocol
Type String - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- storage
Type String The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- capacity Number
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - description String
- The description of the file system.
- encrypt
Type Number - Specifies whether to encrypt data in the file system. Default value:
0
. Valid values: - file
System StringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - kms
Key StringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - nfs
Acl Property Map The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- recycle
Bin Property Map The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- resource
Group StringId - The ID of the resource group.
- snapshot
Id String - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - vswitch
Id String - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - zone
Id String - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileSystem resource produces the following output properties:
- Create
Time 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 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 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 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.
- create
Time 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.
- Capacity int
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - Create
Time string - (Available since v1.236.0) The time when the file system was created.
- Description string
- 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 stringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - Kms
Key stringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - Nfs
Acl Pulumi.Ali Cloud. Nas. Inputs. File System Nfs Acl The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- Protocol
Type string - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- Recycle
Bin Pulumi.Ali Cloud. Nas. Inputs. File System Recycle Bin The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- Resource
Group stringId - The ID of the resource group.
- Snapshot
Id string - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - Status string
- (Available since v1.236.0) The status of the File System.
- Storage
Type string The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - Vswitch
Id string - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - Zone
Id string - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- Capacity int
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - Create
Time string - (Available since v1.236.0) The time when the file system was created.
- Description string
- 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 stringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - Kms
Key stringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - Nfs
Acl FileSystem Nfs Acl Args The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- Protocol
Type string - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- Recycle
Bin FileSystem Recycle Bin Args The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- Resource
Group stringId - The ID of the resource group.
- Snapshot
Id string - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - Status string
- (Available since v1.236.0) The status of the File System.
- Storage
Type string The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - Vswitch
Id string - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - Zone
Id string - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- capacity Integer
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - create
Time String - (Available since v1.236.0) The time when the file system was created.
- description String
- The description of the file system.
- encrypt
Type Integer - Specifies whether to encrypt data in the file system. Default value:
0
. Valid values: - file
System StringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - kms
Key StringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - nfs
Acl FileSystem Nfs Acl The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- protocol
Type String - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- recycle
Bin FileSystem Recycle Bin The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- resource
Group StringId - The ID of the resource group.
- snapshot
Id String - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - status String
- (Available since v1.236.0) The status of the File System.
- storage
Type String The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - vswitch
Id String - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - zone
Id String - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- capacity number
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - create
Time string - (Available since v1.236.0) The time when the file system was created.
- description string
- The description of the file system.
- encrypt
Type number - Specifies whether to encrypt data in the file system. Default value:
0
. Valid values: - file
System stringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - kms
Key stringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - nfs
Acl FileSystem Nfs Acl The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- protocol
Type string - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- recycle
Bin FileSystem Recycle Bin The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- resource
Group stringId - The ID of the resource group.
- snapshot
Id string - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - status string
- (Available since v1.236.0) The status of the File System.
- storage
Type string The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - vswitch
Id string - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - zone
Id string - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- capacity int
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,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_ strtype - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - kms_
key_ strid - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - nfs_
acl FileSystem Nfs Acl Args The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- protocol_
type str - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- recycle_
bin FileSystem Recycle Bin Args The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- resource_
group_ strid - The ID of the resource group.
- snapshot_
id str - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - 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 tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- 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 iffile_system_type
is set tocpfs
. - vswitch_
id str - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - zone_
id str - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,zone_id
must be set.
- capacity Number
- The capacity of the file system. Unit: GiB. Note: If
file_system_type
is set toextreme
orcpfs
,capacity
must be set. - create
Time String - (Available since v1.236.0) The time when the file system was created.
- description String
- The description of the file system.
- encrypt
Type Number - Specifies whether to encrypt data in the file system. Default value:
0
. Valid values: - file
System StringType - The type of the file system. Default value:
standard
. Valid values:standard
,extreme
,cpfs
. - kms
Key StringId - The ID of the KMS-managed key. Note: If
encrypt_type
is set to2
,kms_key_id
must be set. - nfs
Acl Property Map The NFS ACL feature of the file system. See
nfs_acl
below.NOTE:
nfs_acl
takes effect only iffile_system_type
is set tostandard
.- protocol
Type String - The protocol type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:NFS
,SMB
. - If
file_system_type
is set toextreme
. Valid values:NFS
. - If
file_system_type
is set tocpfs
. Valid values:cpfs
.
- If
- recycle
Bin Property Map The recycle bin feature of the file system. See
recycle_bin
below.NOTE:
recycle_bin
takes effect only iffile_system_type
is set tostandard
.- resource
Group StringId - The ID of the resource group.
- snapshot
Id String - The ID of the snapshot. NOTE:
snapshot_id
takes effect only iffile_system_type
is set toextreme
. - status String
- (Available since v1.236.0) The status of the File System.
- storage
Type String The storage type of the file system. Valid values:
- If
file_system_type
is set tostandard
. Valid values:Performance
,Capacity
,Premium
. - If
file_system_type
is set toextreme
. Valid values:standard
,advance
. - If
file_system_type
is set tocpfs
. Valid values:advance_100
,advance_200
.
NOTE: From version 1.140.0,
storage_type
can be set tostandard
,advance
. From version 1.153.0,storage_type
can be set toadvance_100
,advance_200
. From version 1.236.0,storage_type
can be set toPremium
.- If
- Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC. NOTE:
vpc_id
takes effect only iffile_system_type
is set tocpfs
. - vswitch
Id String - The ID of the vSwitch. NOTE:
vswitch_id
takes effect only iffile_system_type
is set tocpfs
. - zone
Id String - The ID of the zone. Note: If
file_system_type
is set toextreme
orcpfs
,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
- Enable
Time string - 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
to180
. NOTE:reserved_days
takes effect only ifstatus
is set toEnable
. - 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 string
- Specifies whether to enable the recycle bin feature. Default value:
Disable
. Valid values:Enable
,Disable
.
- Enable
Time string - 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
to180
. NOTE:reserved_days
takes effect only ifstatus
is set toEnable
. - 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 string
- Specifies whether to enable the recycle bin feature. Default value:
Disable
. Valid values:Enable
,Disable
.
- enable
Time String - The time at which the recycle bin was enabled.
- reserved
Days Integer - The retention period of the files in the recycle bin. Unit: days. Default value:
3
. Valid values:1
to180
. NOTE:reserved_days
takes effect only ifstatus
is set toEnable
. - secondary
Size 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
.
- enable
Time string - The time at which the recycle bin was enabled.
- reserved
Days number - The retention period of the files in the recycle bin. Unit: days. Default value:
3
. Valid values:1
to180
. NOTE:reserved_days
takes effect only ifstatus
is set toEnable
. - secondary
Size 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
to180
. NOTE:reserved_days
takes effect only ifstatus
is set toEnable
. - 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
.
- enable
Time String - The time at which the recycle bin was enabled.
- reserved
Days Number - The retention period of the files in the recycle bin. Unit: days. Default value:
3
. Valid values:1
to180
. NOTE:reserved_days
takes effect only ifstatus
is set toEnable
. - secondary
Size 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.