Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getAccessRules

This data source provides AccessRule available to the user.

NOTE: Available in 1.35.0+

Example Usage

Coming soon!

Coming soon!

Coming soon!

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const foo = pulumi.output(alicloud.nas.getAccessRules({
    accessGroupName: "tf-testAccAccessGroupsdatasource",
    rwAccess: "RDWR",
    sourceCidrIp: "168.1.1.0/16",
    userAccess: "no_squash",
}));

export const alicloudNasAccessRulesId = foo.rules[0].id;

Coming soon!

Using getAccessRules

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAccessRules(args: GetAccessRulesArgs, opts?: InvokeOptions): Promise<GetAccessRulesResult>
function getAccessRulesOutput(args: GetAccessRulesOutputArgs, opts?: InvokeOptions): Output<GetAccessRulesResult>
def get_access_rules(access_group_name: Optional[str] = None,
                     ids: Optional[Sequence[str]] = None,
                     output_file: Optional[str] = None,
                     rw_access: Optional[str] = None,
                     source_cidr_ip: Optional[str] = None,
                     user_access: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAccessRulesResult
def get_access_rules_output(access_group_name: Optional[pulumi.Input[str]] = None,
                     ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     output_file: Optional[pulumi.Input[str]] = None,
                     rw_access: Optional[pulumi.Input[str]] = None,
                     source_cidr_ip: Optional[pulumi.Input[str]] = None,
                     user_access: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAccessRulesResult]
func GetAccessRules(ctx *Context, args *GetAccessRulesArgs, opts ...InvokeOption) (*GetAccessRulesResult, error)
func GetAccessRulesOutput(ctx *Context, args *GetAccessRulesOutputArgs, opts ...InvokeOption) GetAccessRulesResultOutput

> Note: This function is named GetAccessRules in the Go SDK.

public static class GetAccessRules 
{
    public static Task<GetAccessRulesResult> InvokeAsync(GetAccessRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetAccessRulesResult> Invoke(GetAccessRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccessRulesResult> getAccessRules(GetAccessRulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:nas/getAccessRules:getAccessRules
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AccessGroupName string

Filter results by a specific AccessGroupName.

Ids List<string>

A list of rule IDs.

OutputFile string
RwAccess string

Filter results by a specific RWAccess.

SourceCidrIp string

Filter results by a specific SourceCidrIp.

UserAccess string

Filter results by a specific UserAccess.

AccessGroupName string

Filter results by a specific AccessGroupName.

Ids []string

A list of rule IDs.

OutputFile string
RwAccess string

Filter results by a specific RWAccess.

SourceCidrIp string

Filter results by a specific SourceCidrIp.

UserAccess string

Filter results by a specific UserAccess.

accessGroupName String

Filter results by a specific AccessGroupName.

ids List<String>

A list of rule IDs.

outputFile String
rwAccess String

Filter results by a specific RWAccess.

sourceCidrIp String

Filter results by a specific SourceCidrIp.

userAccess String

Filter results by a specific UserAccess.

accessGroupName string

Filter results by a specific AccessGroupName.

ids string[]

A list of rule IDs.

outputFile string
rwAccess string

Filter results by a specific RWAccess.

sourceCidrIp string

Filter results by a specific SourceCidrIp.

userAccess string

Filter results by a specific UserAccess.

access_group_name str

Filter results by a specific AccessGroupName.

ids Sequence[str]

A list of rule IDs.

output_file str
rw_access str

Filter results by a specific RWAccess.

source_cidr_ip str

Filter results by a specific SourceCidrIp.

user_access str

Filter results by a specific UserAccess.

accessGroupName String

Filter results by a specific AccessGroupName.

ids List<String>

A list of rule IDs.

outputFile String
rwAccess String

Filter results by a specific RWAccess.

sourceCidrIp String

Filter results by a specific SourceCidrIp.

userAccess String

Filter results by a specific UserAccess.

getAccessRules Result

The following output properties are available:

AccessGroupName string
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of rule IDs, Each element set to access_rule_id (Each element formats as <access_group_name>:<access_rule_id> before 1.53.0).

Rules List<Pulumi.AliCloud.Nas.Outputs.GetAccessRulesRule>

A list of AccessRules. Each element contains the following attributes:

OutputFile string
RwAccess string

RWAccess of the AccessRule.

SourceCidrIp string

SourceCidrIp of the AccessRule.

UserAccess string

UserAccess of the AccessRule

AccessGroupName string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of rule IDs, Each element set to access_rule_id (Each element formats as <access_group_name>:<access_rule_id> before 1.53.0).

Rules []GetAccessRulesRule

A list of AccessRules. Each element contains the following attributes:

OutputFile string
RwAccess string

RWAccess of the AccessRule.

SourceCidrIp string

SourceCidrIp of the AccessRule.

UserAccess string

UserAccess of the AccessRule

accessGroupName String
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of rule IDs, Each element set to access_rule_id (Each element formats as <access_group_name>:<access_rule_id> before 1.53.0).

rules List<GetAccessRulesRule>

A list of AccessRules. Each element contains the following attributes:

outputFile String
rwAccess String

RWAccess of the AccessRule.

sourceCidrIp String

SourceCidrIp of the AccessRule.

userAccess String

UserAccess of the AccessRule

accessGroupName string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of rule IDs, Each element set to access_rule_id (Each element formats as <access_group_name>:<access_rule_id> before 1.53.0).

rules GetAccessRulesRule[]

A list of AccessRules. Each element contains the following attributes:

outputFile string
rwAccess string

RWAccess of the AccessRule.

sourceCidrIp string

SourceCidrIp of the AccessRule.

userAccess string

UserAccess of the AccessRule

access_group_name str
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of rule IDs, Each element set to access_rule_id (Each element formats as <access_group_name>:<access_rule_id> before 1.53.0).

rules Sequence[GetAccessRulesRule]

A list of AccessRules. Each element contains the following attributes:

output_file str
rw_access str

RWAccess of the AccessRule.

source_cidr_ip str

SourceCidrIp of the AccessRule.

user_access str

UserAccess of the AccessRule

accessGroupName String
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of rule IDs, Each element set to access_rule_id (Each element formats as <access_group_name>:<access_rule_id> before 1.53.0).

rules List<Property Map>

A list of AccessRules. Each element contains the following attributes:

outputFile String
rwAccess String

RWAccess of the AccessRule.

sourceCidrIp String

SourceCidrIp of the AccessRule.

userAccess String

UserAccess of the AccessRule

Supporting Types

GetAccessRulesRule

AccessRuleId string

AccessRuleId of the AccessRule.

Priority int

Priority of the AccessRule.

RwAccess string

Filter results by a specific RWAccess.

SourceCidrIp string

Filter results by a specific SourceCidrIp.

UserAccess string

Filter results by a specific UserAccess.

AccessRuleId string

AccessRuleId of the AccessRule.

Priority int

Priority of the AccessRule.

RwAccess string

Filter results by a specific RWAccess.

SourceCidrIp string

Filter results by a specific SourceCidrIp.

UserAccess string

Filter results by a specific UserAccess.

accessRuleId String

AccessRuleId of the AccessRule.

priority Integer

Priority of the AccessRule.

rwAccess String

Filter results by a specific RWAccess.

sourceCidrIp String

Filter results by a specific SourceCidrIp.

userAccess String

Filter results by a specific UserAccess.

accessRuleId string

AccessRuleId of the AccessRule.

priority number

Priority of the AccessRule.

rwAccess string

Filter results by a specific RWAccess.

sourceCidrIp string

Filter results by a specific SourceCidrIp.

userAccess string

Filter results by a specific UserAccess.

access_rule_id str

AccessRuleId of the AccessRule.

priority int

Priority of the AccessRule.

rw_access str

Filter results by a specific RWAccess.

source_cidr_ip str

Filter results by a specific SourceCidrIp.

user_access str

Filter results by a specific UserAccess.

accessRuleId String

AccessRuleId of the AccessRule.

priority Number

Priority of the AccessRule.

rwAccess String

Filter results by a specific RWAccess.

sourceCidrIp String

Filter results by a specific SourceCidrIp.

userAccess String

Filter results by a specific UserAccess.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.