UNPKG

@bdzscaler/pulumi-zpa

Version:

A Pulumi package for creating and managing Zscaler Private Access (ZPA) cloud resources.

86 lines 3.19 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getEnrollmentCertOutput = exports.getEnrollmentCert = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://help.zscaler.com/zpa/about-enrollment-ca-certificates) * * [API documentation](https://help.zscaler.com/zpa/obtaining-enrollment-certificate-details-using-api) * * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as zpa from "@bdzscaler/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", * }); * ``` */ function getEnrollmentCert(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("zpa:index/getEnrollmentCert:getEnrollmentCert", { "id": args.id, "microtenantId": args.microtenantId, "name": args.name, }, opts); } exports.getEnrollmentCert = getEnrollmentCert; /** * * [Official documentation](https://help.zscaler.com/zpa/about-enrollment-ca-certificates) * * [API documentation](https://help.zscaler.com/zpa/obtaining-enrollment-certificate-details-using-api) * * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as zpa from "@bdzscaler/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", * }); * ``` */ function getEnrollmentCertOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("zpa:index/getEnrollmentCert:getEnrollmentCert", { "id": args.id, "microtenantId": args.microtenantId, "name": args.name, }, opts); } exports.getEnrollmentCertOutput = getEnrollmentCertOutput; //# sourceMappingURL=getEnrollmentCert.js.map