Class MountTarget
Provides a Nas Mount Target resource.
NOTE: Available in v1.34.0+.
NOTE: Currently this resource support create a mount point in a classic network only when current region is China mainland regions.
NOTE: You must grant NAS with specific RAM permissions when creating a classic mount targets, and it only can be achieved by creating a classic mount target mannually. See Add a mount point and Why do I need RAM permissions to create a mount point in a classic network.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var fooFileSystem = new AliCloud.Nas.FileSystem("fooFileSystem", new AliCloud.Nas.FileSystemArgs
{
Description = "tf-testAccNasConfigFs",
ProtocolType = "NFS",
StorageType = "Performance",
});
var fooAccessGroup = new AliCloud.Nas.AccessGroup("fooAccessGroup", new AliCloud.Nas.AccessGroupArgs
{
Description = "tf-testAccNasConfig",
Type = "Classic",
});
var bar = new AliCloud.Nas.AccessGroup("bar", new AliCloud.Nas.AccessGroupArgs
{
Description = "tf-testAccNasConfig-2",
Type = "Classic",
});
var fooMountTarget = new AliCloud.Nas.MountTarget("fooMountTarget", new AliCloud.Nas.MountTargetArgs
{
AccessGroupName = fooAccessGroup.Id,
FileSystemId = fooFileSystem.Id,
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Nas
Assembly: Pulumi.AliCloud.dll
Syntax
public class MountTarget : CustomResource
Constructors
View SourceMountTarget(String, MountTargetArgs, CustomResourceOptions)
Create a MountTarget resource with the given unique name, arguments, and options.
Declaration
public MountTarget(string name, MountTargetArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| MountTargetArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccessGroupName
Permission group name.
Declaration
public Output<string> AccessGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FileSystemId
File system ID.
Declaration
public Output<string> FileSystemId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VswitchId
VSwitch ID.
Declaration
public Output<string> VswitchId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, MountTargetState, CustomResourceOptions)
Get an existing MountTarget resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static MountTarget Get(string name, Input<string> id, MountTargetState 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. |
| MountTargetState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| MountTarget |