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",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Nas
Assembly: Pulumi.AliCloud.dll
Syntax
public class AccessRule : CustomResource
Constructors
View SourceAccessRule(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 SourceAccessGroupName
Permission group name.
Declaration
public Output<string> AccessGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AccessRuleId
The nas access rule ID.
Declaration
public Output<string> AccessRuleId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Priority
Priority level. Range: 1-100. Default value: 1.
Declaration
public Output<int?> Priority { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
RwAccessType
Read-write permission type: RDWR (default), RDONLY.
Declaration
public Output<string> RwAccessType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourceCidrIp
Address or address segment.
Declaration
public Output<string> SourceCidrIp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |