1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. nas
  5. getAccessRules
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.nas.getAccessRules

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides AccessRule available to the user.

    NOTE: Available in 1.35.0+

    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    File name where to save data source results (after running pulumi preview).
    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
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi