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

Zscaler Private Access (ZPA)

The Zscaler Private Access (ZPA) provider for Pulumi can be used to provision any of the cloud resources available in Zscaler Private Access. The Zscaler Private Access (ZPA) provider must be configured with credentials to deploy and update resources in the ZPA Cloud.


import * as zpa from "@zscaler/pulumi-zpa";
const segmentGroup = new zpa.ZPASegmentGroup("segment-group", {
    name:          "Pulumi Segment Group",
    description:   "Pulumi Segment Group",
    enabled: true,
    policyMigrated: true,
    tcpKeepAliveEnabled: "1",
import zscaler_pulumi_zpa as zpa

segmentGroup = zpa.ZPASegmentGroup("segment-group",
import (
	zpa "github.com/zscaler/pulumi-zpa/sdk/go/zpa"

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		segmentGroup, err := zpa.NewZPASegmentGroup(ctx, "segment-group-example", &zpa.ZPASegmentGroupArgs{
			Name:                   pulumi.String("Pulumi Segment Group"),
			Description:            pulumi.String("Pulumi Segment Group"),
			Enabled:                pulumi.Bool(true),
			PolicyMigrated:         pulumi.Bool(true),
			TcpKeepAliveEnabled: pulumi.String("1"),
		if err != nil {
			return fmt.Errorf("error creating segment group: %v", err)

		ctx.Export("segment_group", segmentGroup.Name)

		return nil
using Pulumi;
using zscaler.PulumiPackage.Zpa;

await Deployment.RunAsync(() =>
	var group = new Zpa.ZPASegmentGroup("segment-group-example", new()
		  Name = "Pulumi Segment Group",
        Description = "Pulumi Segment Group",
        Enabled = true,
        TcpKeepAliveEnabled = "1",