Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
MountTarget
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Nas
Assembly: Pulumi.AliCloud.dll
Syntax
public class MountTarget : CustomResource

Constructors

View Source

MountTarget(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 Source

AccessGroupName

Permission group name.

Declaration
public Output<string> AccessGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

FileSystemId

File system ID.

Declaration
public Output<string> FileSystemId { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

VswitchId

VSwitch ID.

Declaration
public Output<string> VswitchId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.