Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler
zpa.getEnrollmentCert
Explore with Pulumi AI
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
- Microtenant
Id string - Name string
- Id string
- Microtenant
Id string - Name string
- id String
- microtenant
Id String - name String
- id string
- microtenant
Id string - name string
- id str
- microtenant_
id str - name str
- id String
- microtenant
Id String - name String
getEnrollmentCert Result
The following output properties are available:
- Allow
Signing bool - Certificate string
- Client
Cert stringType - Cname string
- Creation
Time string - Csr string
- Description string
- Issued
By string - Issued
To string - Modified
By string - Modified
Time string - Parent
Cert stringId - Parent
Cert stringName - Private
Key string - Private
Key boolPresent - Serial
No string - Valid
From stringIn Epoch Sec - Valid
To stringIn Epoch Sec - Zrsa
Encrypted stringPrivate Key - Zrsa
Encrypted stringSession Key - Id string
- Microtenant
Id string - Name string
- Allow
Signing bool - Certificate string
- Client
Cert stringType - Cname string
- Creation
Time string - Csr string
- Description string
- Issued
By string - Issued
To string - Modified
By string - Modified
Time string - Parent
Cert stringId - Parent
Cert stringName - Private
Key string - Private
Key boolPresent - Serial
No string - Valid
From stringIn Epoch Sec - Valid
To stringIn Epoch Sec - Zrsa
Encrypted stringPrivate Key - Zrsa
Encrypted stringSession Key - Id string
- Microtenant
Id string - Name string
- allow
Signing Boolean - certificate String
- client
Cert StringType - cname String
- creation
Time String - csr String
- description String
- issued
By String - issued
To String - modified
By String - modified
Time String - parent
Cert StringId - parent
Cert StringName - private
Key String - private
Key BooleanPresent - serial
No String - valid
From StringIn Epoch Sec - valid
To StringIn Epoch Sec - zrsa
Encrypted StringPrivate Key - zrsa
Encrypted StringSession Key - id String
- microtenant
Id String - name String
- allow
Signing boolean - certificate string
- client
Cert stringType - cname string
- creation
Time string - csr string
- description string
- issued
By string - issued
To string - modified
By string - modified
Time string - parent
Cert stringId - parent
Cert stringName - private
Key string - private
Key booleanPresent - serial
No string - valid
From stringIn Epoch Sec - valid
To stringIn Epoch Sec - zrsa
Encrypted stringPrivate Key - zrsa
Encrypted stringSession Key - id string
- microtenant
Id string - name string
- allow_
signing bool - certificate str
- client_
cert_ strtype - cname str
- creation_
time str - csr str
- description str
- issued_
by str - issued_
to str - modified_
by str - modified_
time str - parent_
cert_ strid - parent_
cert_ strname - private_
key str - private_
key_ boolpresent - serial_
no str - valid_
from_ strin_ epoch_ sec - valid_
to_ strin_ epoch_ sec - zrsa_
encrypted_ strprivate_ key - zrsa_
encrypted_ strsession_ key - id str
- microtenant_
id str - name str
- allow
Signing Boolean - certificate String
- client
Cert StringType - cname String
- creation
Time String - csr String
- description String
- issued
By String - issued
To String - modified
By String - modified
Time String - parent
Cert StringId - parent
Cert StringName - private
Key String - private
Key BooleanPresent - serial
No String - valid
From StringIn Epoch Sec - valid
To StringIn Epoch Sec - zrsa
Encrypted StringPrivate Key - zrsa
Encrypted StringSession Key - id String
- microtenant
Id String - name String
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.