1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getProvisioningKey
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

zpa.getProvisioningKey

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const example = zpa.getProvisioningKey({
        associationType: "CONNECTOR_GRP",
        name: "Provisioning_Key",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    example = zpa.get_provisioning_key(association_type="CONNECTOR_GRP",
        name="Provisioning_Key")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zpa.LookupProvisioningKey(ctx, &zpa.LookupProvisioningKeyArgs{
    			AssociationType: "CONNECTOR_GRP",
    			Name:            pulumi.StringRef("Provisioning_Key"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Pulumi.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Zpa.GetProvisioningKey.Invoke(new()
        {
            AssociationType = "CONNECTOR_GRP",
            Name = "Provisioning_Key",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zpa.ZpaFunctions;
    import com.pulumi.zpa.inputs.GetProvisioningKeyArgs;
    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) {
            final var example = ZpaFunctions.getProvisioningKey(GetProvisioningKeyArgs.builder()
                .associationType("CONNECTOR_GRP")
                .name("Provisioning_Key")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zpa:getProvisioningKey
          Arguments:
            associationType: CONNECTOR_GRP
            name: Provisioning_Key
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const example = zpa.getProvisioningKey({
        associationType: "SERVICE_EDGE_GRP",
        name: "Provisioning_Key",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    example = zpa.get_provisioning_key(association_type="SERVICE_EDGE_GRP",
        name="Provisioning_Key")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zpa.LookupProvisioningKey(ctx, &zpa.LookupProvisioningKeyArgs{
    			AssociationType: "SERVICE_EDGE_GRP",
    			Name:            pulumi.StringRef("Provisioning_Key"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Pulumi.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Zpa.GetProvisioningKey.Invoke(new()
        {
            AssociationType = "SERVICE_EDGE_GRP",
            Name = "Provisioning_Key",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zpa.ZpaFunctions;
    import com.pulumi.zpa.inputs.GetProvisioningKeyArgs;
    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) {
            final var example = ZpaFunctions.getProvisioningKey(GetProvisioningKeyArgs.builder()
                .associationType("SERVICE_EDGE_GRP")
                .name("Provisioning_Key")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zpa:getProvisioningKey
          Arguments:
            associationType: SERVICE_EDGE_GRP
            name: Provisioning_Key
    

    Using getProvisioningKey

    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 getProvisioningKey(args: GetProvisioningKeyArgs, opts?: InvokeOptions): Promise<GetProvisioningKeyResult>
    function getProvisioningKeyOutput(args: GetProvisioningKeyOutputArgs, opts?: InvokeOptions): Output<GetProvisioningKeyResult>
    def get_provisioning_key(association_type: Optional[str] = None,
                             id: Optional[str] = None,
                             microtenant_id: Optional[str] = None,
                             microtenant_name: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetProvisioningKeyResult
    def get_provisioning_key_output(association_type: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             microtenant_id: Optional[pulumi.Input[str]] = None,
                             microtenant_name: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetProvisioningKeyResult]
    func LookupProvisioningKey(ctx *Context, args *LookupProvisioningKeyArgs, opts ...InvokeOption) (*LookupProvisioningKeyResult, error)
    func LookupProvisioningKeyOutput(ctx *Context, args *LookupProvisioningKeyOutputArgs, opts ...InvokeOption) LookupProvisioningKeyResultOutput

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

    public static class GetProvisioningKey 
    {
        public static Task<GetProvisioningKeyResult> InvokeAsync(GetProvisioningKeyArgs args, InvokeOptions? opts = null)
        public static Output<GetProvisioningKeyResult> Invoke(GetProvisioningKeyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProvisioningKeyResult> getProvisioningKey(GetProvisioningKeyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zpa:index/getProvisioningKey:getProvisioningKey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AssociationType string
    Id string
    MicrotenantId string
    MicrotenantName string
    Name string
    AssociationType string
    Id string
    MicrotenantId string
    MicrotenantName string
    Name string
    associationType String
    id String
    microtenantId String
    microtenantName String
    name String
    associationType string
    id string
    microtenantId string
    microtenantName string
    name string
    associationType String
    id String
    microtenantId String
    microtenantName String
    name String

    getProvisioningKey Result

    The following output properties are available:

    Package Details

    Repository
    zpa zscaler/pulumi-zpa
    License
    MIT
    Notes
    This Pulumi package is based on the zpa Terraform Provider.
    zpa logo
    Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler