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,
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
foo_file_system = alicloud.nas.FileSystem("fooFileSystem",
description="tf-testAccNasConfigFs",
protocol_type="NFS",
storage_type="Performance")
foo_access_group = alicloud.nas.AccessGroup("fooAccessGroup",
description="tf-testAccNasConfig",
type="Classic")
bar = alicloud.nas.AccessGroup("bar",
description="tf-testAccNasConfig-2",
type="Classic")
foo_mount_target = alicloud.nas.MountTarget("fooMountTarget",
access_group_name=foo_access_group.id,
file_system_id=foo_file_system.id)import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const fooFileSystem = new alicloud.nas.FileSystem("foo", {
description: "tf-testAccNasConfigFs",
protocolType: "NFS",
storageType: "Performance",
});
const fooAccessGroup = new alicloud.nas.AccessGroup("foo", {
description: "tf-testAccNasConfig",
type: "Classic",
});
const bar = new alicloud.nas.AccessGroup("bar", {
description: "tf-testAccNasConfig-2",
type: "Classic",
});
const fooMountTarget = new alicloud.nas.MountTarget("foo", {
accessGroupName: fooAccessGroup.id,
fileSystemId: fooFileSystem.id,
});Create a MountTarget Resource
new MountTarget(name: string, args: MountTargetArgs, opts?: CustomResourceOptions);def MountTarget(resource_name, opts=None, access_group_name=None, file_system_id=None, status=None, vswitch_id=None, __props__=None);func NewMountTarget(ctx *Context, name string, args MountTargetArgs, opts ...ResourceOption) (*MountTarget, error)public MountTarget(string name, MountTargetArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args MountTargetArgs
- 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 MountTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MountTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
MountTarget Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The MountTarget resource accepts the following input properties:
- Access
Group stringName Permission group name.
- File
System stringId File system ID.
- Status string
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
- Vswitch
Id string VSwitch ID.
- Access
Group stringName Permission group name.
- File
System stringId File system ID.
- Status string
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
- Vswitch
Id string VSwitch ID.
- access
Group stringName Permission group name.
- file
System stringId File system ID.
- status string
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
- vswitch
Id string VSwitch ID.
- access_
group_ strname Permission group name.
- file_
system_ strid File system ID.
- status str
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
- vswitch_
id str VSwitch ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the MountTarget resource produces the following output properties:
Look up an Existing MountTarget Resource
Get an existing MountTarget 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?: MountTargetState, opts?: CustomResourceOptions): MountTargetstatic get(resource_name, id, opts=None, access_group_name=None, file_system_id=None, status=None, vswitch_id=None, __props__=None);func GetMountTarget(ctx *Context, name string, id IDInput, state *MountTargetState, opts ...ResourceOption) (*MountTarget, error)public static MountTarget Get(string name, Input<string> id, MountTargetState? 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:
- Access
Group stringName Permission group name.
- File
System stringId File system ID.
- Status string
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
- Vswitch
Id string VSwitch ID.
- Access
Group stringName Permission group name.
- File
System stringId File system ID.
- Status string
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
- Vswitch
Id string VSwitch ID.
- access
Group stringName Permission group name.
- file
System stringId File system ID.
- status string
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
- vswitch
Id string VSwitch ID.
- access_
group_ strname Permission group name.
- file_
system_ strid File system ID.
- status str
Whether the MountTarget is active. An inactive MountTarget is inusable. Valid values are Active(default) and Inactive.
- vswitch_
id str VSwitch ID.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.