1. Registry
  2. Packages
  3. Auth0 Provider
  4. API Docs
  5. getNetworkAclKey
Viewing docs for Auth0 v3.53.0
published on Sunday, Sep 13, 2026 by Pulumi
auth0 logo auth0 logo
Viewing docs for Auth0 v3.53.0
published on Sunday, Sep 13, 2026 by Pulumi

    Retrieve a Network ACL key by its ID. The value field is not available via this data source (it is write-only on the resource). (EA Only)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as auth0 from "@pulumi/auth0";
    
    const myKey = auth0.getNetworkAclKey({
        id: "key_<replace_with_key_id>",
    });
    
    import pulumi
    import pulumi_auth0 as auth0
    
    my_key = auth0.get_network_acl_key(id="key_<replace_with_key_id>")
    
    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 {
    		_, err := auth0.GetNetworkAclKey(ctx, &auth0.LookupNetworkAclKeyArgs{
    			Id: "key_<replace_with_key_id>",
    		}, 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(() => 
    {
        var myKey = Auth0.GetNetworkAclKey.Invoke(new()
        {
            Id = "key_<replace_with_key_id>",
        });
    
    });
    
    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.GetNetworkAclKeyArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var myKey = Auth0Functions.getNetworkAclKey(GetNetworkAclKeyArgs.builder()
                .id("key_<replace_with_key_id>")
                .build());
    
        }
    }
    
    variables:
      myKey:
        fn::invoke:
          function: auth0:getNetworkAclKey
          arguments:
            id: key_<replace_with_key_id>
    
    pulumi {
      required_providers {
        auth0 = {
          source = "pulumi/auth0"
        }
      }
    }
    
    data "auth0_getnetworkaclkey" "myKey" {
      id = "key_<replace_with_key_id>"
    }
    

    Using getNetworkAclKey

    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 getNetworkAclKey(args: GetNetworkAclKeyArgs, opts?: InvokeOptions): Promise<GetNetworkAclKeyResult>
    function getNetworkAclKeyOutput(args: GetNetworkAclKeyOutputArgs, opts?: InvokeOutputOptions): Output<GetNetworkAclKeyResult>
    def get_network_acl_key(id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetNetworkAclKeyResult
    def get_network_acl_key_output(id: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetNetworkAclKeyResult]
    func LookupNetworkAclKey(ctx *Context, args *LookupNetworkAclKeyArgs, opts ...InvokeOption) (*LookupNetworkAclKeyResult, error)
    func LookupNetworkAclKeyOutput(ctx *Context, args *LookupNetworkAclKeyOutputArgs, opts ...InvokeOption) LookupNetworkAclKeyResultOutput

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

    public static class GetNetworkAclKey 
    {
        public static Task<GetNetworkAclKeyResult> InvokeAsync(GetNetworkAclKeyArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkAclKeyResult> Invoke(GetNetworkAclKeyInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkAclKeyResult> Invoke(GetNetworkAclKeyInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetNetworkAclKeyResult> getNetworkAclKey(GetNetworkAclKeyArgs args, InvokeOptions options)
    public static Output<GetNetworkAclKeyResult> getNetworkAclKey(GetNetworkAclKeyArgs args, InvokeOptions options)
    public static Output<GetNetworkAclKeyResult> getNetworkAclKey(GetNetworkAclKeyArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: auth0:index/getNetworkAclKey:getNetworkAclKey
      arguments:
        # arguments dictionary
    data "auth0_get_network_acl_key" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    ID of the Network ACL key to retrieve.
    Id string
    ID of the Network ACL key to retrieve.
    id string
    ID of the Network ACL key to retrieve.
    id String
    ID of the Network ACL key to retrieve.
    id string
    ID of the Network ACL key to retrieve.
    id str
    ID of the Network ACL key to retrieve.
    id String
    ID of the Network ACL key to retrieve.

    getNetworkAclKey Result

    The following output properties are available:

    Alg string
    Algorithm used for the key.
    CreatedAt string
    Time when the key was created.
    Fingerprint string
    SHA-256 fingerprint of the decoded key material (lowercase hex).
    Id string
    ID of the Network ACL key to retrieve.
    Name string
    User-supplied label for the key.
    UpdatedAt string
    Time when the key was last updated.
    Alg string
    Algorithm used for the key.
    CreatedAt string
    Time when the key was created.
    Fingerprint string
    SHA-256 fingerprint of the decoded key material (lowercase hex).
    Id string
    ID of the Network ACL key to retrieve.
    Name string
    User-supplied label for the key.
    UpdatedAt string
    Time when the key was last updated.
    alg string
    Algorithm used for the key.
    created_at string
    Time when the key was created.
    fingerprint string
    SHA-256 fingerprint of the decoded key material (lowercase hex).
    id string
    ID of the Network ACL key to retrieve.
    name string
    User-supplied label for the key.
    updated_at string
    Time when the key was last updated.
    alg String
    Algorithm used for the key.
    createdAt String
    Time when the key was created.
    fingerprint String
    SHA-256 fingerprint of the decoded key material (lowercase hex).
    id String
    ID of the Network ACL key to retrieve.
    name String
    User-supplied label for the key.
    updatedAt String
    Time when the key was last updated.
    alg string
    Algorithm used for the key.
    createdAt string
    Time when the key was created.
    fingerprint string
    SHA-256 fingerprint of the decoded key material (lowercase hex).
    id string
    ID of the Network ACL key to retrieve.
    name string
    User-supplied label for the key.
    updatedAt string
    Time when the key was last updated.
    alg str
    Algorithm used for the key.
    created_at str
    Time when the key was created.
    fingerprint str
    SHA-256 fingerprint of the decoded key material (lowercase hex).
    id str
    ID of the Network ACL key to retrieve.
    name str
    User-supplied label for the key.
    updated_at str
    Time when the key was last updated.
    alg String
    Algorithm used for the key.
    createdAt String
    Time when the key was created.
    fingerprint String
    SHA-256 fingerprint of the decoded key material (lowercase hex).
    id String
    ID of the Network ACL key to retrieve.
    name String
    User-supplied label for the key.
    updatedAt String
    Time when the key was last updated.

    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 logo
    Viewing docs for Auth0 v3.53.0
    published on Sunday, Sep 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial