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

Zscaler Private Access (ZPA)

zpa logo
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

    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.

    Example

    import * as zpa from "@bdzscaler/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",
      name="Pulumi-Segment-Group",
      description="Pulumi-Segment-Group",
      enabled=True,
      policy_migrated=True,
      tcp_keep_alive_enabled="1"
    )
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	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",
    	});
    });
    
    zpa logo
    Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler