1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. PolicyBrowserProtectionRule
Zscaler Private Access v1.0.3 published on Wednesday, Jan 21, 2026 by Zscaler
zpa logo
Zscaler Private Access v1.0.3 published on Wednesday, Jan 21, 2026 by Zscaler

    The zpa_policy_browser_protection_rule resource creates and manages policy access rule in the Zscaler Private Access cloud using a new v2 API endpoint.

    ⚠️ NOTE: This resource is recommended if your configuration requires the association of more than 1000 resource criteria per rule.

    ⚠️ WARNING:: The attribute <span pulumi-lang-nodejs="ruleOrder" pulumi-lang-dotnet="RuleOrder" pulumi-lang-go="ruleOrder" pulumi-lang-python="rule_order" pulumi-lang-yaml="ruleOrder" pulumi-lang-java="ruleOrder">rule_order</span> is now deprecated in favor of the new resource <span pulumi-lang-nodejs="policyAccessRuleReorder" pulumi-lang-dotnet="PolicyAccessRuleReorder" pulumi-lang-go="policyAccessRuleReorder" pulumi-lang-python="policy_access_rule_reorder" pulumi-lang-yaml="policyAccessRuleReorder" pulumi-lang-java="policyAccessRuleReorder">policy_access_rule_reorder</span>

    Example Usage

    Browser Protection With MONITOR ACTION

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@bdzscaler/pulumi-zpa";
    
    // Retrieve Policy Types
    // Retrieve Identity Provider ID
    const _this = zpa.getIdPController({
        name: "Idp_Name",
    });
    // Retrieve SAML Attribute ID
    const emailUserSso = zpa.getSAMLAttribute({
        name: "Email_Users",
        idpName: "Idp_Name",
    });
    // Retrieve SAML Attribute ID
    const groupUser = zpa.getSAMLAttribute({
        name: "GroupName_Users",
        idpName: "Idp_Name",
    });
    // Retrieve SCIM Group ID
    const a000 = zpa.getSCIMGroups({
        name: "A000",
        idpName: "Idp_Name",
    });
    // Retrieve SCIM Group ID
    const b000 = zpa.getSCIMGroups({
        name: "B000",
        idpName: "Idp_Name",
    });
    // Create Segment Group
    const thisSegmentGroup = new zpa.SegmentGroup("this", {
        name: "Example",
        description: "Example",
        enabled: true,
    });
    // Create Policy Access Rule V2
    const thisPolicyBrowserProtectionRule = new zpa.PolicyBrowserProtectionRule("this", {
        name: "Example",
        description: "Example",
        action: "MONITOR",
        conditions: [
            {
                operator: "OR",
                operands: [{
                    objectType: "APP_GROUP",
                    values: [thisSegmentGroup.id],
                }],
            },
            {
                operator: "OR",
                operands: [
                    {
                        objectType: "SAML",
                        entryValues: [
                            {
                                rhs: "user1@acme.com",
                                lhs: emailUserSso.then(emailUserSso => emailUserSso.id),
                            },
                            {
                                rhs: "A000",
                                lhs: groupUser.then(groupUser => groupUser.id),
                            },
                        ],
                    },
                    {
                        objectType: "SCIM_GROUP",
                        entryValues: [
                            {
                                rhs: a000.then(a000 => a000.id),
                                lhs: _this.then(_this => _this.id),
                            },
                            {
                                rhs: b000.then(b000 => b000.id),
                                lhs: _this.then(_this => _this.id),
                            },
                        ],
                    },
                ],
            },
            {
                operator: "OR",
                operands: [{
                    objectType: "USER_PORTAL",
                    values: ["145262059234265326"],
                }],
            },
            {
                operator: "OR",
                operands: [{
                    objectType: "CLIENT_TYPE",
                    values: ["zpn_client_type_exporter"],
                }],
            },
        ],
    });
    
    import pulumi
    import pulumi_zpa as zpa
    import zscaler_pulumi_zpa as zpa
    
    # Retrieve Policy Types
    # Retrieve Identity Provider ID
    this = zpa.get_id_p_controller(name="Idp_Name")
    # Retrieve SAML Attribute ID
    email_user_sso = zpa.get_saml_attribute(name="Email_Users",
        idp_name="Idp_Name")
    # Retrieve SAML Attribute ID
    group_user = zpa.get_saml_attribute(name="GroupName_Users",
        idp_name="Idp_Name")
    # Retrieve SCIM Group ID
    a000 = zpa.get_scim_groups(name="A000",
        idp_name="Idp_Name")
    # Retrieve SCIM Group ID
    b000 = zpa.get_scim_groups(name="B000",
        idp_name="Idp_Name")
    # Create Segment Group
    this_segment_group = zpa.SegmentGroup("this",
        name="Example",
        description="Example",
        enabled=True)
    # Create Policy Access Rule V2
    this_policy_browser_protection_rule = zpa.PolicyBrowserProtectionRule("this",
        name="Example",
        description="Example",
        action="MONITOR",
        conditions=[
            {
                "operator": "OR",
                "operands": [{
                    "object_type": "APP_GROUP",
                    "values": [this_segment_group.id],
                }],
            },
            {
                "operator": "OR",
                "operands": [
                    {
                        "object_type": "SAML",
                        "entry_values": [
                            {
                                "rhs": "user1@acme.com",
                                "lhs": email_user_sso.id,
                            },
                            {
                                "rhs": "A000",
                                "lhs": group_user.id,
                            },
                        ],
                    },
                    {
                        "object_type": "SCIM_GROUP",
                        "entry_values": [
                            {
                                "rhs": a000.id,
                                "lhs": this.id,
                            },
                            {
                                "rhs": b000.id,
                                "lhs": this.id,
                            },
                        ],
                    },
                ],
            },
            {
                "operator": "OR",
                "operands": [{
                    "object_type": "USER_PORTAL",
                    "values": ["145262059234265326"],
                }],
            },
            {
                "operator": "OR",
                "operands": [{
                    "object_type": "CLIENT_TYPE",
                    "values": ["zpn_client_type_exporter"],
                }],
            },
        ])
    
    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 {
    		// Retrieve Policy Types
    		// Retrieve Identity Provider ID
    		this, err := zpa.GetIdPController(ctx, &zpa.GetIdPControllerArgs{
    			Name: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Retrieve SAML Attribute ID
    		emailUserSso, err := zpa.GetSAMLAttribute(ctx, &zpa.GetSAMLAttributeArgs{
    			Name:    pulumi.StringRef("Email_Users"),
    			IdpName: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Retrieve SAML Attribute ID
    		groupUser, err := zpa.GetSAMLAttribute(ctx, &zpa.GetSAMLAttributeArgs{
    			Name:    pulumi.StringRef("GroupName_Users"),
    			IdpName: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Retrieve SCIM Group ID
    		a000, err := zpa.GetSCIMGroups(ctx, &zpa.GetSCIMGroupsArgs{
    			Name:    pulumi.StringRef("A000"),
    			IdpName: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Retrieve SCIM Group ID
    		b000, err := zpa.GetSCIMGroups(ctx, &zpa.GetSCIMGroupsArgs{
    			Name:    pulumi.StringRef("B000"),
    			IdpName: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Create Segment Group
    		thisSegmentGroup, err := zpa.NewSegmentGroup(ctx, "this", &zpa.SegmentGroupArgs{
    			Name:        pulumi.String("Example"),
    			Description: pulumi.String("Example"),
    			Enabled:     pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		// Create Policy Access Rule V2
    		_, err = zpa.NewPolicyBrowserProtectionRule(ctx, "this", &zpa.PolicyBrowserProtectionRuleArgs{
    			Name:        pulumi.String("Example"),
    			Description: pulumi.String("Example"),
    			Action:      pulumi.String("MONITOR"),
    			Conditions: zpa.PolicyBrowserProtectionRuleConditionArray{
    				&zpa.PolicyBrowserProtectionRuleConditionArgs{
    					Operator: pulumi.String("OR"),
    					Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("APP_GROUP"),
    							Values: pulumi.StringArray{
    								thisSegmentGroup.ID(),
    							},
    						},
    					},
    				},
    				&zpa.PolicyBrowserProtectionRuleConditionArgs{
    					Operator: pulumi.String("OR"),
    					Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("SAML"),
    							EntryValues: zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArray{
    								&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    									Rhs: pulumi.String("user1@acme.com"),
    									Lhs: pulumi.String(emailUserSso.Id),
    								},
    								&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    									Rhs: pulumi.String("A000"),
    									Lhs: pulumi.String(groupUser.Id),
    								},
    							},
    						},
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("SCIM_GROUP"),
    							EntryValues: zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArray{
    								&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    									Rhs: pulumi.String(a000.Id),
    									Lhs: pulumi.String(this.Id),
    								},
    								&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    									Rhs: pulumi.String(b000.Id),
    									Lhs: pulumi.String(this.Id),
    								},
    							},
    						},
    					},
    				},
    				&zpa.PolicyBrowserProtectionRuleConditionArgs{
    					Operator: pulumi.String("OR"),
    					Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("USER_PORTAL"),
    							Values: pulumi.StringArray{
    								pulumi.String("145262059234265326"),
    							},
    						},
    					},
    				},
    				&zpa.PolicyBrowserProtectionRuleConditionArgs{
    					Operator: pulumi.String("OR"),
    					Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("CLIENT_TYPE"),
    							Values: pulumi.StringArray{
    								pulumi.String("zpn_client_type_exporter"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Pulumi.Zpa;
    using Zpa = zscaler.PulumiPackage.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        // Retrieve Policy Types
        // Retrieve Identity Provider ID
        var @this = Zpa.GetIdPController.Invoke(new()
        {
            Name = "Idp_Name",
        });
    
        // Retrieve SAML Attribute ID
        var emailUserSso = Zpa.GetSAMLAttribute.Invoke(new()
        {
            Name = "Email_Users",
            IdpName = "Idp_Name",
        });
    
        // Retrieve SAML Attribute ID
        var groupUser = Zpa.GetSAMLAttribute.Invoke(new()
        {
            Name = "GroupName_Users",
            IdpName = "Idp_Name",
        });
    
        // Retrieve SCIM Group ID
        var a000 = Zpa.GetSCIMGroups.Invoke(new()
        {
            Name = "A000",
            IdpName = "Idp_Name",
        });
    
        // Retrieve SCIM Group ID
        var b000 = Zpa.GetSCIMGroups.Invoke(new()
        {
            Name = "B000",
            IdpName = "Idp_Name",
        });
    
        // Create Segment Group
        var thisSegmentGroup = new Zpa.SegmentGroup("this", new()
        {
            Name = "Example",
            Description = "Example",
            Enabled = true,
        });
    
        // Create Policy Access Rule V2
        var thisPolicyBrowserProtectionRule = new Zpa.PolicyBrowserProtectionRule("this", new()
        {
            Name = "Example",
            Description = "Example",
            Action = "MONITOR",
            Conditions = new[]
            {
                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
                {
                    Operator = "OR",
                    Operands = new[]
                    {
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "APP_GROUP",
                            Values = new[]
                            {
                                thisSegmentGroup.Id,
                            },
                        },
                    },
                },
                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
                {
                    Operator = "OR",
                    Operands = new[]
                    {
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "SAML",
                            EntryValues = new[]
                            {
                                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                                {
                                    Rhs = "user1@acme.com",
                                    Lhs = emailUserSso.Apply(getSAMLAttributeResult => getSAMLAttributeResult.Id),
                                },
                                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                                {
                                    Rhs = "A000",
                                    Lhs = groupUser.Apply(getSAMLAttributeResult => getSAMLAttributeResult.Id),
                                },
                            },
                        },
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "SCIM_GROUP",
                            EntryValues = new[]
                            {
                                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                                {
                                    Rhs = a000.Apply(getSCIMGroupsResult => getSCIMGroupsResult.Id),
                                    Lhs = @this.Apply(@this => @this.Apply(getIdPControllerResult => getIdPControllerResult.Id)),
                                },
                                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                                {
                                    Rhs = b000.Apply(getSCIMGroupsResult => getSCIMGroupsResult.Id),
                                    Lhs = @this.Apply(@this => @this.Apply(getIdPControllerResult => getIdPControllerResult.Id)),
                                },
                            },
                        },
                    },
                },
                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
                {
                    Operator = "OR",
                    Operands = new[]
                    {
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "USER_PORTAL",
                            Values = new[]
                            {
                                "145262059234265326",
                            },
                        },
                    },
                },
                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
                {
                    Operator = "OR",
                    Operands = new[]
                    {
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "CLIENT_TYPE",
                            Values = new[]
                            {
                                "zpn_client_type_exporter",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    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.GetIdPControllerArgs;
    import com.pulumi.zpa.inputs.GetSAMLAttributeArgs;
    import com.pulumi.zpa.inputs.GetSCIMGroupsArgs;
    import com.pulumi.zpa.SegmentGroup;
    import com.pulumi.zpa.SegmentGroupArgs;
    import com.pulumi.zpa.PolicyBrowserProtectionRule;
    import com.pulumi.zpa.PolicyBrowserProtectionRuleArgs;
    import com.pulumi.zpa.inputs.PolicyBrowserProtectionRuleConditionArgs;
    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 Policy Types
            // Retrieve Identity Provider ID
            final var this = ZpaFunctions.getIdPController(GetIdPControllerArgs.builder()
                .name("Idp_Name")
                .build());
    
            // Retrieve SAML Attribute ID
            final var emailUserSso = ZpaFunctions.getSAMLAttribute(GetSAMLAttributeArgs.builder()
                .name("Email_Users")
                .idpName("Idp_Name")
                .build());
    
            // Retrieve SAML Attribute ID
            final var groupUser = ZpaFunctions.getSAMLAttribute(GetSAMLAttributeArgs.builder()
                .name("GroupName_Users")
                .idpName("Idp_Name")
                .build());
    
            // Retrieve SCIM Group ID
            final var a000 = ZpaFunctions.getSCIMGroups(GetSCIMGroupsArgs.builder()
                .name("A000")
                .idpName("Idp_Name")
                .build());
    
            // Retrieve SCIM Group ID
            final var b000 = ZpaFunctions.getSCIMGroups(GetSCIMGroupsArgs.builder()
                .name("B000")
                .idpName("Idp_Name")
                .build());
    
            // Create Segment Group
            var thisSegmentGroup = new SegmentGroup("thisSegmentGroup", SegmentGroupArgs.builder()
                .name("Example")
                .description("Example")
                .enabled(true)
                .build());
    
            // Create Policy Access Rule V2
            var thisPolicyBrowserProtectionRule = new PolicyBrowserProtectionRule("thisPolicyBrowserProtectionRule", PolicyBrowserProtectionRuleArgs.builder()
                .name("Example")
                .description("Example")
                .action("MONITOR")
                .conditions(            
                    PolicyBrowserProtectionRuleConditionArgs.builder()
                        .operator("OR")
                        .operands(PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                            .objectType("APP_GROUP")
                            .values(thisSegmentGroup.id())
                            .build())
                        .build(),
                    PolicyBrowserProtectionRuleConditionArgs.builder()
                        .operator("OR")
                        .operands(                    
                            PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                                .objectType("SAML")
                                .entryValues(                            
                                    PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                                        .rhs("user1@acme.com")
                                        .lhs(emailUserSso.id())
                                        .build(),
                                    PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                                        .rhs("A000")
                                        .lhs(groupUser.id())
                                        .build())
                                .build(),
                            PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                                .objectType("SCIM_GROUP")
                                .entryValues(                            
                                    PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                                        .rhs(a000.id())
                                        .lhs(this_.id())
                                        .build(),
                                    PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                                        .rhs(b000.id())
                                        .lhs(this_.id())
                                        .build())
                                .build())
                        .build(),
                    PolicyBrowserProtectionRuleConditionArgs.builder()
                        .operator("OR")
                        .operands(PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                            .objectType("USER_PORTAL")
                            .values("145262059234265326")
                            .build())
                        .build(),
                    PolicyBrowserProtectionRuleConditionArgs.builder()
                        .operator("OR")
                        .operands(PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                            .objectType("CLIENT_TYPE")
                            .values("zpn_client_type_exporter")
                            .build())
                        .build())
                .build());
    
        }
    }
    
    resources:
      # Create Segment Group
      thisSegmentGroup:
        type: zpa:SegmentGroup
        name: this
        properties:
          name: Example
          description: Example
          enabled: true
      # Create Policy Access Rule V2
      thisPolicyBrowserProtectionRule:
        type: zpa:PolicyBrowserProtectionRule
        name: this
        properties:
          name: Example
          description: Example
          action: MONITOR
          conditions:
            - operator: OR
              operands:
                - objectType: APP_GROUP
                  values:
                    - ${thisSegmentGroup.id}
            - operator: OR
              operands:
                - objectType: SAML
                  entryValues:
                    - rhs: user1@acme.com
                      lhs: ${emailUserSso.id}
                    - rhs: A000
                      lhs: ${groupUser.id}
                - objectType: SCIM_GROUP
                  entryValues:
                    - rhs: ${a000.id}
                      lhs: ${this.id}
                    - rhs: ${b000.id}
                      lhs: ${this.id}
            - operator: OR
              operands:
                - objectType: USER_PORTAL
                  values:
                    - '145262059234265326'
            - operator: OR
              operands:
                - objectType: CLIENT_TYPE
                  values:
                    - zpn_client_type_exporter
    variables:
      # Retrieve Policy Types
      # Retrieve Identity Provider ID
      this:
        fn::invoke:
          function: zpa:getIdPController
          arguments:
            name: Idp_Name
      # Retrieve SAML Attribute ID
      emailUserSso:
        fn::invoke:
          function: zpa:getSAMLAttribute
          arguments:
            name: Email_Users
            idpName: Idp_Name
      # Retrieve SAML Attribute ID
      groupUser:
        fn::invoke:
          function: zpa:getSAMLAttribute
          arguments:
            name: GroupName_Users
            idpName: Idp_Name
      # Retrieve SCIM Group ID
      a000:
        fn::invoke:
          function: zpa:getSCIMGroups
          arguments:
            name: A000
            idpName: Idp_Name
      # Retrieve SCIM Group ID
      b000:
        fn::invoke:
          function: zpa:getSCIMGroups
          arguments:
            name: B000
            idpName: Idp_Name
    

    Browser Protection With DO_NOT_MONITOR ACTION

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@bdzscaler/pulumi-zpa";
    
    // Retrieve Policy Types
    // Retrieve Identity Provider ID
    const _this = zpa.getIdPController({
        name: "Idp_Name",
    });
    // Retrieve SAML Attribute ID
    const emailUserSso = zpa.getSAMLAttribute({
        name: "Email_Users",
        idpName: "Idp_Name",
    });
    // Retrieve SAML Attribute ID
    const groupUser = zpa.getSAMLAttribute({
        name: "GroupName_Users",
        idpName: "Idp_Name",
    });
    // Retrieve SCIM Group ID
    const a000 = zpa.getSCIMGroups({
        name: "A000",
        idpName: "Idp_Name",
    });
    // Retrieve SCIM Group ID
    const b000 = zpa.getSCIMGroups({
        name: "B000",
        idpName: "Idp_Name",
    });
    // Create Segment Group
    const thisSegmentGroup = new zpa.SegmentGroup("this", {
        name: "Example",
        description: "Example",
        enabled: true,
    });
    // Create Policy Access Rule V2
    const thisPolicyBrowserProtectionRule = new zpa.PolicyBrowserProtectionRule("this", {
        name: "Example",
        description: "Example",
        action: "DO_NOT_MONITOR",
        conditions: [
            {
                operator: "OR",
                operands: [{
                    objectType: "APP_GROUP",
                    values: [thisSegmentGroup.id],
                }],
            },
            {
                operator: "OR",
                operands: [
                    {
                        objectType: "SAML",
                        entryValues: [
                            {
                                rhs: "user1@acme.com",
                                lhs: emailUserSso.then(emailUserSso => emailUserSso.id),
                            },
                            {
                                rhs: "A000",
                                lhs: groupUser.then(groupUser => groupUser.id),
                            },
                        ],
                    },
                    {
                        objectType: "SCIM_GROUP",
                        entryValues: [
                            {
                                rhs: a000.then(a000 => a000.id),
                                lhs: _this.then(_this => _this.id),
                            },
                            {
                                rhs: b000.then(b000 => b000.id),
                                lhs: _this.then(_this => _this.id),
                            },
                        ],
                    },
                ],
            },
            {
                operator: "OR",
                operands: [{
                    objectType: "USER_PORTAL",
                    values: ["145262059234265326"],
                }],
            },
            {
                operator: "OR",
                operands: [{
                    objectType: "CLIENT_TYPE",
                    values: ["zpn_client_type_exporter"],
                }],
            },
        ],
    });
    
    import pulumi
    import pulumi_zpa as zpa
    import zscaler_pulumi_zpa as zpa
    
    # Retrieve Policy Types
    # Retrieve Identity Provider ID
    this = zpa.get_id_p_controller(name="Idp_Name")
    # Retrieve SAML Attribute ID
    email_user_sso = zpa.get_saml_attribute(name="Email_Users",
        idp_name="Idp_Name")
    # Retrieve SAML Attribute ID
    group_user = zpa.get_saml_attribute(name="GroupName_Users",
        idp_name="Idp_Name")
    # Retrieve SCIM Group ID
    a000 = zpa.get_scim_groups(name="A000",
        idp_name="Idp_Name")
    # Retrieve SCIM Group ID
    b000 = zpa.get_scim_groups(name="B000",
        idp_name="Idp_Name")
    # Create Segment Group
    this_segment_group = zpa.SegmentGroup("this",
        name="Example",
        description="Example",
        enabled=True)
    # Create Policy Access Rule V2
    this_policy_browser_protection_rule = zpa.PolicyBrowserProtectionRule("this",
        name="Example",
        description="Example",
        action="DO_NOT_MONITOR",
        conditions=[
            {
                "operator": "OR",
                "operands": [{
                    "object_type": "APP_GROUP",
                    "values": [this_segment_group.id],
                }],
            },
            {
                "operator": "OR",
                "operands": [
                    {
                        "object_type": "SAML",
                        "entry_values": [
                            {
                                "rhs": "user1@acme.com",
                                "lhs": email_user_sso.id,
                            },
                            {
                                "rhs": "A000",
                                "lhs": group_user.id,
                            },
                        ],
                    },
                    {
                        "object_type": "SCIM_GROUP",
                        "entry_values": [
                            {
                                "rhs": a000.id,
                                "lhs": this.id,
                            },
                            {
                                "rhs": b000.id,
                                "lhs": this.id,
                            },
                        ],
                    },
                ],
            },
            {
                "operator": "OR",
                "operands": [{
                    "object_type": "USER_PORTAL",
                    "values": ["145262059234265326"],
                }],
            },
            {
                "operator": "OR",
                "operands": [{
                    "object_type": "CLIENT_TYPE",
                    "values": ["zpn_client_type_exporter"],
                }],
            },
        ])
    
    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 {
    		// Retrieve Policy Types
    		// Retrieve Identity Provider ID
    		this, err := zpa.GetIdPController(ctx, &zpa.GetIdPControllerArgs{
    			Name: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Retrieve SAML Attribute ID
    		emailUserSso, err := zpa.GetSAMLAttribute(ctx, &zpa.GetSAMLAttributeArgs{
    			Name:    pulumi.StringRef("Email_Users"),
    			IdpName: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Retrieve SAML Attribute ID
    		groupUser, err := zpa.GetSAMLAttribute(ctx, &zpa.GetSAMLAttributeArgs{
    			Name:    pulumi.StringRef("GroupName_Users"),
    			IdpName: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Retrieve SCIM Group ID
    		a000, err := zpa.GetSCIMGroups(ctx, &zpa.GetSCIMGroupsArgs{
    			Name:    pulumi.StringRef("A000"),
    			IdpName: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Retrieve SCIM Group ID
    		b000, err := zpa.GetSCIMGroups(ctx, &zpa.GetSCIMGroupsArgs{
    			Name:    pulumi.StringRef("B000"),
    			IdpName: pulumi.StringRef("Idp_Name"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Create Segment Group
    		thisSegmentGroup, err := zpa.NewSegmentGroup(ctx, "this", &zpa.SegmentGroupArgs{
    			Name:        pulumi.String("Example"),
    			Description: pulumi.String("Example"),
    			Enabled:     pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		// Create Policy Access Rule V2
    		_, err = zpa.NewPolicyBrowserProtectionRule(ctx, "this", &zpa.PolicyBrowserProtectionRuleArgs{
    			Name:        pulumi.String("Example"),
    			Description: pulumi.String("Example"),
    			Action:      pulumi.String("DO_NOT_MONITOR"),
    			Conditions: zpa.PolicyBrowserProtectionRuleConditionArray{
    				&zpa.PolicyBrowserProtectionRuleConditionArgs{
    					Operator: pulumi.String("OR"),
    					Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("APP_GROUP"),
    							Values: pulumi.StringArray{
    								thisSegmentGroup.ID(),
    							},
    						},
    					},
    				},
    				&zpa.PolicyBrowserProtectionRuleConditionArgs{
    					Operator: pulumi.String("OR"),
    					Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("SAML"),
    							EntryValues: zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArray{
    								&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    									Rhs: pulumi.String("user1@acme.com"),
    									Lhs: pulumi.String(emailUserSso.Id),
    								},
    								&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    									Rhs: pulumi.String("A000"),
    									Lhs: pulumi.String(groupUser.Id),
    								},
    							},
    						},
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("SCIM_GROUP"),
    							EntryValues: zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArray{
    								&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    									Rhs: pulumi.String(a000.Id),
    									Lhs: pulumi.String(this.Id),
    								},
    								&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    									Rhs: pulumi.String(b000.Id),
    									Lhs: pulumi.String(this.Id),
    								},
    							},
    						},
    					},
    				},
    				&zpa.PolicyBrowserProtectionRuleConditionArgs{
    					Operator: pulumi.String("OR"),
    					Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("USER_PORTAL"),
    							Values: pulumi.StringArray{
    								pulumi.String("145262059234265326"),
    							},
    						},
    					},
    				},
    				&zpa.PolicyBrowserProtectionRuleConditionArgs{
    					Operator: pulumi.String("OR"),
    					Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    							ObjectType: pulumi.String("CLIENT_TYPE"),
    							Values: pulumi.StringArray{
    								pulumi.String("zpn_client_type_exporter"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Pulumi.Zpa;
    using Zpa = zscaler.PulumiPackage.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        // Retrieve Policy Types
        // Retrieve Identity Provider ID
        var @this = Zpa.GetIdPController.Invoke(new()
        {
            Name = "Idp_Name",
        });
    
        // Retrieve SAML Attribute ID
        var emailUserSso = Zpa.GetSAMLAttribute.Invoke(new()
        {
            Name = "Email_Users",
            IdpName = "Idp_Name",
        });
    
        // Retrieve SAML Attribute ID
        var groupUser = Zpa.GetSAMLAttribute.Invoke(new()
        {
            Name = "GroupName_Users",
            IdpName = "Idp_Name",
        });
    
        // Retrieve SCIM Group ID
        var a000 = Zpa.GetSCIMGroups.Invoke(new()
        {
            Name = "A000",
            IdpName = "Idp_Name",
        });
    
        // Retrieve SCIM Group ID
        var b000 = Zpa.GetSCIMGroups.Invoke(new()
        {
            Name = "B000",
            IdpName = "Idp_Name",
        });
    
        // Create Segment Group
        var thisSegmentGroup = new Zpa.SegmentGroup("this", new()
        {
            Name = "Example",
            Description = "Example",
            Enabled = true,
        });
    
        // Create Policy Access Rule V2
        var thisPolicyBrowserProtectionRule = new Zpa.PolicyBrowserProtectionRule("this", new()
        {
            Name = "Example",
            Description = "Example",
            Action = "DO_NOT_MONITOR",
            Conditions = new[]
            {
                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
                {
                    Operator = "OR",
                    Operands = new[]
                    {
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "APP_GROUP",
                            Values = new[]
                            {
                                thisSegmentGroup.Id,
                            },
                        },
                    },
                },
                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
                {
                    Operator = "OR",
                    Operands = new[]
                    {
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "SAML",
                            EntryValues = new[]
                            {
                                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                                {
                                    Rhs = "user1@acme.com",
                                    Lhs = emailUserSso.Apply(getSAMLAttributeResult => getSAMLAttributeResult.Id),
                                },
                                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                                {
                                    Rhs = "A000",
                                    Lhs = groupUser.Apply(getSAMLAttributeResult => getSAMLAttributeResult.Id),
                                },
                            },
                        },
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "SCIM_GROUP",
                            EntryValues = new[]
                            {
                                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                                {
                                    Rhs = a000.Apply(getSCIMGroupsResult => getSCIMGroupsResult.Id),
                                    Lhs = @this.Apply(@this => @this.Apply(getIdPControllerResult => getIdPControllerResult.Id)),
                                },
                                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                                {
                                    Rhs = b000.Apply(getSCIMGroupsResult => getSCIMGroupsResult.Id),
                                    Lhs = @this.Apply(@this => @this.Apply(getIdPControllerResult => getIdPControllerResult.Id)),
                                },
                            },
                        },
                    },
                },
                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
                {
                    Operator = "OR",
                    Operands = new[]
                    {
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "USER_PORTAL",
                            Values = new[]
                            {
                                "145262059234265326",
                            },
                        },
                    },
                },
                new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
                {
                    Operator = "OR",
                    Operands = new[]
                    {
                        new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                        {
                            ObjectType = "CLIENT_TYPE",
                            Values = new[]
                            {
                                "zpn_client_type_exporter",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    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.GetIdPControllerArgs;
    import com.pulumi.zpa.inputs.GetSAMLAttributeArgs;
    import com.pulumi.zpa.inputs.GetSCIMGroupsArgs;
    import com.pulumi.zpa.SegmentGroup;
    import com.pulumi.zpa.SegmentGroupArgs;
    import com.pulumi.zpa.PolicyBrowserProtectionRule;
    import com.pulumi.zpa.PolicyBrowserProtectionRuleArgs;
    import com.pulumi.zpa.inputs.PolicyBrowserProtectionRuleConditionArgs;
    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 Policy Types
            // Retrieve Identity Provider ID
            final var this = ZpaFunctions.getIdPController(GetIdPControllerArgs.builder()
                .name("Idp_Name")
                .build());
    
            // Retrieve SAML Attribute ID
            final var emailUserSso = ZpaFunctions.getSAMLAttribute(GetSAMLAttributeArgs.builder()
                .name("Email_Users")
                .idpName("Idp_Name")
                .build());
    
            // Retrieve SAML Attribute ID
            final var groupUser = ZpaFunctions.getSAMLAttribute(GetSAMLAttributeArgs.builder()
                .name("GroupName_Users")
                .idpName("Idp_Name")
                .build());
    
            // Retrieve SCIM Group ID
            final var a000 = ZpaFunctions.getSCIMGroups(GetSCIMGroupsArgs.builder()
                .name("A000")
                .idpName("Idp_Name")
                .build());
    
            // Retrieve SCIM Group ID
            final var b000 = ZpaFunctions.getSCIMGroups(GetSCIMGroupsArgs.builder()
                .name("B000")
                .idpName("Idp_Name")
                .build());
    
            // Create Segment Group
            var thisSegmentGroup = new SegmentGroup("thisSegmentGroup", SegmentGroupArgs.builder()
                .name("Example")
                .description("Example")
                .enabled(true)
                .build());
    
            // Create Policy Access Rule V2
            var thisPolicyBrowserProtectionRule = new PolicyBrowserProtectionRule("thisPolicyBrowserProtectionRule", PolicyBrowserProtectionRuleArgs.builder()
                .name("Example")
                .description("Example")
                .action("DO_NOT_MONITOR")
                .conditions(            
                    PolicyBrowserProtectionRuleConditionArgs.builder()
                        .operator("OR")
                        .operands(PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                            .objectType("APP_GROUP")
                            .values(thisSegmentGroup.id())
                            .build())
                        .build(),
                    PolicyBrowserProtectionRuleConditionArgs.builder()
                        .operator("OR")
                        .operands(                    
                            PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                                .objectType("SAML")
                                .entryValues(                            
                                    PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                                        .rhs("user1@acme.com")
                                        .lhs(emailUserSso.id())
                                        .build(),
                                    PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                                        .rhs("A000")
                                        .lhs(groupUser.id())
                                        .build())
                                .build(),
                            PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                                .objectType("SCIM_GROUP")
                                .entryValues(                            
                                    PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                                        .rhs(a000.id())
                                        .lhs(this_.id())
                                        .build(),
                                    PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                                        .rhs(b000.id())
                                        .lhs(this_.id())
                                        .build())
                                .build())
                        .build(),
                    PolicyBrowserProtectionRuleConditionArgs.builder()
                        .operator("OR")
                        .operands(PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                            .objectType("USER_PORTAL")
                            .values("145262059234265326")
                            .build())
                        .build(),
                    PolicyBrowserProtectionRuleConditionArgs.builder()
                        .operator("OR")
                        .operands(PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                            .objectType("CLIENT_TYPE")
                            .values("zpn_client_type_exporter")
                            .build())
                        .build())
                .build());
    
        }
    }
    
    resources:
      # Create Segment Group
      thisSegmentGroup:
        type: zpa:SegmentGroup
        name: this
        properties:
          name: Example
          description: Example
          enabled: true
      # Create Policy Access Rule V2
      thisPolicyBrowserProtectionRule:
        type: zpa:PolicyBrowserProtectionRule
        name: this
        properties:
          name: Example
          description: Example
          action: DO_NOT_MONITOR
          conditions:
            - operator: OR
              operands:
                - objectType: APP_GROUP
                  values:
                    - ${thisSegmentGroup.id}
            - operator: OR
              operands:
                - objectType: SAML
                  entryValues:
                    - rhs: user1@acme.com
                      lhs: ${emailUserSso.id}
                    - rhs: A000
                      lhs: ${groupUser.id}
                - objectType: SCIM_GROUP
                  entryValues:
                    - rhs: ${a000.id}
                      lhs: ${this.id}
                    - rhs: ${b000.id}
                      lhs: ${this.id}
            - operator: OR
              operands:
                - objectType: USER_PORTAL
                  values:
                    - '145262059234265326'
            - operator: OR
              operands:
                - objectType: CLIENT_TYPE
                  values:
                    - zpn_client_type_exporter
    variables:
      # Retrieve Policy Types
      # Retrieve Identity Provider ID
      this:
        fn::invoke:
          function: zpa:getIdPController
          arguments:
            name: Idp_Name
      # Retrieve SAML Attribute ID
      emailUserSso:
        fn::invoke:
          function: zpa:getSAMLAttribute
          arguments:
            name: Email_Users
            idpName: Idp_Name
      # Retrieve SAML Attribute ID
      groupUser:
        fn::invoke:
          function: zpa:getSAMLAttribute
          arguments:
            name: GroupName_Users
            idpName: Idp_Name
      # Retrieve SCIM Group ID
      a000:
        fn::invoke:
          function: zpa:getSCIMGroups
          arguments:
            name: A000
            idpName: Idp_Name
      # Retrieve SCIM Group ID
      b000:
        fn::invoke:
          function: zpa:getSCIMGroups
          arguments:
            name: B000
            idpName: Idp_Name
    

    LHS and RHS Values

    Object TypeLHSRHSVALUES
    APP<span pulumi-lang-nodejs="applicationSegmentId" pulumi-lang-dotnet="ApplicationSegmentId" pulumi-lang-go="applicationSegmentId" pulumi-lang-python="application_segment_id" pulumi-lang-yaml="applicationSegmentId" pulumi-lang-java="applicationSegmentId">application_segment_id</span>
    APP_GROUP<span pulumi-lang-nodejs="segmentGroupId" pulumi-lang-dotnet="SegmentGroupId" pulumi-lang-go="segmentGroupId" pulumi-lang-python="segment_group_id" pulumi-lang-yaml="segmentGroupId" pulumi-lang-java="segmentGroupId">segment_group_id</span>
    CLIENT_TYPE<span pulumi-lang-nodejs="zpnClientTypeZappl" pulumi-lang-dotnet="ZpnClientTypeZappl" pulumi-lang-go="zpnClientTypeZappl" pulumi-lang-python="zpn_client_type_zappl" pulumi-lang-yaml="zpnClientTypeZappl" pulumi-lang-java="zpnClientTypeZappl">zpn_client_type_zappl</span>, <span pulumi-lang-nodejs="zpnClientTypeExporter" pulumi-lang-dotnet="ZpnClientTypeExporter" pulumi-lang-go="zpnClientTypeExporter" pulumi-lang-python="zpn_client_type_exporter" pulumi-lang-yaml="zpnClientTypeExporter" pulumi-lang-java="zpnClientTypeExporter">zpn_client_type_exporter</span>, <span pulumi-lang-nodejs="zpnClientTypeBrowserIsolation" pulumi-lang-dotnet="ZpnClientTypeBrowserIsolation" pulumi-lang-go="zpnClientTypeBrowserIsolation" pulumi-lang-python="zpn_client_type_browser_isolation" pulumi-lang-yaml="zpnClientTypeBrowserIsolation" pulumi-lang-java="zpnClientTypeBrowserIsolation">zpn_client_type_browser_isolation</span>, <span pulumi-lang-nodejs="zpnClientTypeIpAnchoring" pulumi-lang-dotnet="ZpnClientTypeIpAnchoring" pulumi-lang-go="zpnClientTypeIpAnchoring" pulumi-lang-python="zpn_client_type_ip_anchoring" pulumi-lang-yaml="zpnClientTypeIpAnchoring" pulumi-lang-java="zpnClientTypeIpAnchoring">zpn_client_type_ip_anchoring</span>, <span pulumi-lang-nodejs="zpnClientTypeEdgeConnector" pulumi-lang-dotnet="ZpnClientTypeEdgeConnector" pulumi-lang-go="zpnClientTypeEdgeConnector" pulumi-lang-python="zpn_client_type_edge_connector" pulumi-lang-yaml="zpnClientTypeEdgeConnector" pulumi-lang-java="zpnClientTypeEdgeConnector">zpn_client_type_edge_connector</span>, <span pulumi-lang-nodejs="zpnClientTypeBranchConnector" pulumi-lang-dotnet="ZpnClientTypeBranchConnector" pulumi-lang-go="zpnClientTypeBranchConnector" pulumi-lang-python="zpn_client_type_branch_connector" pulumi-lang-yaml="zpnClientTypeBranchConnector" pulumi-lang-java="zpnClientTypeBranchConnector">zpn_client_type_branch_connector</span>, <span pulumi-lang-nodejs="zpnClientTypeZappPartner" pulumi-lang-dotnet="ZpnClientTypeZappPartner" pulumi-lang-go="zpnClientTypeZappPartner" pulumi-lang-python="zpn_client_type_zapp_partner" pulumi-lang-yaml="zpnClientTypeZappPartner" pulumi-lang-java="zpnClientTypeZappPartner">zpn_client_type_zapp_partner</span>, <span pulumi-lang-nodejs="zpnClientTypeZapp" pulumi-lang-dotnet="ZpnClientTypeZapp" pulumi-lang-go="zpnClientTypeZapp" pulumi-lang-python="zpn_client_type_zapp" pulumi-lang-yaml="zpnClientTypeZapp" pulumi-lang-java="zpnClientTypeZapp">zpn_client_type_zapp</span>
    EDGE_CONNECTOR_GROUP<edge_connector_id>
    BRANCH_CONNECTOR_GROUP<branch_connector_id>
    LOCATION<span pulumi-lang-nodejs="locationId" pulumi-lang-dotnet="LocationId" pulumi-lang-go="locationId" pulumi-lang-python="location_id" pulumi-lang-yaml="locationId" pulumi-lang-java="locationId">location_id</span>
    MACHINE_GRP<span pulumi-lang-nodejs="machineGroupId" pulumi-lang-dotnet="MachineGroupId" pulumi-lang-go="machineGroupId" pulumi-lang-python="machine_group_id" pulumi-lang-yaml="machineGroupId" pulumi-lang-java="machineGroupId">machine_group_id</span>
    SAML<span pulumi-lang-nodejs="samlAttributeId" pulumi-lang-dotnet="SamlAttributeId" pulumi-lang-go="samlAttributeId" pulumi-lang-python="saml_attribute_id" pulumi-lang-yaml="samlAttributeId" pulumi-lang-java="samlAttributeId">saml_attribute_id</span><span pulumi-lang-nodejs="attributeValueToMatch" pulumi-lang-dotnet="AttributeValueToMatch" pulumi-lang-go="attributeValueToMatch" pulumi-lang-python="attribute_value_to_match" pulumi-lang-yaml="attributeValueToMatch" pulumi-lang-java="attributeValueToMatch">attribute_value_to_match</span>
    SCIM<span pulumi-lang-nodejs="scimAttributeId" pulumi-lang-dotnet="ScimAttributeId" pulumi-lang-go="scimAttributeId" pulumi-lang-python="scim_attribute_id" pulumi-lang-yaml="scimAttributeId" pulumi-lang-java="scimAttributeId">scim_attribute_id</span><span pulumi-lang-nodejs="attributeValueToMatch" pulumi-lang-dotnet="AttributeValueToMatch" pulumi-lang-go="attributeValueToMatch" pulumi-lang-python="attribute_value_to_match" pulumi-lang-yaml="attributeValueToMatch" pulumi-lang-java="attributeValueToMatch">attribute_value_to_match</span>
    SCIM_GROUP<span pulumi-lang-nodejs="scimGroupAttributeId" pulumi-lang-dotnet="ScimGroupAttributeId" pulumi-lang-go="scimGroupAttributeId" pulumi-lang-python="scim_group_attribute_id" pulumi-lang-yaml="scimGroupAttributeId" pulumi-lang-java="scimGroupAttributeId">scim_group_attribute_id</span><span pulumi-lang-nodejs="attributeValueToMatch" pulumi-lang-dotnet="AttributeValueToMatch" pulumi-lang-go="attributeValueToMatch" pulumi-lang-python="attribute_value_to_match" pulumi-lang-yaml="attributeValueToMatch" pulumi-lang-java="attributeValueToMatch">attribute_value_to_match</span>
    PLATFORM<span pulumi-lang-nodejs="mac" pulumi-lang-dotnet="Mac" pulumi-lang-go="mac" pulumi-lang-python="mac" pulumi-lang-yaml="mac" pulumi-lang-java="mac">mac</span>, <span pulumi-lang-nodejs="ios" pulumi-lang-dotnet="Ios" pulumi-lang-go="ios" pulumi-lang-python="ios" pulumi-lang-yaml="ios" pulumi-lang-java="ios">ios</span>, <span pulumi-lang-nodejs="windows" pulumi-lang-dotnet="Windows" pulumi-lang-go="windows" pulumi-lang-python="windows" pulumi-lang-yaml="windows" pulumi-lang-java="windows">windows</span>, <span pulumi-lang-nodejs="android" pulumi-lang-dotnet="Android" pulumi-lang-go="android" pulumi-lang-python="android" pulumi-lang-yaml="android" pulumi-lang-java="android">android</span>, <span pulumi-lang-nodejs="linux" pulumi-lang-dotnet="Linux" pulumi-lang-go="linux" pulumi-lang-python="linux" pulumi-lang-yaml="linux" pulumi-lang-java="linux">linux</span>"true" / "false"
    POSTURE<span pulumi-lang-nodejs="postureUdid" pulumi-lang-dotnet="PostureUdid" pulumi-lang-go="postureUdid" pulumi-lang-python="posture_udid" pulumi-lang-yaml="postureUdid" pulumi-lang-java="postureUdid">posture_udid</span>"true" / "false"
    TRUSTED_NETWORK<span pulumi-lang-nodejs="networkId" pulumi-lang-dotnet="NetworkId" pulumi-lang-go="networkId" pulumi-lang-python="network_id" pulumi-lang-yaml="networkId" pulumi-lang-java="networkId">network_id</span>"true"
    COUNTRY_CODE2 Letter ISO3166 Alpha2"true" / "false"
    RISK_FACTOR_TYPEZIA"UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL"
    CHROME_ENTERPRISE<span pulumi-lang-nodejs="managed" pulumi-lang-dotnet="Managed" pulumi-lang-go="managed" pulumi-lang-python="managed" pulumi-lang-yaml="managed" pulumi-lang-java="managed">managed</span>"true" / "false"

    Create PolicyBrowserProtectionRule Resource

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

    Constructor syntax

    new PolicyBrowserProtectionRule(name: string, args?: PolicyBrowserProtectionRuleArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyBrowserProtectionRule(resource_name: str,
                                    args: Optional[PolicyBrowserProtectionRuleArgs] = None,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyBrowserProtectionRule(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    action: Optional[str] = None,
                                    conditions: Optional[Sequence[PolicyBrowserProtectionRuleConditionArgs]] = None,
                                    description: Optional[str] = None,
                                    microtenant_id: Optional[str] = None,
                                    name: Optional[str] = None)
    func NewPolicyBrowserProtectionRule(ctx *Context, name string, args *PolicyBrowserProtectionRuleArgs, opts ...ResourceOption) (*PolicyBrowserProtectionRule, error)
    public PolicyBrowserProtectionRule(string name, PolicyBrowserProtectionRuleArgs? args = null, CustomResourceOptions? opts = null)
    public PolicyBrowserProtectionRule(String name, PolicyBrowserProtectionRuleArgs args)
    public PolicyBrowserProtectionRule(String name, PolicyBrowserProtectionRuleArgs args, CustomResourceOptions options)
    
    type: zpa:PolicyBrowserProtectionRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PolicyBrowserProtectionRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PolicyBrowserProtectionRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PolicyBrowserProtectionRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyBrowserProtectionRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyBrowserProtectionRuleArgs
    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 policyBrowserProtectionRuleResource = new Zpa.PolicyBrowserProtectionRule("policyBrowserProtectionRuleResource", new()
    {
        Action = "string",
        Conditions = new[]
        {
            new Zpa.Inputs.PolicyBrowserProtectionRuleConditionArgs
            {
                Id = "string",
                Operands = new[]
                {
                    new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandArgs
                    {
                        EntryValues = new[]
                        {
                            new Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs
                            {
                                Lhs = "string",
                                Rhs = "string",
                            },
                        },
                        ObjectType = "string",
                        Values = new[]
                        {
                            "string",
                        },
                    },
                },
                Operator = "string",
            },
        },
        Description = "string",
        MicrotenantId = "string",
        Name = "string",
    });
    
    example, err := zpa.NewPolicyBrowserProtectionRule(ctx, "policyBrowserProtectionRuleResource", &zpa.PolicyBrowserProtectionRuleArgs{
    	Action: pulumi.String("string"),
    	Conditions: zpa.PolicyBrowserProtectionRuleConditionArray{
    		&zpa.PolicyBrowserProtectionRuleConditionArgs{
    			Id: pulumi.String("string"),
    			Operands: zpa.PolicyBrowserProtectionRuleConditionOperandArray{
    				&zpa.PolicyBrowserProtectionRuleConditionOperandArgs{
    					EntryValues: zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArray{
    						&zpa.PolicyBrowserProtectionRuleConditionOperandEntryValueArgs{
    							Lhs: pulumi.String("string"),
    							Rhs: pulumi.String("string"),
    						},
    					},
    					ObjectType: pulumi.String("string"),
    					Values: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    			Operator: pulumi.String("string"),
    		},
    	},
    	Description:   pulumi.String("string"),
    	MicrotenantId: pulumi.String("string"),
    	Name:          pulumi.String("string"),
    })
    
    var policyBrowserProtectionRuleResource = new PolicyBrowserProtectionRule("policyBrowserProtectionRuleResource", PolicyBrowserProtectionRuleArgs.builder()
        .action("string")
        .conditions(PolicyBrowserProtectionRuleConditionArgs.builder()
            .id("string")
            .operands(PolicyBrowserProtectionRuleConditionOperandArgs.builder()
                .entryValues(PolicyBrowserProtectionRuleConditionOperandEntryValueArgs.builder()
                    .lhs("string")
                    .rhs("string")
                    .build())
                .objectType("string")
                .values("string")
                .build())
            .operator("string")
            .build())
        .description("string")
        .microtenantId("string")
        .name("string")
        .build());
    
    policy_browser_protection_rule_resource = zpa.PolicyBrowserProtectionRule("policyBrowserProtectionRuleResource",
        action="string",
        conditions=[{
            "id": "string",
            "operands": [{
                "entry_values": [{
                    "lhs": "string",
                    "rhs": "string",
                }],
                "object_type": "string",
                "values": ["string"],
            }],
            "operator": "string",
        }],
        description="string",
        microtenant_id="string",
        name="string")
    
    const policyBrowserProtectionRuleResource = new zpa.PolicyBrowserProtectionRule("policyBrowserProtectionRuleResource", {
        action: "string",
        conditions: [{
            id: "string",
            operands: [{
                entryValues: [{
                    lhs: "string",
                    rhs: "string",
                }],
                objectType: "string",
                values: ["string"],
            }],
            operator: "string",
        }],
        description: "string",
        microtenantId: "string",
        name: "string",
    });
    
    type: zpa:PolicyBrowserProtectionRule
    properties:
        action: string
        conditions:
            - id: string
              operands:
                - entryValues:
                    - lhs: string
                      rhs: string
                  objectType: string
                  values:
                    - string
              operator: string
        description: string
        microtenantId: string
        name: string
    

    PolicyBrowserProtectionRule 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 PolicyBrowserProtectionRule resource accepts the following input properties:

    Action string
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    Conditions List<zscaler.PulumiPackage.Zpa.Inputs.PolicyBrowserProtectionRuleCondition>
    This is for proviidng the set of conditions for the policy.
    Description string
    This is the description of the access policy rule.
    MicrotenantId string
    Name string
    This is the name of the policy rule.
    Action string
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    Conditions []PolicyBrowserProtectionRuleConditionArgs
    This is for proviidng the set of conditions for the policy.
    Description string
    This is the description of the access policy rule.
    MicrotenantId string
    Name string
    This is the name of the policy rule.
    action String
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    conditions List<PolicyBrowserProtectionRuleCondition>
    This is for proviidng the set of conditions for the policy.
    description String
    This is the description of the access policy rule.
    microtenantId String
    name String
    This is the name of the policy rule.
    action string
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    conditions PolicyBrowserProtectionRuleCondition[]
    This is for proviidng the set of conditions for the policy.
    description string
    This is the description of the access policy rule.
    microtenantId string
    name string
    This is the name of the policy rule.
    action str
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    conditions Sequence[PolicyBrowserProtectionRuleConditionArgs]
    This is for proviidng the set of conditions for the policy.
    description str
    This is the description of the access policy rule.
    microtenant_id str
    name str
    This is the name of the policy rule.
    action String
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    conditions List<Property Map>
    This is for proviidng the set of conditions for the policy.
    description String
    This is the description of the access policy rule.
    microtenantId String
    name String
    This is the name of the policy rule.

    Outputs

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

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

    Look up Existing PolicyBrowserProtectionRule Resource

    Get an existing PolicyBrowserProtectionRule 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?: PolicyBrowserProtectionRuleState, opts?: CustomResourceOptions): PolicyBrowserProtectionRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            conditions: Optional[Sequence[PolicyBrowserProtectionRuleConditionArgs]] = None,
            description: Optional[str] = None,
            microtenant_id: Optional[str] = None,
            name: Optional[str] = None,
            policy_set_id: Optional[str] = None) -> PolicyBrowserProtectionRule
    func GetPolicyBrowserProtectionRule(ctx *Context, name string, id IDInput, state *PolicyBrowserProtectionRuleState, opts ...ResourceOption) (*PolicyBrowserProtectionRule, error)
    public static PolicyBrowserProtectionRule Get(string name, Input<string> id, PolicyBrowserProtectionRuleState? state, CustomResourceOptions? opts = null)
    public static PolicyBrowserProtectionRule get(String name, Output<String> id, PolicyBrowserProtectionRuleState state, CustomResourceOptions options)
    resources:  _:    type: zpa:PolicyBrowserProtectionRule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    Action string
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    Conditions List<zscaler.PulumiPackage.Zpa.Inputs.PolicyBrowserProtectionRuleCondition>
    This is for proviidng the set of conditions for the policy.
    Description string
    This is the description of the access policy rule.
    MicrotenantId string
    Name string
    This is the name of the policy rule.
    PolicySetId string
    Action string
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    Conditions []PolicyBrowserProtectionRuleConditionArgs
    This is for proviidng the set of conditions for the policy.
    Description string
    This is the description of the access policy rule.
    MicrotenantId string
    Name string
    This is the name of the policy rule.
    PolicySetId string
    action String
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    conditions List<PolicyBrowserProtectionRuleCondition>
    This is for proviidng the set of conditions for the policy.
    description String
    This is the description of the access policy rule.
    microtenantId String
    name String
    This is the name of the policy rule.
    policySetId String
    action string
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    conditions PolicyBrowserProtectionRuleCondition[]
    This is for proviidng the set of conditions for the policy.
    description string
    This is the description of the access policy rule.
    microtenantId string
    name string
    This is the name of the policy rule.
    policySetId string
    action str
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    conditions Sequence[PolicyBrowserProtectionRuleConditionArgs]
    This is for proviidng the set of conditions for the policy.
    description str
    This is the description of the access policy rule.
    microtenant_id str
    name str
    This is the name of the policy rule.
    policy_set_id str
    action String
    This is for providing the rule action. Supported values: MONITOR, DO_NOT_MONITOR
    conditions List<Property Map>
    This is for proviidng the set of conditions for the policy.
    description String
    This is the description of the access policy rule.
    microtenantId String
    name String
    This is the name of the policy rule.
    policySetId String

    Supporting Types

    PolicyBrowserProtectionRuleCondition, PolicyBrowserProtectionRuleConditionArgs

    Id string
    Operands []PolicyBrowserProtectionRuleConditionOperand
    This signifies the various policy criteria.
    Operator string
    id String
    operands List<PolicyBrowserProtectionRuleConditionOperand>
    This signifies the various policy criteria.
    operator String
    id string
    operands PolicyBrowserProtectionRuleConditionOperand[]
    This signifies the various policy criteria.
    operator string
    id str
    operands Sequence[PolicyBrowserProtectionRuleConditionOperand]
    This signifies the various policy criteria.
    operator str
    id String
    operands List<Property Map>
    This signifies the various policy criteria.
    operator String

    PolicyBrowserProtectionRuleConditionOperand, PolicyBrowserProtectionRuleConditionOperandArgs

    EntryValues List<zscaler.PulumiPackage.Zpa.Inputs.PolicyBrowserProtectionRuleConditionOperandEntryValue>
    ObjectType string
    This is for specifying the policy critiera.
    Values List<string>
    This denotes a list of values for the given object type. The value depend upon the key. If rhs is defined this list will be ignored
    EntryValues []PolicyBrowserProtectionRuleConditionOperandEntryValue
    ObjectType string
    This is for specifying the policy critiera.
    Values []string
    This denotes a list of values for the given object type. The value depend upon the key. If rhs is defined this list will be ignored
    entryValues List<PolicyBrowserProtectionRuleConditionOperandEntryValue>
    objectType String
    This is for specifying the policy critiera.
    values List<String>
    This denotes a list of values for the given object type. The value depend upon the key. If rhs is defined this list will be ignored
    entryValues PolicyBrowserProtectionRuleConditionOperandEntryValue[]
    objectType string
    This is for specifying the policy critiera.
    values string[]
    This denotes a list of values for the given object type. The value depend upon the key. If rhs is defined this list will be ignored
    entry_values Sequence[PolicyBrowserProtectionRuleConditionOperandEntryValue]
    object_type str
    This is for specifying the policy critiera.
    values Sequence[str]
    This denotes a list of values for the given object type. The value depend upon the key. If rhs is defined this list will be ignored
    entryValues List<Property Map>
    objectType String
    This is for specifying the policy critiera.
    values List<String>
    This denotes a list of values for the given object type. The value depend upon the key. If rhs is defined this list will be ignored

    PolicyBrowserProtectionRuleConditionOperandEntryValue, PolicyBrowserProtectionRuleConditionOperandEntryValueArgs

    Lhs string
    Rhs string
    Lhs string
    Rhs string
    lhs String
    rhs String
    lhs string
    rhs string
    lhs str
    rhs str
    lhs String
    rhs String

    Import

    Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language.

    Visit

    Policy access rule can be imported by using <RULE ID> as the import ID.

    For example:

    $ pulumi import zpa:index/policyBrowserProtectionRule:PolicyBrowserProtectionRule example <rule_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zpa zscaler/pulumi-zpa
    License
    MIT
    Notes
    This Pulumi package is based on the zpa Terraform Provider.
    zpa logo
    Zscaler Private Access v1.0.3 published on Wednesday, Jan 21, 2026 by Zscaler
      Meet Neo: Your AI Platform Teammate