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",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.nas.FileSystem("foo",
description="tf-testAccNasConfig",
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",
protocolType: "NFS",
storageType: "Performance",
});Create a FileSystem Resource
new FileSystem(name: string, args: FileSystemArgs, opts?: CustomResourceOptions);def FileSystem(resource_name, opts=None, description=None, protocol_type=None, storage_type=None, __props__=None);func NewFileSystem(ctx *Context, name string, args FileSystemArgs, opts ...ResourceOption) (*FileSystem, error)public FileSystem(string name, FileSystemArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
FileSystem Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The FileSystem resource accepts the following input properties:
- Protocol
Type string The Protocol Type of a File System. Valid values:
NFSandSMB.- Storage
Type string The Storage Type of a File System. Valid values:
CapacityandPerformance.- Description string
The File System description.
- Protocol
Type string The Protocol Type of a File System. Valid values:
NFSandSMB.- Storage
Type string The Storage Type of a File System. Valid values:
CapacityandPerformance.- Description string
The File System description.
- protocol
Type string The Protocol Type of a File System. Valid values:
NFSandSMB.- storage
Type string The Storage Type of a File System. Valid values:
CapacityandPerformance.- description string
The File System description.
- protocol_
type str The Protocol Type of a File System. Valid values:
NFSandSMB.- storage_
type str The Storage Type of a File System. Valid values:
CapacityandPerformance.- description str
The File System description.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileSystem resource produces the following output properties:
Look up an 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): FileSystemstatic get(resource_name, id, opts=None, description=None, protocol_type=None, storage_type=None, __props__=None);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)- 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.
The following state arguments are supported:
- Description string
The File System description.
- Protocol
Type string The Protocol Type of a File System. Valid values:
NFSandSMB.- Storage
Type string The Storage Type of a File System. Valid values:
CapacityandPerformance.
- Description string
The File System description.
- Protocol
Type string The Protocol Type of a File System. Valid values:
NFSandSMB.- Storage
Type string The Storage Type of a File System. Valid values:
CapacityandPerformance.
- description string
The File System description.
- protocol
Type string The Protocol Type of a File System. Valid values:
NFSandSMB.- storage
Type string The Storage Type of a File System. Valid values:
CapacityandPerformance.
- description str
The File System description.
- protocol_
type str The Protocol Type of a File System. Valid values:
NFSandSMB.- storage_
type str The Storage Type of a File System. Valid values:
CapacityandPerformance.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.