1. Packages
  2. Auth0 Provider
  3. API Docs
  4. getNetworkAcl
Auth0 v3.19.1 published on Wednesday, Apr 30, 2025 by Pulumi

auth0.getNetworkAcl

Explore with Pulumi AI

auth0 logo
Auth0 v3.19.1 published on Wednesday, Apr 30, 2025 by Pulumi

    Data source to retrieve a specific Auth0 Network ACL by ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as auth0 from "@pulumi/auth0";
    
    // An Auth0 network acl loaded using its ID.
    const myNetworkAcl = auth0.getNetworkAcl({
        id: "167f9a50-4444-3333-1111-ndfdaf953ab4",
    });
    
    import pulumi
    import pulumi_auth0 as auth0
    
    # An Auth0 network acl loaded using its ID.
    my_network_acl = auth0.get_network_acl(id="167f9a50-4444-3333-1111-ndfdaf953ab4")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// An Auth0 network acl loaded using its ID.
    		_, err := auth0.LookupNetworkAcl(ctx, &auth0.LookupNetworkAclArgs{
    			Id: "167f9a50-4444-3333-1111-ndfdaf953ab4",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Auth0 = Pulumi.Auth0;
    
    return await Deployment.RunAsync(() => 
    {
        // An Auth0 network acl loaded using its ID.
        var myNetworkAcl = Auth0.GetNetworkAcl.Invoke(new()
        {
            Id = "167f9a50-4444-3333-1111-ndfdaf953ab4",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.auth0.Auth0Functions;
    import com.pulumi.auth0.inputs.GetNetworkAclArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // An Auth0 network acl loaded using its ID.
            final var myNetworkAcl = Auth0Functions.getNetworkAcl(GetNetworkAclArgs.builder()
                .id("167f9a50-4444-3333-1111-ndfdaf953ab4")
                .build());
    
        }
    }
    
    variables:
      # An Auth0 network acl loaded using its ID.
      myNetworkAcl:
        fn::invoke:
          function: auth0:getNetworkAcl
          arguments:
            id: 167f9a50-4444-3333-1111-ndfdaf953ab4
    

    Using getNetworkAcl

    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 getNetworkAcl(args: GetNetworkAclArgs, opts?: InvokeOptions): Promise<GetNetworkAclResult>
    function getNetworkAclOutput(args: GetNetworkAclOutputArgs, opts?: InvokeOptions): Output<GetNetworkAclResult>
    def get_network_acl(id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetNetworkAclResult
    def get_network_acl_output(id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetNetworkAclResult]
    func LookupNetworkAcl(ctx *Context, args *LookupNetworkAclArgs, opts ...InvokeOption) (*LookupNetworkAclResult, error)
    func LookupNetworkAclOutput(ctx *Context, args *LookupNetworkAclOutputArgs, opts ...InvokeOption) LookupNetworkAclResultOutput

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

    public static class GetNetworkAcl 
    {
        public static Task<GetNetworkAclResult> InvokeAsync(GetNetworkAclArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkAclResult> Invoke(GetNetworkAclInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkAclResult> getNetworkAcl(GetNetworkAclArgs args, InvokeOptions options)
    public static Output<GetNetworkAclResult> getNetworkAcl(GetNetworkAclArgs args, InvokeOptions options)
    
    fn::invoke:
      function: auth0:index/getNetworkAcl:getNetworkAcl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the Network ACL.
    Id string
    The ID of the Network ACL.
    id String
    The ID of the Network ACL.
    id string
    The ID of the Network ACL.
    id str
    The ID of the Network ACL.
    id String
    The ID of the Network ACL.

    getNetworkAcl Result

    The following output properties are available:

    Active bool
    Whether the Network ACL is active
    Description string
    The description of the Network ACL
    Id string
    The ID of the Network ACL.
    Priority int
    The priority of the Network ACL. Must be unique between 1 and 10.
    Rules List<GetNetworkAclRule>
    The rule of the Network ACL
    Active bool
    Whether the Network ACL is active
    Description string
    The description of the Network ACL
    Id string
    The ID of the Network ACL.
    Priority int
    The priority of the Network ACL. Must be unique between 1 and 10.
    Rules []GetNetworkAclRule
    The rule of the Network ACL
    active Boolean
    Whether the Network ACL is active
    description String
    The description of the Network ACL
    id String
    The ID of the Network ACL.
    priority Integer
    The priority of the Network ACL. Must be unique between 1 and 10.
    rules List<GetNetworkAclRule>
    The rule of the Network ACL
    active boolean
    Whether the Network ACL is active
    description string
    The description of the Network ACL
    id string
    The ID of the Network ACL.
    priority number
    The priority of the Network ACL. Must be unique between 1 and 10.
    rules GetNetworkAclRule[]
    The rule of the Network ACL
    active bool
    Whether the Network ACL is active
    description str
    The description of the Network ACL
    id str
    The ID of the Network ACL.
    priority int
    The priority of the Network ACL. Must be unique between 1 and 10.
    rules Sequence[GetNetworkAclRule]
    The rule of the Network ACL
    active Boolean
    Whether the Network ACL is active
    description String
    The description of the Network ACL
    id String
    The ID of the Network ACL.
    priority Number
    The priority of the Network ACL. Must be unique between 1 and 10.
    rules List<Property Map>
    The rule of the Network ACL

    Supporting Types

    GetNetworkAclRule

    Actions List<GetNetworkAclRuleAction>
    The action configuration for the Network ACL Rule. Only one action type (block, allow, log, or redirect) should be specified.
    Matches List<GetNetworkAclRuleMatch>
    The configuration for the Network ACL Rule
    NotMatches List<GetNetworkAclRuleNotMatch>
    The configuration for the Network ACL Rule
    Scope string
    The scope of the Network ACL Rule
    Actions []GetNetworkAclRuleAction
    The action configuration for the Network ACL Rule. Only one action type (block, allow, log, or redirect) should be specified.
    Matches []GetNetworkAclRuleMatch
    The configuration for the Network ACL Rule
    NotMatches []GetNetworkAclRuleNotMatch
    The configuration for the Network ACL Rule
    Scope string
    The scope of the Network ACL Rule
    actions List<GetNetworkAclRuleAction>
    The action configuration for the Network ACL Rule. Only one action type (block, allow, log, or redirect) should be specified.
    matches List<GetNetworkAclRuleMatch>
    The configuration for the Network ACL Rule
    notMatches List<GetNetworkAclRuleNotMatch>
    The configuration for the Network ACL Rule
    scope String
    The scope of the Network ACL Rule
    actions GetNetworkAclRuleAction[]
    The action configuration for the Network ACL Rule. Only one action type (block, allow, log, or redirect) should be specified.
    matches GetNetworkAclRuleMatch[]
    The configuration for the Network ACL Rule
    notMatches GetNetworkAclRuleNotMatch[]
    The configuration for the Network ACL Rule
    scope string
    The scope of the Network ACL Rule
    actions Sequence[GetNetworkAclRuleAction]
    The action configuration for the Network ACL Rule. Only one action type (block, allow, log, or redirect) should be specified.
    matches Sequence[GetNetworkAclRuleMatch]
    The configuration for the Network ACL Rule
    not_matches Sequence[GetNetworkAclRuleNotMatch]
    The configuration for the Network ACL Rule
    scope str
    The scope of the Network ACL Rule
    actions List<Property Map>
    The action configuration for the Network ACL Rule. Only one action type (block, allow, log, or redirect) should be specified.
    matches List<Property Map>
    The configuration for the Network ACL Rule
    notMatches List<Property Map>
    The configuration for the Network ACL Rule
    scope String
    The scope of the Network ACL Rule

    GetNetworkAclRuleAction

    Allow bool
    If true, allows the request. When using allow action, no other properties should be set.
    Block bool
    If true, blocks the request. When using block action, no other properties should be set.
    Log bool
    If true, logs the request. When using log action, no other properties should be set.
    Redirect bool
    If true, redirects the request. When using redirect action, redirect_uri must also be specified.
    RedirectUri string
    The URI to redirect to when redirect is true. Required when redirect is true. Must be between 1 and 2000 characters.
    Allow bool
    If true, allows the request. When using allow action, no other properties should be set.
    Block bool
    If true, blocks the request. When using block action, no other properties should be set.
    Log bool
    If true, logs the request. When using log action, no other properties should be set.
    Redirect bool
    If true, redirects the request. When using redirect action, redirect_uri must also be specified.
    RedirectUri string
    The URI to redirect to when redirect is true. Required when redirect is true. Must be between 1 and 2000 characters.
    allow Boolean
    If true, allows the request. When using allow action, no other properties should be set.
    block Boolean
    If true, blocks the request. When using block action, no other properties should be set.
    log Boolean
    If true, logs the request. When using log action, no other properties should be set.
    redirect Boolean
    If true, redirects the request. When using redirect action, redirect_uri must also be specified.
    redirectUri String
    The URI to redirect to when redirect is true. Required when redirect is true. Must be between 1 and 2000 characters.
    allow boolean
    If true, allows the request. When using allow action, no other properties should be set.
    block boolean
    If true, blocks the request. When using block action, no other properties should be set.
    log boolean
    If true, logs the request. When using log action, no other properties should be set.
    redirect boolean
    If true, redirects the request. When using redirect action, redirect_uri must also be specified.
    redirectUri string
    The URI to redirect to when redirect is true. Required when redirect is true. Must be between 1 and 2000 characters.
    allow bool
    If true, allows the request. When using allow action, no other properties should be set.
    block bool
    If true, blocks the request. When using block action, no other properties should be set.
    log bool
    If true, logs the request. When using log action, no other properties should be set.
    redirect bool
    If true, redirects the request. When using redirect action, redirect_uri must also be specified.
    redirect_uri str
    The URI to redirect to when redirect is true. Required when redirect is true. Must be between 1 and 2000 characters.
    allow Boolean
    If true, allows the request. When using allow action, no other properties should be set.
    block Boolean
    If true, blocks the request. When using block action, no other properties should be set.
    log Boolean
    If true, logs the request. When using log action, no other properties should be set.
    redirect Boolean
    If true, redirects the request. When using redirect action, redirect_uri must also be specified.
    redirectUri String
    The URI to redirect to when redirect is true. Required when redirect is true. Must be between 1 and 2000 characters.

    GetNetworkAclRuleMatch

    Asns List<int>
    ASNs. Must contain between 1 and 10 unique items.
    GeoCountryCodes List<string>
    Geo Country Codes. Must contain between 1 and 10 unique items.
    GeoSubdivisionCodes List<string>
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    Ipv4Cidrs List<string>
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    Ipv6Cidrs List<string>
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    Ja3Fingerprints List<string>
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    Ja4Fingerprints List<string>
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    UserAgents List<string>
    User Agents. Must contain between 1 and 10 unique items.
    Asns []int
    ASNs. Must contain between 1 and 10 unique items.
    GeoCountryCodes []string
    Geo Country Codes. Must contain between 1 and 10 unique items.
    GeoSubdivisionCodes []string
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    Ipv4Cidrs []string
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    Ipv6Cidrs []string
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    Ja3Fingerprints []string
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    Ja4Fingerprints []string
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    UserAgents []string
    User Agents. Must contain between 1 and 10 unique items.
    asns List<Integer>
    ASNs. Must contain between 1 and 10 unique items.
    geoCountryCodes List<String>
    Geo Country Codes. Must contain between 1 and 10 unique items.
    geoSubdivisionCodes List<String>
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    ipv4Cidrs List<String>
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    ipv6Cidrs List<String>
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    ja3Fingerprints List<String>
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    ja4Fingerprints List<String>
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    userAgents List<String>
    User Agents. Must contain between 1 and 10 unique items.
    asns number[]
    ASNs. Must contain between 1 and 10 unique items.
    geoCountryCodes string[]
    Geo Country Codes. Must contain between 1 and 10 unique items.
    geoSubdivisionCodes string[]
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    ipv4Cidrs string[]
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    ipv6Cidrs string[]
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    ja3Fingerprints string[]
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    ja4Fingerprints string[]
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    userAgents string[]
    User Agents. Must contain between 1 and 10 unique items.
    asns Sequence[int]
    ASNs. Must contain between 1 and 10 unique items.
    geo_country_codes Sequence[str]
    Geo Country Codes. Must contain between 1 and 10 unique items.
    geo_subdivision_codes Sequence[str]
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    ipv4_cidrs Sequence[str]
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    ipv6_cidrs Sequence[str]
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    ja3_fingerprints Sequence[str]
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    ja4_fingerprints Sequence[str]
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    user_agents Sequence[str]
    User Agents. Must contain between 1 and 10 unique items.
    asns List<Number>
    ASNs. Must contain between 1 and 10 unique items.
    geoCountryCodes List<String>
    Geo Country Codes. Must contain between 1 and 10 unique items.
    geoSubdivisionCodes List<String>
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    ipv4Cidrs List<String>
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    ipv6Cidrs List<String>
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    ja3Fingerprints List<String>
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    ja4Fingerprints List<String>
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    userAgents List<String>
    User Agents. Must contain between 1 and 10 unique items.

    GetNetworkAclRuleNotMatch

    Asns List<int>
    ASNs. Must contain between 1 and 10 unique items.
    GeoCountryCodes List<string>
    Geo Country Codes. Must contain between 1 and 10 unique items.
    GeoSubdivisionCodes List<string>
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    Ipv4Cidrs List<string>
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    Ipv6Cidrs List<string>
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    Ja3Fingerprints List<string>
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    Ja4Fingerprints List<string>
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    UserAgents List<string>
    User Agents. Must contain between 1 and 10 unique items.
    Asns []int
    ASNs. Must contain between 1 and 10 unique items.
    GeoCountryCodes []string
    Geo Country Codes. Must contain between 1 and 10 unique items.
    GeoSubdivisionCodes []string
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    Ipv4Cidrs []string
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    Ipv6Cidrs []string
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    Ja3Fingerprints []string
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    Ja4Fingerprints []string
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    UserAgents []string
    User Agents. Must contain between 1 and 10 unique items.
    asns List<Integer>
    ASNs. Must contain between 1 and 10 unique items.
    geoCountryCodes List<String>
    Geo Country Codes. Must contain between 1 and 10 unique items.
    geoSubdivisionCodes List<String>
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    ipv4Cidrs List<String>
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    ipv6Cidrs List<String>
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    ja3Fingerprints List<String>
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    ja4Fingerprints List<String>
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    userAgents List<String>
    User Agents. Must contain between 1 and 10 unique items.
    asns number[]
    ASNs. Must contain between 1 and 10 unique items.
    geoCountryCodes string[]
    Geo Country Codes. Must contain between 1 and 10 unique items.
    geoSubdivisionCodes string[]
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    ipv4Cidrs string[]
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    ipv6Cidrs string[]
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    ja3Fingerprints string[]
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    ja4Fingerprints string[]
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    userAgents string[]
    User Agents. Must contain between 1 and 10 unique items.
    asns Sequence[int]
    ASNs. Must contain between 1 and 10 unique items.
    geo_country_codes Sequence[str]
    Geo Country Codes. Must contain between 1 and 10 unique items.
    geo_subdivision_codes Sequence[str]
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    ipv4_cidrs Sequence[str]
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    ipv6_cidrs Sequence[str]
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    ja3_fingerprints Sequence[str]
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    ja4_fingerprints Sequence[str]
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    user_agents Sequence[str]
    User Agents. Must contain between 1 and 10 unique items.
    asns List<Number>
    ASNs. Must contain between 1 and 10 unique items.
    geoCountryCodes List<String>
    Geo Country Codes. Must contain between 1 and 10 unique items.
    geoSubdivisionCodes List<String>
    Geo Subdivision Codes. Must contain between 1 and 10 unique items.
    ipv4Cidrs List<String>
    IPv4 CIDRs. Must contain between 1 and 10 unique items. Can be IPv4 addresses or CIDR blocks.
    ipv6Cidrs List<String>
    IPv6 CIDRs. Must contain between 1 and 10 unique items. Can be IPv6 addresses or CIDR blocks.
    ja3Fingerprints List<String>
    JA3 Fingerprints. Must contain between 1 and 10 unique items.
    ja4Fingerprints List<String>
    JA4 Fingerprints. Must contain between 1 and 10 unique items.
    userAgents List<String>
    User Agents. Must contain between 1 and 10 unique items.

    Package Details

    Repository
    Auth0 pulumi/pulumi-auth0
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the auth0 Terraform Provider.
    auth0 logo
    Auth0 v3.19.1 published on Wednesday, Apr 30, 2025 by Pulumi