Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.nas.getAccessRules
Explore with Pulumi AI
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:
- Access
Group stringName - Filter results by a specific AccessGroupName.
- Ids List<string>
- A list of rule IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Rw
Access string - Filter results by a specific RWAccess.
- Source
Cidr stringIp - Filter results by a specific SourceCidrIp.
- User
Access string - Filter results by a specific UserAccess.
- Access
Group stringName - Filter results by a specific AccessGroupName.
- Ids []string
- A list of rule IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Rw
Access string - Filter results by a specific RWAccess.
- Source
Cidr stringIp - Filter results by a specific SourceCidrIp.
- User
Access string - Filter results by a specific UserAccess.
- access
Group StringName - Filter results by a specific AccessGroupName.
- ids List<String>
- A list of rule IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - rw
Access String - Filter results by a specific RWAccess.
- source
Cidr StringIp - Filter results by a specific SourceCidrIp.
- user
Access String - Filter results by a specific UserAccess.
- access
Group stringName - Filter results by a specific AccessGroupName.
- ids string[]
- A list of rule IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - rw
Access string - Filter results by a specific RWAccess.
- source
Cidr stringIp - Filter results by a specific SourceCidrIp.
- user
Access string - Filter results by a specific UserAccess.
- access_
group_ strname - 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_ strip - Filter results by a specific SourceCidrIp.
- user_
access str - Filter results by a specific UserAccess.
- access
Group StringName - Filter results by a specific AccessGroupName.
- ids List<String>
- A list of rule IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - rw
Access String - Filter results by a specific RWAccess.
- source
Cidr StringIp - Filter results by a specific SourceCidrIp.
- user
Access String - Filter results by a specific UserAccess.
getAccessRules Result
The following output properties are available:
- Access
Group stringName - 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.
Ali Cloud. Nas. Outputs. Get Access Rules Rule> - A list of AccessRules. Each element contains the following attributes:
- Output
File string - Rw
Access string - RWAccess of the AccessRule.
- Source
Cidr stringIp - SourceCidrIp of the AccessRule.
- User
Access string - UserAccess of the AccessRule
- Access
Group stringName - 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
[]Get
Access Rules Rule - A list of AccessRules. Each element contains the following attributes:
- Output
File string - Rw
Access string - RWAccess of the AccessRule.
- Source
Cidr stringIp - SourceCidrIp of the AccessRule.
- User
Access string - UserAccess of the AccessRule
- access
Group StringName - 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<Get
Access Rules Rule> - A list of AccessRules. Each element contains the following attributes:
- output
File String - rw
Access String - RWAccess of the AccessRule.
- source
Cidr StringIp - SourceCidrIp of the AccessRule.
- user
Access String - UserAccess of the AccessRule
- access
Group stringName - 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
Get
Access Rules Rule[] - A list of AccessRules. Each element contains the following attributes:
- output
File string - rw
Access string - RWAccess of the AccessRule.
- source
Cidr stringIp - SourceCidrIp of the AccessRule.
- user
Access string - UserAccess of the AccessRule
- access_
group_ strname - 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[Get
Access Rules Rule] - A list of AccessRules. Each element contains the following attributes:
- output_
file str - rw_
access str - RWAccess of the AccessRule.
- source_
cidr_ strip - SourceCidrIp of the AccessRule.
- user_
access str - UserAccess of the AccessRule
- access
Group StringName - 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:
- output
File String - rw
Access String - RWAccess of the AccessRule.
- source
Cidr StringIp - SourceCidrIp of the AccessRule.
- user
Access String - UserAccess of the AccessRule
Supporting Types
GetAccessRulesRule
- Access
Rule stringId - AccessRuleId of the AccessRule.
- Priority int
- Priority of the AccessRule.
- Rw
Access string - Filter results by a specific RWAccess.
- Source
Cidr stringIp - Filter results by a specific SourceCidrIp.
- User
Access string - Filter results by a specific UserAccess.
- Access
Rule stringId - AccessRuleId of the AccessRule.
- Priority int
- Priority of the AccessRule.
- Rw
Access string - Filter results by a specific RWAccess.
- Source
Cidr stringIp - Filter results by a specific SourceCidrIp.
- User
Access string - Filter results by a specific UserAccess.
- access
Rule StringId - AccessRuleId of the AccessRule.
- priority Integer
- Priority of the AccessRule.
- rw
Access String - Filter results by a specific RWAccess.
- source
Cidr StringIp - Filter results by a specific SourceCidrIp.
- user
Access String - Filter results by a specific UserAccess.
- access
Rule stringId - AccessRuleId of the AccessRule.
- priority number
- Priority of the AccessRule.
- rw
Access string - Filter results by a specific RWAccess.
- source
Cidr stringIp - Filter results by a specific SourceCidrIp.
- user
Access string - Filter results by a specific UserAccess.
- access_
rule_ strid - AccessRuleId of the AccessRule.
- priority int
- Priority of the AccessRule.
- rw_
access str - Filter results by a specific RWAccess.
- source_
cidr_ strip - Filter results by a specific SourceCidrIp.
- user_
access str - Filter results by a specific UserAccess.
- access
Rule StringId - AccessRuleId of the AccessRule.
- priority Number
- Priority of the AccessRule.
- rw
Access String - Filter results by a specific RWAccess.
- source
Cidr StringIp - Filter results by a specific SourceCidrIp.
- user
Access 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.