Show / Hide Table of Contents

Class AccessRule

Provides a Nas Access Rule resource.

When NAS is activated, the Default VPC Permission Group is automatically generated. It allows all IP addresses in a VPC to access the mount point with full permissions. Full permissions include Read/Write permission with no restriction on root users.

NOTE: Available in v1.34.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var fooAccessGroup = new AliCloud.Nas.AccessGroup("fooAccessGroup", new AliCloud.Nas.AccessGroupArgs
    {
        Description = "tf-testAccNasConfig",
        Type = "Vpc",
    });
    var fooAccessRule = new AliCloud.Nas.AccessRule("fooAccessRule", new AliCloud.Nas.AccessRuleArgs
    {
        AccessGroupName = fooAccessGroup.Id,
        Priority = 2,
        RwAccessType = "RDWR",
        SourceCidrIp = "168.1.1.0/16",
        UserAccessType = "no_squash",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AccessRule
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 AccessRule : CustomResource

Constructors

View Source

AccessRule(String, AccessRuleArgs, CustomResourceOptions)

Create a AccessRule resource with the given unique name, arguments, and options.

Declaration
public AccessRule(string name, AccessRuleArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

AccessRuleArgs 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

AccessRuleId

The nas access rule ID.

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

Priority

Priority level. Range: 1-100. Default value: 1.

Declaration
public Output<int?> Priority { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

RwAccessType

Read-write permission type: RDWR (default), RDONLY.

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

SourceCidrIp

Address or address segment.

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

UserAccessType

User permission type: no_squash (default), root_squash, all_squash.

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

Methods

View Source

Get(String, Input<String>, AccessRuleState, CustomResourceOptions)

Get an existing AccessRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static AccessRule Get(string name, Input<string> id, AccessRuleState 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.

AccessRuleState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
AccessRule
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.