zpa logo
Zscaler Private Access v0.0.4, Jan 30 23

zpa.EnrollmentCertificate.getEnrollmentCert

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

using System.Collections.Generic;
using Pulumi;
using Zpa = Pulumi.Zpa;

return await Deployment.RunAsync(() => 
{
    var root = Zpa.EnrollmentCertificate.GetEnrollmentCert.Invoke(new()
    {
        Name = "Root",
    });

    var client = Zpa.EnrollmentCertificate.GetEnrollmentCert.Invoke(new()
    {
        Name = "Client",
    });

    var connector = Zpa.EnrollmentCertificate.GetEnrollmentCert.Invoke(new()
    {
        Name = "Connector",
    });

    var serviceEdge = Zpa.EnrollmentCertificate.GetEnrollmentCert.Invoke(new()
    {
        Name = "Service Edge",
    });

    var isolationClient = Zpa.EnrollmentCertificate.GetEnrollmentCert.Invoke(new()
    {
        Name = "Isolation Client",
    });

});
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/zscaler/pulumi-zpa/sdk/go/zpa/EnrollmentCertificate"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := EnrollmentCertificate.GetEnrollmentCert(ctx, &enrollmentcertificate.GetEnrollmentCertArgs{
			Name: pulumi.StringRef("Root"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = EnrollmentCertificate.GetEnrollmentCert(ctx, &enrollmentcertificate.GetEnrollmentCertArgs{
			Name: pulumi.StringRef("Client"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = EnrollmentCertificate.GetEnrollmentCert(ctx, &enrollmentcertificate.GetEnrollmentCertArgs{
			Name: pulumi.StringRef("Connector"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = EnrollmentCertificate.GetEnrollmentCert(ctx, &enrollmentcertificate.GetEnrollmentCertArgs{
			Name: pulumi.StringRef("Service Edge"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = EnrollmentCertificate.GetEnrollmentCert(ctx, &enrollmentcertificate.GetEnrollmentCertArgs{
			Name: pulumi.StringRef("Isolation Client"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.EnrollmentCertificate.EnrollmentCertificateFunctions;
import com.pulumi.zpa.EnrollmentCertificate.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 = EnrollmentCertificateFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
            .name("Root")
            .build());

        final var client = EnrollmentCertificateFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
            .name("Client")
            .build());

        final var connector = EnrollmentCertificateFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
            .name("Connector")
            .build());

        final var serviceEdge = EnrollmentCertificateFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
            .name("Service Edge")
            .build());

        final var isolationClient = EnrollmentCertificateFunctions.getEnrollmentCert(GetEnrollmentCertArgs.builder()
            .name("Isolation Client")
            .build());

    }
}
import pulumi
import pulumi_zpa as zpa

root = zpa.EnrollmentCertificate.get_enrollment_cert(name="Root")
client = zpa.EnrollmentCertificate.get_enrollment_cert(name="Client")
connector = zpa.EnrollmentCertificate.get_enrollment_cert(name="Connector")
service_edge = zpa.EnrollmentCertificate.get_enrollment_cert(name="Service Edge")
isolation_client = zpa.EnrollmentCertificate.get_enrollment_cert(name="Isolation Client")
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";

const root = zpa.EnrollmentCertificate.getEnrollmentCert({
    name: "Root",
});
const client = zpa.EnrollmentCertificate.getEnrollmentCert({
    name: "Client",
});
const connector = zpa.EnrollmentCertificate.getEnrollmentCert({
    name: "Connector",
});
const serviceEdge = zpa.EnrollmentCertificate.getEnrollmentCert({
    name: "Service Edge",
});
const isolationClient = zpa.EnrollmentCertificate.getEnrollmentCert({
    name: "Isolation Client",
});
variables:
  root:
    fn::invoke:
      Function: zpa:EnrollmentCertificate:getEnrollmentCert
      Arguments:
        name: Root
  client:
    fn::invoke:
      Function: zpa:EnrollmentCertificate:getEnrollmentCert
      Arguments:
        name: Client
  connector:
    fn::invoke:
      Function: zpa:EnrollmentCertificate:getEnrollmentCert
      Arguments:
        name: Connector
  serviceEdge:
    fn::invoke:
      Function: zpa:EnrollmentCertificate:getEnrollmentCert
      Arguments:
        name: Service Edge
  isolationClient:
    fn::invoke:
      Function: zpa:EnrollmentCertificate: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,
                        name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetEnrollmentCertResult
def get_enrollment_cert_output(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:EnrollmentCertificate/getEnrollmentCert:getEnrollmentCert
  arguments:
    # arguments dictionary

The following arguments are supported:

Id string

The id of the enrollment certificate to be exported.

Name string

The name of the enrollment certificate to be exported.

Id string

The id of the enrollment certificate to be exported.

Name string

The name of the enrollment certificate to be exported.

id String

The id of the enrollment certificate to be exported.

name String

The name of the enrollment certificate to be exported.

id string

The id of the enrollment certificate to be exported.

name string

The name of the enrollment certificate to be exported.

id str

The id of the enrollment certificate to be exported.

name str

The name of the enrollment certificate to be exported.

id String

The id of the enrollment certificate to be exported.

name String

The name of the enrollment certificate to be exported.

getEnrollmentCert Result

The following output properties are available:

AllowSigning bool

(bool)

Certificate string

(string) The certificate text is in PEM format.

ClientCertType string

(string) Returned values are:

Cname string

(string)

CreationTime string

(string)

Csr string

(string)

Description string

(string)

IssuedBy string

(string)

IssuedTo string

(string)

ModifiedBy string

(string)

ModifiedTime string

(string)

ParentCertId string

(string)

ParentCertName string

(string)

PrivateKey string
PrivateKeyPresent bool
SerialNo string

(string)

ValidFromInEpochSec string

(string)

ValidToInEpochSec string
ZrsaEncryptedPrivateKey string
ZrsaEncryptedSessionKey string
Id string
Name string
AllowSigning bool

(bool)

Certificate string

(string) The certificate text is in PEM format.

ClientCertType string

(string) Returned values are:

Cname string

(string)

CreationTime string

(string)

Csr string

(string)

Description string

(string)

IssuedBy string

(string)

IssuedTo string

(string)

ModifiedBy string

(string)

ModifiedTime string

(string)

ParentCertId string

(string)

ParentCertName string

(string)

PrivateKey string
PrivateKeyPresent bool
SerialNo string

(string)

ValidFromInEpochSec string

(string)

ValidToInEpochSec string
ZrsaEncryptedPrivateKey string
ZrsaEncryptedSessionKey string
Id string
Name string
allowSigning Boolean

(bool)

certificate String

(string) The certificate text is in PEM format.

clientCertType String

(string) Returned values are:

cname String

(string)

creationTime String

(string)

csr String

(string)

description String

(string)

issuedBy String

(string)

issuedTo String

(string)

modifiedBy String

(string)

modifiedTime String

(string)

parentCertId String

(string)

parentCertName String

(string)

privateKey String
privateKeyPresent Boolean
serialNo String

(string)

validFromInEpochSec String

(string)

validToInEpochSec String
zrsaEncryptedPrivateKey String
zrsaEncryptedSessionKey String
id String
name String
allowSigning boolean

(bool)

certificate string

(string) The certificate text is in PEM format.

clientCertType string

(string) Returned values are:

cname string

(string)

creationTime string

(string)

csr string

(string)

description string

(string)

issuedBy string

(string)

issuedTo string

(string)

modifiedBy string

(string)

modifiedTime string

(string)

parentCertId string

(string)

parentCertName string

(string)

privateKey string
privateKeyPresent boolean
serialNo string

(string)

validFromInEpochSec string

(string)

validToInEpochSec string
zrsaEncryptedPrivateKey string
zrsaEncryptedSessionKey string
id string
name string
allow_signing bool

(bool)

certificate str

(string) The certificate text is in PEM format.

client_cert_type str

(string) Returned values are:

cname str

(string)

creation_time str

(string)

csr str

(string)

description str

(string)

issued_by str

(string)

issued_to str

(string)

modified_by str

(string)

modified_time str

(string)

parent_cert_id str

(string)

parent_cert_name str

(string)

private_key str
private_key_present bool
serial_no str

(string)

valid_from_in_epoch_sec str

(string)

valid_to_in_epoch_sec str
zrsa_encrypted_private_key str
zrsa_encrypted_session_key str
id str
name str
allowSigning Boolean

(bool)

certificate String

(string) The certificate text is in PEM format.

clientCertType String

(string) Returned values are:

cname String

(string)

creationTime String

(string)

csr String

(string)

description String

(string)

issuedBy String

(string)

issuedTo String

(string)

modifiedBy String

(string)

modifiedTime String

(string)

parentCertId String

(string)

parentCertName String

(string)

privateKey String
privateKeyPresent Boolean
serialNo String

(string)

validFromInEpochSec String

(string)

validToInEpochSec String
zrsaEncryptedPrivateKey String
zrsaEncryptedSessionKey String
id String
name String

Package Details

Repository
zpa zscaler/pulumi-zpa
License
MIT
Notes

This Pulumi package is based on the zpa Terraform Provider.