1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getEnrollmentCert
Zscaler Private Access v0.0.11 published on Saturday, May 4, 2024 by Zscaler

zpa.getEnrollmentCert

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.11 published on Saturday, May 4, 2024 by Zscaler

    Use the zpa_enrollment_cert data source to get information about all configured enrollment certificate details created in the Zscaler Private Access cloud. This data source is required when creating provisioning key resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const root = zpa.getEnrollmentCert({
        name: "Root",
    });
    const client = zpa.getEnrollmentCert({
        name: "Client",
    });
    const connector = zpa.getEnrollmentCert({
        name: "Connector",
    });
    const serviceEdge = zpa.getEnrollmentCert({
        name: "Service Edge",
    });
    const isolationClient = zpa.getEnrollmentCert({
        name: "Isolation Client",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    root = zpa.get_enrollment_cert(name="Root")
    client = zpa.get_enrollment_cert(name="Client")
    connector = zpa.get_enrollment_cert(name="Connector")
    service_edge = zpa.get_enrollment_cert(name="Service Edge")
    isolation_client = zpa.get_enrollment_cert(name="Isolation Client")
    
    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.GetEnrollmentCert(ctx, &zpa.GetEnrollmentCertArgs{
    			Name: pulumi.StringRef("Root"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetEnrollmentCert(ctx, &zpa.GetEnrollmentCertArgs{
    			Name: pulumi.StringRef("Client"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetEnrollmentCert(ctx, &zpa.GetEnrollmentCertArgs{
    			Name: pulumi.StringRef("Connector"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetEnrollmentCert(ctx, &zpa.GetEnrollmentCertArgs{
    			Name: pulumi.StringRef("Service Edge"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetEnrollmentCert(ctx, &zpa.GetEnrollmentCertArgs{
    			Name: pulumi.StringRef("Isolation Client"),
    		}, 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 root = Zpa.GetEnrollmentCert.Invoke(new()
        {
            Name = "Root",
        });
    
        var client = Zpa.GetEnrollmentCert.Invoke(new()
        {
            Name = "Client",
        });
    
        var connector = Zpa.GetEnrollmentCert.Invoke(new()
        {
            Name = "Connector",
        });
    
        var serviceEdge = Zpa.GetEnrollmentCert.Invoke(new()
        {
            Name = "Service Edge",
        });
    
        var isolationClient = Zpa.GetEnrollmentCert.Invoke(new()
        {
            Name = "Isolation Client",
        });
    
    });
    
    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.GetEnrollmentCertArgs;
    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 root = ZpaFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
                .name("Root")
                .build());
    
            final var client = ZpaFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
                .name("Client")
                .build());
    
            final var connector = ZpaFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
                .name("Connector")
                .build());
    
            final var serviceEdge = ZpaFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
                .name("Service Edge")
                .build());
    
            final var isolationClient = ZpaFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
                .name("Isolation Client")
                .build());
    
        }
    }
    
    variables:
      root:
        fn::invoke:
          Function: zpa:getEnrollmentCert
          Arguments:
            name: Root
      client:
        fn::invoke:
          Function: zpa:getEnrollmentCert
          Arguments:
            name: Client
      connector:
        fn::invoke:
          Function: zpa:getEnrollmentCert
          Arguments:
            name: Connector
      serviceEdge:
        fn::invoke:
          Function: zpa:getEnrollmentCert
          Arguments:
            name: Service Edge
      isolationClient:
        fn::invoke:
          Function: zpa:getEnrollmentCert
          Arguments:
            name: Isolation Client
    

    Using getEnrollmentCert

    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 getEnrollmentCert(args: GetEnrollmentCertArgs, opts?: InvokeOptions): Promise<GetEnrollmentCertResult>
    function getEnrollmentCertOutput(args: GetEnrollmentCertOutputArgs, opts?: InvokeOptions): Output<GetEnrollmentCertResult>
    def get_enrollment_cert(id: Optional[str] = None,
                            microtenant_id: Optional[str] = None,
                            name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetEnrollmentCertResult
    def get_enrollment_cert_output(id: Optional[pulumi.Input[str]] = None,
                            microtenant_id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetEnrollmentCertResult]
    func GetEnrollmentCert(ctx *Context, args *GetEnrollmentCertArgs, opts ...InvokeOption) (*GetEnrollmentCertResult, error)
    func GetEnrollmentCertOutput(ctx *Context, args *GetEnrollmentCertOutputArgs, opts ...InvokeOption) GetEnrollmentCertResultOutput

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

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

    The following arguments are supported:

    Id string
    MicrotenantId string
    Name string
    Id string
    MicrotenantId string
    Name string
    id String
    microtenantId String
    name String
    id string
    microtenantId string
    name string
    id String
    microtenantId String
    name String

    getEnrollmentCert 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.11 published on Saturday, May 4, 2024 by Zscaler