Class 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
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var foo = new AliCloud.Nas.FileSystem("foo", new AliCloud.Nas.FileSystemArgs
{
Description = "tf-testAccNasConfig",
ProtocolType = "NFS",
StorageType = "Performance",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Nas
Assembly: Pulumi.AliCloud.dll
Syntax
public class FileSystem : CustomResource
Constructors
View SourceFileSystem(String, FileSystemArgs, CustomResourceOptions)
Create a FileSystem resource with the given unique name, arguments, and options.
Declaration
public FileSystem(string name, FileSystemArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FileSystemArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDescription
The File System description.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProtocolType
The Protocol Type of a File System. Valid values: NFS and SMB.
Declaration
public Output<string> ProtocolType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StorageType
The Storage Type of a File System. Valid values: Capacity and Performance.
Declaration
public Output<string> StorageType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, FileSystemState, CustomResourceOptions)
Get an existing FileSystem resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static FileSystem Get(string name, Input<string> id, FileSystemState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| FileSystemState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| FileSystem |