alicloud.nas.FileSystem
Provides a Nas File System resource.
After activating NAS, you can create a file system and purchase a storage package for it in the NAS console. The NAS console also enables you to view the file system details and remove unnecessary file systems.
For information about NAS file system and how to use it, see Manage file systems
NOTE: Available in v1.33.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var foo = new AliCloud.Nas.FileSystem("foo", new()
{
Description = "tf-testAccNasConfig",
EncryptType = 1,
ProtocolType = "NFS",
StorageType = "Performance",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nas.NewFileSystem(ctx, "foo", &nas.FileSystemArgs{
Description: pulumi.String("tf-testAccNasConfig"),
EncryptType: pulumi.Int(1),
ProtocolType: pulumi.String("NFS"),
StorageType: pulumi.String("Performance"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new FileSystem("foo", FileSystemArgs.builder()
.description("tf-testAccNasConfig")
.encryptType("1")
.protocolType("NFS")
.storageType("Performance")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.nas.FileSystem("foo",
description="tf-testAccNasConfig",
encrypt_type=1,
protocol_type="NFS",
storage_type="Performance")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = new alicloud.nas.FileSystem("foo", {
description: "tf-testAccNasConfig",
encryptType: 1,
protocolType: "NFS",
storageType: "Performance",
});
resources:
foo:
type: alicloud:nas:FileSystem
properties:
description: tf-testAccNasConfig
encryptType: '1'
protocolType: NFS
storageType: Performance
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var foo = new AliCloud.Nas.FileSystem("foo", new()
{
Capacity = 100,
Description = "tf-testAccNasConfig",
FileSystemType = "extreme",
ProtocolType = "NFS",
StorageType = "standard",
ZoneId = "cn-hangzhou-f",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nas.NewFileSystem(ctx, "foo", &nas.FileSystemArgs{
Capacity: pulumi.Int(100),
Description: pulumi.String("tf-testAccNasConfig"),
FileSystemType: pulumi.String("extreme"),
ProtocolType: pulumi.String("NFS"),
StorageType: pulumi.String("standard"),
ZoneId: pulumi.String("cn-hangzhou-f"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new FileSystem("foo", FileSystemArgs.builder()
.capacity("100")
.description("tf-testAccNasConfig")
.fileSystemType("extreme")
.protocolType("NFS")
.storageType("standard")
.zoneId("cn-hangzhou-f")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.nas.FileSystem("foo",
capacity=100,
description="tf-testAccNasConfig",
file_system_type="extreme",
protocol_type="NFS",
storage_type="standard",
zone_id="cn-hangzhou-f")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = new alicloud.nas.FileSystem("foo", {
capacity: 100,
description: "tf-testAccNasConfig",
fileSystemType: "extreme",
protocolType: "NFS",
storageType: "standard",
zoneId: "cn-hangzhou-f",
});
resources:
foo:
type: alicloud:nas:FileSystem
properties:
capacity: '100'
description: tf-testAccNasConfig
fileSystemType: extreme
protocolType: NFS
storageType: standard
zoneId: cn-hangzhou-f
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultZones = AliCloud.Nas.GetZones.Invoke(new()
{
FileSystemType = "cpfs",
});
var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "default-NODELETING",
});
var defaultSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId),
});
var foo = new AliCloud.Nas.FileSystem("foo", new()
{
ProtocolType = "cpfs",
StorageType = "advance_200",
FileSystemType = "cpfs",
Capacity = 3600,
Description = "tf-testacc",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.ZoneId),
VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
VswitchId = defaultSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultZones, err := nas.GetZones(ctx, &nas.GetZonesArgs{
FileSystemType: pulumi.StringRef("cpfs"),
}, nil)
if err != nil {
return err
}
defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("default-NODELETING"),
}, nil)
if err != nil {
return err
}
defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultNetworks.Ids[0]),
ZoneId: pulumi.StringRef(defaultZones.Zones[0].ZoneId),
}, nil)
if err != nil {
return err
}
_, err = nas.NewFileSystem(ctx, "foo", &nas.FileSystemArgs{
ProtocolType: pulumi.String("cpfs"),
StorageType: pulumi.String("advance_200"),
FileSystemType: pulumi.String("cpfs"),
Capacity: pulumi.Int(3600),
Description: pulumi.String("tf-testacc"),
ZoneId: *pulumi.String(defaultZones.Zones[0].ZoneId),
VpcId: *pulumi.String(defaultNetworks.Ids[0]),
VswitchId: *pulumi.String(defaultSwitches.Ids[0]),
})
if err != nil {
return err
}
return nil
})
}
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.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
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 defaultZones = NasFunctions.getZones(GetZonesArgs.builder()
.fileSystemType("cpfs")
.build());
final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()))
.build());
var foo = new FileSystem("foo", FileSystemArgs.builder()
.protocolType("cpfs")
.storageType("advance_200")
.fileSystemType("cpfs")
.capacity(3600)
.description("tf-testacc")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()))
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default_zones = alicloud.nas.get_zones(file_system_type="cpfs")
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
zone_id=default_zones.zones[0].zone_id)
foo = alicloud.nas.FileSystem("foo",
protocol_type="cpfs",
storage_type="advance_200",
file_system_type="cpfs",
capacity=3600,
description="tf-testacc",
zone_id=default_zones.zones[0].zone_id,
vpc_id=default_networks.ids[0],
vswitch_id=default_switches.ids[0])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultZones = alicloud.nas.getZones({
fileSystemType: "cpfs",
});
const defaultNetworks = alicloud.vpc.getNetworks({
nameRegex: "default-NODELETING",
});
const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
vpcId: defaultNetworks.ids?.[0],
zoneId: defaultZones.zones?.[0]?.zoneId,
}));
const foo = new alicloud.nas.FileSystem("foo", {
protocolType: "cpfs",
storageType: "advance_200",
fileSystemType: "cpfs",
capacity: 3600,
description: "tf-testacc",
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.zoneId),
vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0]),
vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
});
resources:
foo:
type: alicloud:nas:FileSystem
properties:
protocolType: cpfs
storageType: advance_200
fileSystemType: cpfs
capacity: 3600
description: tf-testacc
zoneId: ${defaultZones.zones[0].zoneId}
vpcId: ${defaultNetworks.ids[0]}
vswitchId: ${defaultSwitches.ids[0]}
variables:
defaultZones:
fn::invoke:
Function: alicloud:nas:getZones
Arguments:
fileSystemType: cpfs
defaultNetworks:
fn::invoke:
Function: alicloud:vpc:getNetworks
Arguments:
nameRegex: default-NODELETING
defaultSwitches:
fn::invoke:
Function: alicloud:vpc:getSwitches
Arguments:
vpcId: ${defaultNetworks.ids[0]}
zoneId: ${defaultZones.zones[0].zoneId}
Create FileSystem Resource
new FileSystem(name: string, args: FileSystemArgs, opts?: CustomResourceOptions);
@overload
def FileSystem(resource_name: str,
opts: Optional[ResourceOptions] = None,
capacity: Optional[int] = None,
description: Optional[str] = None,
encrypt_type: Optional[int] = None,
file_system_type: Optional[str] = None,
kms_key_id: Optional[str] = None,
protocol_type: Optional[str] = None,
storage_type: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None)
@overload
def FileSystem(resource_name: str,
args: FileSystemArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The FileSystem resource accepts the following input properties:
- Protocol
Type string The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- Storage
Type string The storage type of the file System.
- Valid values:
- Capacity int
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- Description string
The File System description.
- Encrypt
Type int Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- File
System stringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- Kms
Key stringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Vpc
Id string The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- Vswitch
Id string The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- Zone
Id string The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- Protocol
Type string The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- Storage
Type string The storage type of the file System.
- Valid values:
- Capacity int
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- Description string
The File System description.
- Encrypt
Type int Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- File
System stringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- Kms
Key stringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- map[string]interface{}
A mapping of tags to assign to the resource.
- Vpc
Id string The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- Vswitch
Id string The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- Zone
Id string The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- protocol
Type String The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- storage
Type String The storage type of the file System.
- Valid values:
- capacity Integer
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- description String
The File System description.
- encrypt
Type Integer Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- file
System StringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- kms
Key StringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- Map<String,Object>
A mapping of tags to assign to the resource.
- vpc
Id String The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- vswitch
Id String The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- zone
Id String The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- protocol
Type string The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- storage
Type string The storage type of the file System.
- Valid values:
- capacity number
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- description string
The File System description.
- encrypt
Type number Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- file
System stringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- kms
Key stringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- {[key: string]: any}
A mapping of tags to assign to the resource.
- vpc
Id string The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- vswitch
Id string The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- zone
Id string The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- protocol_
type str The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- storage_
type str The storage type of the file System.
- Valid values:
- capacity int
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- description str
The File System description.
- encrypt_
type int Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- file_
system_ strtype the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- kms_
key_ strid The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- Mapping[str, Any]
A mapping of tags to assign to the resource.
- vpc_
id str The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- vswitch_
id str The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- zone_
id str The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- protocol
Type String The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- storage
Type String The storage type of the file System.
- Valid values:
- capacity Number
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- description String
The File System description.
- encrypt
Type Number Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- file
System StringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- kms
Key StringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- Map<Any>
A mapping of tags to assign to the resource.
- vpc
Id String The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- vswitch
Id String The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- zone
Id String The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileSystem resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
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,
description: Optional[str] = None,
encrypt_type: Optional[int] = None,
file_system_type: Optional[str] = None,
kms_key_id: Optional[str] = None,
protocol_type: Optional[str] = None,
storage_type: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = 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)
Resource lookup is not supported in YAML
- 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. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- Description string
The File System description.
- Encrypt
Type int Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- File
System stringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- Kms
Key stringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- Protocol
Type string The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- Storage
Type string The storage type of the file System.
- Valid values:
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Vpc
Id string The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- Vswitch
Id string The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- Zone
Id string The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- Capacity int
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- Description string
The File System description.
- Encrypt
Type int Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- File
System stringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- Kms
Key stringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- Protocol
Type string The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- Storage
Type string The storage type of the file System.
- Valid values:
- map[string]interface{}
A mapping of tags to assign to the resource.
- Vpc
Id string The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- Vswitch
Id string The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- Zone
Id string The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- capacity Integer
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- description String
The File System description.
- encrypt
Type Integer Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- file
System StringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- kms
Key StringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- protocol
Type String The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- storage
Type String The storage type of the file System.
- Valid values:
- Map<String,Object>
A mapping of tags to assign to the resource.
- vpc
Id String The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- vswitch
Id String The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- zone
Id String The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- capacity number
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- description string
The File System description.
- encrypt
Type number Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- file
System stringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- kms
Key stringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- protocol
Type string The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- storage
Type string The storage type of the file System.
- Valid values:
- {[key: string]: any}
A mapping of tags to assign to the resource.
- vpc
Id string The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- vswitch
Id string The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- zone
Id string The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- capacity int
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- description str
The File System description.
- encrypt_
type int Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- file_
system_ strtype the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- kms_
key_ strid The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- protocol_
type str The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- storage_
type str The storage type of the file System.
- Valid values:
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- vpc_
id str The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- vswitch_
id str The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- zone_
id str The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
- capacity Number
The capacity of the file system. The
capacity
is required when thefile_system_type
isextreme
. Unit: gib; Note: The minimum value is 100.- description String
The File System description.
- encrypt
Type Number Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.
- Valid values:
- file
System StringType the type of the file system. Valid values:
standard
(Default),extreme
,cpfs
.- kms
Key StringId The id of the KMS key. The
kms_key_id
is required when theencrypt_type
is2
.- protocol
Type String The protocol type of the file system. Valid values:
NFS
,SMB
(Available when thefile_system_type
isstandard
),cpfs
(Available when thefile_system_type
iscpfs
).- storage
Type String The storage type of the file System.
- Valid values:
- Map<Any>
A mapping of tags to assign to the resource.
- vpc
Id String The id of the VPC. The
vpc_id
is required when thefile_system_type
iscpfs
.- vswitch
Id String The id of the vSwitch. The
vswitch_id
is required when thefile_system_type
iscpfs
.- zone
Id String The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the
protocol_type
andstorage_type
configuration.
Import
Nas File System can be imported using the id, e.g.
$ pulumi import alicloud:nas/fileSystem:FileSystem foo 1337849c59
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.