1. Packages
  2. Azure Native
  3. API Docs
  4. redis
  5. getRedisFirewallRule
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

azure-native.redis.getRedisFirewallRule

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

    Gets a single firewall rule in a specified redis cache.

    Uses Azure REST API version 2016-04-01.

    Using getRedisFirewallRule

    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 getRedisFirewallRule(args: GetRedisFirewallRuleArgs, opts?: InvokeOptions): Promise<GetRedisFirewallRuleResult>
    function getRedisFirewallRuleOutput(args: GetRedisFirewallRuleOutputArgs, opts?: InvokeOptions): Output<GetRedisFirewallRuleResult>
    def get_redis_firewall_rule(cache_name: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                rule_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetRedisFirewallRuleResult
    def get_redis_firewall_rule_output(cache_name: Optional[pulumi.Input[str]] = None,
                                resource_group_name: Optional[pulumi.Input[str]] = None,
                                rule_name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetRedisFirewallRuleResult]
    func LookupRedisFirewallRule(ctx *Context, args *LookupRedisFirewallRuleArgs, opts ...InvokeOption) (*LookupRedisFirewallRuleResult, error)
    func LookupRedisFirewallRuleOutput(ctx *Context, args *LookupRedisFirewallRuleOutputArgs, opts ...InvokeOption) LookupRedisFirewallRuleResultOutput

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

    public static class GetRedisFirewallRule 
    {
        public static Task<GetRedisFirewallRuleResult> InvokeAsync(GetRedisFirewallRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetRedisFirewallRuleResult> Invoke(GetRedisFirewallRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRedisFirewallRuleResult> getRedisFirewallRule(GetRedisFirewallRuleArgs args, InvokeOptions options)
    public static Output<GetRedisFirewallRuleResult> getRedisFirewallRule(GetRedisFirewallRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:redis:getRedisFirewallRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CacheName string
    The name of the Redis cache.
    ResourceGroupName string
    The name of the resource group.
    RuleName string
    The name of the firewall rule.
    CacheName string
    The name of the Redis cache.
    ResourceGroupName string
    The name of the resource group.
    RuleName string
    The name of the firewall rule.
    cacheName String
    The name of the Redis cache.
    resourceGroupName String
    The name of the resource group.
    ruleName String
    The name of the firewall rule.
    cacheName string
    The name of the Redis cache.
    resourceGroupName string
    The name of the resource group.
    ruleName string
    The name of the firewall rule.
    cache_name str
    The name of the Redis cache.
    resource_group_name str
    The name of the resource group.
    rule_name str
    The name of the firewall rule.
    cacheName String
    The name of the Redis cache.
    resourceGroupName String
    The name of the resource group.
    ruleName String
    The name of the firewall rule.

    getRedisFirewallRule Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    EndIP string
    highest IP address included in the range
    Id string
    resource ID (of the firewall rule)
    Name string
    name of the firewall rule
    StartIP string
    lowest IP address included in the range
    Type string
    type (of the firewall rule resource = 'Microsoft.Cache/redis/firewallRule')
    AzureApiVersion string
    The Azure API version of the resource.
    EndIP string
    highest IP address included in the range
    Id string
    resource ID (of the firewall rule)
    Name string
    name of the firewall rule
    StartIP string
    lowest IP address included in the range
    Type string
    type (of the firewall rule resource = 'Microsoft.Cache/redis/firewallRule')
    azureApiVersion String
    The Azure API version of the resource.
    endIP String
    highest IP address included in the range
    id String
    resource ID (of the firewall rule)
    name String
    name of the firewall rule
    startIP String
    lowest IP address included in the range
    type String
    type (of the firewall rule resource = 'Microsoft.Cache/redis/firewallRule')
    azureApiVersion string
    The Azure API version of the resource.
    endIP string
    highest IP address included in the range
    id string
    resource ID (of the firewall rule)
    name string
    name of the firewall rule
    startIP string
    lowest IP address included in the range
    type string
    type (of the firewall rule resource = 'Microsoft.Cache/redis/firewallRule')
    azure_api_version str
    The Azure API version of the resource.
    end_ip str
    highest IP address included in the range
    id str
    resource ID (of the firewall rule)
    name str
    name of the firewall rule
    start_ip str
    lowest IP address included in the range
    type str
    type (of the firewall rule resource = 'Microsoft.Cache/redis/firewallRule')
    azureApiVersion String
    The Azure API version of the resource.
    endIP String
    highest IP address included in the range
    id String
    resource ID (of the firewall rule)
    name String
    name of the firewall rule
    startIP String
    lowest IP address included in the range
    type String
    type (of the firewall rule resource = 'Microsoft.Cache/redis/firewallRule')

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi