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

zpa.CloudBrowserIsolationCertificate

Explore with Pulumi AI

The zpa_cloud_browser_isolation_certificate resource creates a Cloud Browser Isolation certificate. This resource can then be used when creating a CBI External Profile zpa.CloudBrowserIsolationExternalProfile.`

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as zpa from "@bdzscaler/pulumi-zpa";

// Retrieve CBI Banner ID
const thisCloudBrowserIsolationCertificate = new zpa.CloudBrowserIsolationCertificate("thisCloudBrowserIsolationCertificate", {pem: fs.readFileSync("cert.pem", "utf8")});
const thisIndex_cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate = new zpa.CloudBrowserIsolationCertificate("thisIndex/cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate", {pem: `    -----BEGIN CERTIFICATE-----
    MIIFYDCCBEigAwIBAgIQQAF3ITfU6UK47naqPGQKtzANBgkqhkiG9w0BAQsFADA/
`});
Copy
import pulumi
import zscaler_pulumi_zpa as zpa

# Retrieve CBI Banner ID
this_cloud_browser_isolation_certificate = zpa.CloudBrowserIsolationCertificate("thisCloudBrowserIsolationCertificate", pem=(lambda path: open(path).read())("cert.pem"))
this_index_cloud_browser_isolation_certificate_cloud_browser_isolation_certificate = zpa.CloudBrowserIsolationCertificate("thisIndex/cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate", pem="""    -----BEGIN CERTIFICATE-----
    MIIFYDCCBEigAwIBAgIQQAF3ITfU6UK47naqPGQKtzANBgkqhkiG9w0BAQsFADA/
""")
Copy
package main

import (
	"os"

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

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Retrieve CBI Banner ID
		_, err := zpa.NewCloudBrowserIsolationCertificate(ctx, "thisCloudBrowserIsolationCertificate", &zpa.CloudBrowserIsolationCertificateArgs{
			Pem: pulumi.String(readFileOrPanic("cert.pem")),
		})
		if err != nil {
			return err
		}
		_, err = zpa.NewCloudBrowserIsolationCertificate(ctx, "thisIndex/cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate", &zpa.CloudBrowserIsolationCertificateArgs{
			Pem: pulumi.String("    -----BEGIN CERTIFICATE-----\n    MIIFYDCCBEigAwIBAgIQQAF3ITfU6UK47naqPGQKtzANBgkqhkiG9w0BAQsFADA/\n"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Zpa = Zscaler.Zpa;

return await Deployment.RunAsync(() => 
{
    // Retrieve CBI Banner ID
    var thisCloudBrowserIsolationCertificate = new Zpa.CloudBrowserIsolationCertificate("thisCloudBrowserIsolationCertificate", new()
    {
        Pem = File.ReadAllText("cert.pem"),
    });

    var thisIndex_cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate = new Zpa.CloudBrowserIsolationCertificate("thisIndex/cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate", new()
    {
        Pem = @"    -----BEGIN CERTIFICATE-----
    MIIFYDCCBEigAwIBAgIQQAF3ITfU6UK47naqPGQKtzANBgkqhkiG9w0BAQsFADA/
",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.CloudBrowserIsolationCertificate;
import com.pulumi.zpa.CloudBrowserIsolationCertificateArgs;
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) {
        // Retrieve CBI Banner ID
        var thisCloudBrowserIsolationCertificate = new CloudBrowserIsolationCertificate("thisCloudBrowserIsolationCertificate", CloudBrowserIsolationCertificateArgs.builder()
            .pem(Files.readString(Paths.get("cert.pem")))
            .build());

        var thisIndex_cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate = new CloudBrowserIsolationCertificate("thisIndex/cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate", CloudBrowserIsolationCertificateArgs.builder()
            .pem("""
    -----BEGIN CERTIFICATE-----
    MIIFYDCCBEigAwIBAgIQQAF3ITfU6UK47naqPGQKtzANBgkqhkiG9w0BAQsFADA/
            """)
            .build());

    }
}
Copy
resources:
  # Retrieve CBI Banner ID
  thisCloudBrowserIsolationCertificate:
    type: zpa:CloudBrowserIsolationCertificate
    properties:
      pem:
        fn::readFile: cert.pem
  thisIndex/cloudBrowserIsolationCertificateCloudBrowserIsolationCertificate:
    type: zpa:CloudBrowserIsolationCertificate
    properties:
      pem: |2
            -----BEGIN CERTIFICATE-----
            MIIFYDCCBEigAwIBAgIQQAF3ITfU6UK47naqPGQKtzANBgkqhkiG9w0BAQsFADA/
Copy

Create CloudBrowserIsolationCertificate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CloudBrowserIsolationCertificate(name: string, args?: CloudBrowserIsolationCertificateArgs, opts?: CustomResourceOptions);
@overload
def CloudBrowserIsolationCertificate(resource_name: str,
                                     args: Optional[CloudBrowserIsolationCertificateArgs] = None,
                                     opts: Optional[ResourceOptions] = None)

@overload
def CloudBrowserIsolationCertificate(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     name: Optional[str] = None,
                                     pem: Optional[str] = None)
func NewCloudBrowserIsolationCertificate(ctx *Context, name string, args *CloudBrowserIsolationCertificateArgs, opts ...ResourceOption) (*CloudBrowserIsolationCertificate, error)
public CloudBrowserIsolationCertificate(string name, CloudBrowserIsolationCertificateArgs? args = null, CustomResourceOptions? opts = null)
public CloudBrowserIsolationCertificate(String name, CloudBrowserIsolationCertificateArgs args)
public CloudBrowserIsolationCertificate(String name, CloudBrowserIsolationCertificateArgs args, CustomResourceOptions options)
type: zpa:CloudBrowserIsolationCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args CloudBrowserIsolationCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args CloudBrowserIsolationCertificateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args CloudBrowserIsolationCertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args CloudBrowserIsolationCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CloudBrowserIsolationCertificateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var cloudBrowserIsolationCertificateResource = new Zpa.CloudBrowserIsolationCertificate("cloudBrowserIsolationCertificateResource", new()
{
    Name = "string",
    Pem = "string",
});
Copy
example, err := zpa.NewCloudBrowserIsolationCertificate(ctx, "cloudBrowserIsolationCertificateResource", &zpa.CloudBrowserIsolationCertificateArgs{
	Name: pulumi.String("string"),
	Pem:  pulumi.String("string"),
})
Copy
var cloudBrowserIsolationCertificateResource = new CloudBrowserIsolationCertificate("cloudBrowserIsolationCertificateResource", CloudBrowserIsolationCertificateArgs.builder()
    .name("string")
    .pem("string")
    .build());
Copy
cloud_browser_isolation_certificate_resource = zpa.CloudBrowserIsolationCertificate("cloudBrowserIsolationCertificateResource",
    name="string",
    pem="string")
Copy
const cloudBrowserIsolationCertificateResource = new zpa.CloudBrowserIsolationCertificate("cloudBrowserIsolationCertificateResource", {
    name: "string",
    pem: "string",
});
Copy
type: zpa:CloudBrowserIsolationCertificate
properties:
    name: string
    pem: string
Copy

CloudBrowserIsolationCertificate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CloudBrowserIsolationCertificate resource accepts the following input properties:

Name string
Pem string
Name string
Pem string
name String
pem String
name string
pem string
name str
pem str
name String
pem String

Outputs

All input properties are implicitly available as output properties. Additionally, the CloudBrowserIsolationCertificate resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CloudBrowserIsolationCertificate Resource

Get an existing CloudBrowserIsolationCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CloudBrowserIsolationCertificateState, opts?: CustomResourceOptions): CloudBrowserIsolationCertificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        pem: Optional[str] = None) -> CloudBrowserIsolationCertificate
func GetCloudBrowserIsolationCertificate(ctx *Context, name string, id IDInput, state *CloudBrowserIsolationCertificateState, opts ...ResourceOption) (*CloudBrowserIsolationCertificate, error)
public static CloudBrowserIsolationCertificate Get(string name, Input<string> id, CloudBrowserIsolationCertificateState? state, CustomResourceOptions? opts = null)
public static CloudBrowserIsolationCertificate get(String name, Output<String> id, CloudBrowserIsolationCertificateState state, CustomResourceOptions options)
resources:  _:    type: zpa:CloudBrowserIsolationCertificate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Name string
Pem string
Name string
Pem string
name String
pem String
name string
pem string
name str
pem str
name String
pem String

Package Details

Repository
zpa zscaler/pulumi-zpa
License
MIT
Notes
This Pulumi package is based on the zpa Terraform Provider.