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

zpa.PolicyRedirectionRule

Explore with Pulumi AI

The zpa_policy_redirection_rule resource creates a policy redirection access rule in the Zscaler Private Access cloud.

⚠️ WARNING:: The attribute rule_order is now deprecated in favor of the new resource policy_access_rule_reorder

Example Usage

REDIRECT_DEFAULT

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.PolicyRedirectionRule;
import com.pulumi.zpa.PolicyRedirectionRuleArgs;
import com.pulumi.zpa.inputs.PolicyRedirectionRuleConditionArgs;
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) {
        var this_ = new PolicyRedirectionRule("this", PolicyRedirectionRuleArgs.builder()
            .action("REDIRECT_DEFAULT")
            .conditions(PolicyRedirectionRuleConditionArgs.builder()
                .operands(PolicyRedirectionRuleConditionOperandArgs.builder()
                    .objectType("CLIENT_TYPE")
                    .values("zpn_client_type_branch_connector")
                    .build())
                .operator("OR")
                .build())
            .description("Example")
            .build());

    }
}
Copy
resources:
  this:
    type: zpa:PolicyRedirectionRule
    properties:
      action: REDIRECT_DEFAULT
      conditions:
        - operands:
            - objectType: CLIENT_TYPE
              values:
                - zpn_client_type_branch_connector
          operator: OR
      description: Example
Copy

Create PolicyRedirectionRule Resource

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

Constructor syntax

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

@overload
def PolicyRedirectionRule(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          action: Optional[str] = None,
                          action_id: Optional[str] = None,
                          bypass_default_rule: Optional[bool] = None,
                          conditions: Optional[Sequence[PolicyRedirectionRuleConditionArgs]] = None,
                          custom_msg: Optional[str] = None,
                          default_rule: Optional[bool] = None,
                          description: Optional[str] = None,
                          lss_default_rule: Optional[bool] = None,
                          microtenant_id: Optional[str] = None,
                          name: Optional[str] = None,
                          operator: Optional[str] = None,
                          policy_set_id: Optional[str] = None,
                          policy_type: Optional[str] = None,
                          priority: Optional[str] = None,
                          reauth_default_rule: Optional[bool] = None,
                          reauth_idle_timeout: Optional[str] = None,
                          reauth_timeout: Optional[str] = None,
                          rule_order: Optional[str] = None,
                          service_edge_groups: Optional[Sequence[PolicyRedirectionRuleServiceEdgeGroupArgs]] = None,
                          zpn_cbi_profile_id: Optional[str] = None,
                          zpn_inspection_profile_id: Optional[str] = None,
                          zpn_isolation_profile_id: Optional[str] = None)
func NewPolicyRedirectionRule(ctx *Context, name string, args *PolicyRedirectionRuleArgs, opts ...ResourceOption) (*PolicyRedirectionRule, error)
public PolicyRedirectionRule(string name, PolicyRedirectionRuleArgs? args = null, CustomResourceOptions? opts = null)
public PolicyRedirectionRule(String name, PolicyRedirectionRuleArgs args)
public PolicyRedirectionRule(String name, PolicyRedirectionRuleArgs args, CustomResourceOptions options)
type: zpa:PolicyRedirectionRule
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 PolicyRedirectionRuleArgs
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 PolicyRedirectionRuleArgs
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 PolicyRedirectionRuleArgs
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 PolicyRedirectionRuleArgs
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. PolicyRedirectionRuleArgs
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 policyRedirectionRuleResource = new Zpa.PolicyRedirectionRule("policyRedirectionRuleResource", new()
{
    Action = "string",
    ActionId = "string",
    BypassDefaultRule = false,
    Conditions = new[]
    {
        new Zpa.Inputs.PolicyRedirectionRuleConditionArgs
        {
            Operator = "string",
            Id = "string",
            MicrotenantId = "string",
            Operands = new[]
            {
                new Zpa.Inputs.PolicyRedirectionRuleConditionOperandArgs
                {
                    Lhs = "string",
                    ObjectType = "string",
                    Id = "string",
                    IdpId = "string",
                    MicrotenantId = "string",
                    Name = "string",
                    Rhs = "string",
                    RhsLists = new[]
                    {
                        "string",
                    },
                },
            },
        },
    },
    CustomMsg = "string",
    DefaultRule = false,
    Description = "string",
    LssDefaultRule = false,
    MicrotenantId = "string",
    Name = "string",
    Operator = "string",
    PolicySetId = "string",
    PolicyType = "string",
    Priority = "string",
    ReauthDefaultRule = false,
    ReauthIdleTimeout = "string",
    ReauthTimeout = "string",
    ServiceEdgeGroups = new[]
    {
        new Zpa.Inputs.PolicyRedirectionRuleServiceEdgeGroupArgs
        {
            Ids = new[]
            {
                "string",
            },
        },
    },
    ZpnCbiProfileId = "string",
    ZpnInspectionProfileId = "string",
    ZpnIsolationProfileId = "string",
});
Copy
example, err := zpa.NewPolicyRedirectionRule(ctx, "policyRedirectionRuleResource", &zpa.PolicyRedirectionRuleArgs{
	Action:            pulumi.String("string"),
	ActionId:          pulumi.String("string"),
	BypassDefaultRule: pulumi.Bool(false),
	Conditions: zpa.PolicyRedirectionRuleConditionArray{
		&zpa.PolicyRedirectionRuleConditionArgs{
			Operator:      pulumi.String("string"),
			Id:            pulumi.String("string"),
			MicrotenantId: pulumi.String("string"),
			Operands: zpa.PolicyRedirectionRuleConditionOperandArray{
				&zpa.PolicyRedirectionRuleConditionOperandArgs{
					Lhs:           pulumi.String("string"),
					ObjectType:    pulumi.String("string"),
					Id:            pulumi.String("string"),
					IdpId:         pulumi.String("string"),
					MicrotenantId: pulumi.String("string"),
					Name:          pulumi.String("string"),
					Rhs:           pulumi.String("string"),
					RhsLists: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
		},
	},
	CustomMsg:         pulumi.String("string"),
	DefaultRule:       pulumi.Bool(false),
	Description:       pulumi.String("string"),
	LssDefaultRule:    pulumi.Bool(false),
	MicrotenantId:     pulumi.String("string"),
	Name:              pulumi.String("string"),
	Operator:          pulumi.String("string"),
	PolicySetId:       pulumi.String("string"),
	PolicyType:        pulumi.String("string"),
	Priority:          pulumi.String("string"),
	ReauthDefaultRule: pulumi.Bool(false),
	ReauthIdleTimeout: pulumi.String("string"),
	ReauthTimeout:     pulumi.String("string"),
	ServiceEdgeGroups: zpa.PolicyRedirectionRuleServiceEdgeGroupArray{
		&zpa.PolicyRedirectionRuleServiceEdgeGroupArgs{
			Ids: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	ZpnCbiProfileId:        pulumi.String("string"),
	ZpnInspectionProfileId: pulumi.String("string"),
	ZpnIsolationProfileId:  pulumi.String("string"),
})
Copy
var policyRedirectionRuleResource = new PolicyRedirectionRule("policyRedirectionRuleResource", PolicyRedirectionRuleArgs.builder()
    .action("string")
    .actionId("string")
    .bypassDefaultRule(false)
    .conditions(PolicyRedirectionRuleConditionArgs.builder()
        .operator("string")
        .id("string")
        .microtenantId("string")
        .operands(PolicyRedirectionRuleConditionOperandArgs.builder()
            .lhs("string")
            .objectType("string")
            .id("string")
            .idpId("string")
            .microtenantId("string")
            .name("string")
            .rhs("string")
            .rhsLists("string")
            .build())
        .build())
    .customMsg("string")
    .defaultRule(false)
    .description("string")
    .lssDefaultRule(false)
    .microtenantId("string")
    .name("string")
    .operator("string")
    .policySetId("string")
    .policyType("string")
    .priority("string")
    .reauthDefaultRule(false)
    .reauthIdleTimeout("string")
    .reauthTimeout("string")
    .serviceEdgeGroups(PolicyRedirectionRuleServiceEdgeGroupArgs.builder()
        .ids("string")
        .build())
    .zpnCbiProfileId("string")
    .zpnInspectionProfileId("string")
    .zpnIsolationProfileId("string")
    .build());
Copy
policy_redirection_rule_resource = zpa.PolicyRedirectionRule("policyRedirectionRuleResource",
    action="string",
    action_id="string",
    bypass_default_rule=False,
    conditions=[{
        "operator": "string",
        "id": "string",
        "microtenant_id": "string",
        "operands": [{
            "lhs": "string",
            "object_type": "string",
            "id": "string",
            "idp_id": "string",
            "microtenant_id": "string",
            "name": "string",
            "rhs": "string",
            "rhs_lists": ["string"],
        }],
    }],
    custom_msg="string",
    default_rule=False,
    description="string",
    lss_default_rule=False,
    microtenant_id="string",
    name="string",
    operator="string",
    policy_set_id="string",
    policy_type="string",
    priority="string",
    reauth_default_rule=False,
    reauth_idle_timeout="string",
    reauth_timeout="string",
    service_edge_groups=[{
        "ids": ["string"],
    }],
    zpn_cbi_profile_id="string",
    zpn_inspection_profile_id="string",
    zpn_isolation_profile_id="string")
Copy
const policyRedirectionRuleResource = new zpa.PolicyRedirectionRule("policyRedirectionRuleResource", {
    action: "string",
    actionId: "string",
    bypassDefaultRule: false,
    conditions: [{
        operator: "string",
        id: "string",
        microtenantId: "string",
        operands: [{
            lhs: "string",
            objectType: "string",
            id: "string",
            idpId: "string",
            microtenantId: "string",
            name: "string",
            rhs: "string",
            rhsLists: ["string"],
        }],
    }],
    customMsg: "string",
    defaultRule: false,
    description: "string",
    lssDefaultRule: false,
    microtenantId: "string",
    name: "string",
    operator: "string",
    policySetId: "string",
    policyType: "string",
    priority: "string",
    reauthDefaultRule: false,
    reauthIdleTimeout: "string",
    reauthTimeout: "string",
    serviceEdgeGroups: [{
        ids: ["string"],
    }],
    zpnCbiProfileId: "string",
    zpnInspectionProfileId: "string",
    zpnIsolationProfileId: "string",
});
Copy
type: zpa:PolicyRedirectionRule
properties:
    action: string
    actionId: string
    bypassDefaultRule: false
    conditions:
        - id: string
          microtenantId: string
          operands:
            - id: string
              idpId: string
              lhs: string
              microtenantId: string
              name: string
              objectType: string
              rhs: string
              rhsLists:
                - string
          operator: string
    customMsg: string
    defaultRule: false
    description: string
    lssDefaultRule: false
    microtenantId: string
    name: string
    operator: string
    policySetId: string
    policyType: string
    priority: string
    reauthDefaultRule: false
    reauthIdleTimeout: string
    reauthTimeout: string
    serviceEdgeGroups:
        - ids:
            - string
    zpnCbiProfileId: string
    zpnInspectionProfileId: string
    zpnIsolationProfileId: string
Copy

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

Action string
This is for providing the rule action.
ActionId string
This field defines the description of the server.
BypassDefaultRule bool
Conditions List<Zscaler.Zpa.Inputs.PolicyRedirectionRuleCondition>
This is for proviidng the set of conditions for the policy.
CustomMsg string
This is for providing a customer message for the user.
DefaultRule bool
This is for providing a customer message for the user.
Description string
This is the description of the access policy.
LssDefaultRule bool
MicrotenantId string
Name string
This is the name of the policy.
Operator string
PolicySetId string
PolicyType string
Priority string
ReauthDefaultRule bool
ReauthIdleTimeout Changes to this property will trigger replacement. string
ReauthTimeout Changes to this property will trigger replacement. string
RuleOrder string

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

ServiceEdgeGroups List<Zscaler.Zpa.Inputs.PolicyRedirectionRuleServiceEdgeGroup>
List of the service edge group IDs.
ZpnCbiProfileId string
ZpnInspectionProfileId string
ZpnIsolationProfileId string
Action string
This is for providing the rule action.
ActionId string
This field defines the description of the server.
BypassDefaultRule bool
Conditions []PolicyRedirectionRuleConditionArgs
This is for proviidng the set of conditions for the policy.
CustomMsg string
This is for providing a customer message for the user.
DefaultRule bool
This is for providing a customer message for the user.
Description string
This is the description of the access policy.
LssDefaultRule bool
MicrotenantId string
Name string
This is the name of the policy.
Operator string
PolicySetId string
PolicyType string
Priority string
ReauthDefaultRule bool
ReauthIdleTimeout Changes to this property will trigger replacement. string
ReauthTimeout Changes to this property will trigger replacement. string
RuleOrder string

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

ServiceEdgeGroups []PolicyRedirectionRuleServiceEdgeGroupArgs
List of the service edge group IDs.
ZpnCbiProfileId string
ZpnInspectionProfileId string
ZpnIsolationProfileId string
action String
This is for providing the rule action.
actionId String
This field defines the description of the server.
bypassDefaultRule Boolean
conditions List<PolicyRedirectionRuleCondition>
This is for proviidng the set of conditions for the policy.
customMsg String
This is for providing a customer message for the user.
defaultRule Boolean
This is for providing a customer message for the user.
description String
This is the description of the access policy.
lssDefaultRule Boolean
microtenantId String
name String
This is the name of the policy.
operator String
policySetId String
policyType String
priority String
reauthDefaultRule Boolean
reauthIdleTimeout Changes to this property will trigger replacement. String
reauthTimeout Changes to this property will trigger replacement. String
ruleOrder String

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

serviceEdgeGroups List<PolicyRedirectionRuleServiceEdgeGroup>
List of the service edge group IDs.
zpnCbiProfileId String
zpnInspectionProfileId String
zpnIsolationProfileId String
action string
This is for providing the rule action.
actionId string
This field defines the description of the server.
bypassDefaultRule boolean
conditions PolicyRedirectionRuleCondition[]
This is for proviidng the set of conditions for the policy.
customMsg string
This is for providing a customer message for the user.
defaultRule boolean
This is for providing a customer message for the user.
description string
This is the description of the access policy.
lssDefaultRule boolean
microtenantId string
name string
This is the name of the policy.
operator string
policySetId string
policyType string
priority string
reauthDefaultRule boolean
reauthIdleTimeout Changes to this property will trigger replacement. string
reauthTimeout Changes to this property will trigger replacement. string
ruleOrder string

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

serviceEdgeGroups PolicyRedirectionRuleServiceEdgeGroup[]
List of the service edge group IDs.
zpnCbiProfileId string
zpnInspectionProfileId string
zpnIsolationProfileId string
action str
This is for providing the rule action.
action_id str
This field defines the description of the server.
bypass_default_rule bool
conditions Sequence[PolicyRedirectionRuleConditionArgs]
This is for proviidng the set of conditions for the policy.
custom_msg str
This is for providing a customer message for the user.
default_rule bool
This is for providing a customer message for the user.
description str
This is the description of the access policy.
lss_default_rule bool
microtenant_id str
name str
This is the name of the policy.
operator str
policy_set_id str
policy_type str
priority str
reauth_default_rule bool
reauth_idle_timeout Changes to this property will trigger replacement. str
reauth_timeout Changes to this property will trigger replacement. str
rule_order str

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

service_edge_groups Sequence[PolicyRedirectionRuleServiceEdgeGroupArgs]
List of the service edge group IDs.
zpn_cbi_profile_id str
zpn_inspection_profile_id str
zpn_isolation_profile_id str
action String
This is for providing the rule action.
actionId String
This field defines the description of the server.
bypassDefaultRule Boolean
conditions List<Property Map>
This is for proviidng the set of conditions for the policy.
customMsg String
This is for providing a customer message for the user.
defaultRule Boolean
This is for providing a customer message for the user.
description String
This is the description of the access policy.
lssDefaultRule Boolean
microtenantId String
name String
This is the name of the policy.
operator String
policySetId String
policyType String
priority String
reauthDefaultRule Boolean
reauthIdleTimeout Changes to this property will trigger replacement. String
reauthTimeout Changes to this property will trigger replacement. String
ruleOrder String

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

serviceEdgeGroups List<Property Map>
List of the service edge group IDs.
zpnCbiProfileId String
zpnInspectionProfileId String
zpnIsolationProfileId String

Outputs

All input properties are implicitly available as output properties. Additionally, the PolicyRedirectionRule 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 PolicyRedirectionRule Resource

Get an existing PolicyRedirectionRule 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?: PolicyRedirectionRuleState, opts?: CustomResourceOptions): PolicyRedirectionRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        action_id: Optional[str] = None,
        bypass_default_rule: Optional[bool] = None,
        conditions: Optional[Sequence[PolicyRedirectionRuleConditionArgs]] = None,
        custom_msg: Optional[str] = None,
        default_rule: Optional[bool] = None,
        description: Optional[str] = None,
        lss_default_rule: Optional[bool] = None,
        microtenant_id: Optional[str] = None,
        name: Optional[str] = None,
        operator: Optional[str] = None,
        policy_set_id: Optional[str] = None,
        policy_type: Optional[str] = None,
        priority: Optional[str] = None,
        reauth_default_rule: Optional[bool] = None,
        reauth_idle_timeout: Optional[str] = None,
        reauth_timeout: Optional[str] = None,
        rule_order: Optional[str] = None,
        service_edge_groups: Optional[Sequence[PolicyRedirectionRuleServiceEdgeGroupArgs]] = None,
        zpn_cbi_profile_id: Optional[str] = None,
        zpn_inspection_profile_id: Optional[str] = None,
        zpn_isolation_profile_id: Optional[str] = None) -> PolicyRedirectionRule
func GetPolicyRedirectionRule(ctx *Context, name string, id IDInput, state *PolicyRedirectionRuleState, opts ...ResourceOption) (*PolicyRedirectionRule, error)
public static PolicyRedirectionRule Get(string name, Input<string> id, PolicyRedirectionRuleState? state, CustomResourceOptions? opts = null)
public static PolicyRedirectionRule get(String name, Output<String> id, PolicyRedirectionRuleState state, CustomResourceOptions options)
resources:  _:    type: zpa:PolicyRedirectionRule    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:
Action string
This is for providing the rule action.
ActionId string
This field defines the description of the server.
BypassDefaultRule bool
Conditions List<Zscaler.Zpa.Inputs.PolicyRedirectionRuleCondition>
This is for proviidng the set of conditions for the policy.
CustomMsg string
This is for providing a customer message for the user.
DefaultRule bool
This is for providing a customer message for the user.
Description string
This is the description of the access policy.
LssDefaultRule bool
MicrotenantId string
Name string
This is the name of the policy.
Operator string
PolicySetId string
PolicyType string
Priority string
ReauthDefaultRule bool
ReauthIdleTimeout Changes to this property will trigger replacement. string
ReauthTimeout Changes to this property will trigger replacement. string
RuleOrder string

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

ServiceEdgeGroups List<Zscaler.Zpa.Inputs.PolicyRedirectionRuleServiceEdgeGroup>
List of the service edge group IDs.
ZpnCbiProfileId string
ZpnInspectionProfileId string
ZpnIsolationProfileId string
Action string
This is for providing the rule action.
ActionId string
This field defines the description of the server.
BypassDefaultRule bool
Conditions []PolicyRedirectionRuleConditionArgs
This is for proviidng the set of conditions for the policy.
CustomMsg string
This is for providing a customer message for the user.
DefaultRule bool
This is for providing a customer message for the user.
Description string
This is the description of the access policy.
LssDefaultRule bool
MicrotenantId string
Name string
This is the name of the policy.
Operator string
PolicySetId string
PolicyType string
Priority string
ReauthDefaultRule bool
ReauthIdleTimeout Changes to this property will trigger replacement. string
ReauthTimeout Changes to this property will trigger replacement. string
RuleOrder string

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

ServiceEdgeGroups []PolicyRedirectionRuleServiceEdgeGroupArgs
List of the service edge group IDs.
ZpnCbiProfileId string
ZpnInspectionProfileId string
ZpnIsolationProfileId string
action String
This is for providing the rule action.
actionId String
This field defines the description of the server.
bypassDefaultRule Boolean
conditions List<PolicyRedirectionRuleCondition>
This is for proviidng the set of conditions for the policy.
customMsg String
This is for providing a customer message for the user.
defaultRule Boolean
This is for providing a customer message for the user.
description String
This is the description of the access policy.
lssDefaultRule Boolean
microtenantId String
name String
This is the name of the policy.
operator String
policySetId String
policyType String
priority String
reauthDefaultRule Boolean
reauthIdleTimeout Changes to this property will trigger replacement. String
reauthTimeout Changes to this property will trigger replacement. String
ruleOrder String

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

serviceEdgeGroups List<PolicyRedirectionRuleServiceEdgeGroup>
List of the service edge group IDs.
zpnCbiProfileId String
zpnInspectionProfileId String
zpnIsolationProfileId String
action string
This is for providing the rule action.
actionId string
This field defines the description of the server.
bypassDefaultRule boolean
conditions PolicyRedirectionRuleCondition[]
This is for proviidng the set of conditions for the policy.
customMsg string
This is for providing a customer message for the user.
defaultRule boolean
This is for providing a customer message for the user.
description string
This is the description of the access policy.
lssDefaultRule boolean
microtenantId string
name string
This is the name of the policy.
operator string
policySetId string
policyType string
priority string
reauthDefaultRule boolean
reauthIdleTimeout Changes to this property will trigger replacement. string
reauthTimeout Changes to this property will trigger replacement. string
ruleOrder string

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

serviceEdgeGroups PolicyRedirectionRuleServiceEdgeGroup[]
List of the service edge group IDs.
zpnCbiProfileId string
zpnInspectionProfileId string
zpnIsolationProfileId string
action str
This is for providing the rule action.
action_id str
This field defines the description of the server.
bypass_default_rule bool
conditions Sequence[PolicyRedirectionRuleConditionArgs]
This is for proviidng the set of conditions for the policy.
custom_msg str
This is for providing a customer message for the user.
default_rule bool
This is for providing a customer message for the user.
description str
This is the description of the access policy.
lss_default_rule bool
microtenant_id str
name str
This is the name of the policy.
operator str
policy_set_id str
policy_type str
priority str
reauth_default_rule bool
reauth_idle_timeout Changes to this property will trigger replacement. str
reauth_timeout Changes to this property will trigger replacement. str
rule_order str

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

service_edge_groups Sequence[PolicyRedirectionRuleServiceEdgeGroupArgs]
List of the service edge group IDs.
zpn_cbi_profile_id str
zpn_inspection_profile_id str
zpn_isolation_profile_id str
action String
This is for providing the rule action.
actionId String
This field defines the description of the server.
bypassDefaultRule Boolean
conditions List<Property Map>
This is for proviidng the set of conditions for the policy.
customMsg String
This is for providing a customer message for the user.
defaultRule Boolean
This is for providing a customer message for the user.
description String
This is the description of the access policy.
lssDefaultRule Boolean
microtenantId String
name String
This is the name of the policy.
operator String
policySetId String
policyType String
priority String
reauthDefaultRule Boolean
reauthIdleTimeout Changes to this property will trigger replacement. String
reauthTimeout Changes to this property will trigger replacement. String
ruleOrder String

Deprecated: The rule_order field is now deprecated for all zpa access policy resources in favor of the resource zpa.PolicyAccessReorderRule

serviceEdgeGroups List<Property Map>
List of the service edge group IDs.
zpnCbiProfileId String
zpnInspectionProfileId String
zpnIsolationProfileId String

Supporting Types

PolicyRedirectionRuleCondition
, PolicyRedirectionRuleConditionArgs

Operator This property is required. string
Id string
MicrotenantId string
Operands List<Zscaler.Zpa.Inputs.PolicyRedirectionRuleConditionOperand>
This signifies the various policy criteria.
Operator This property is required. string
Id string
MicrotenantId string
Operands []PolicyRedirectionRuleConditionOperand
This signifies the various policy criteria.
operator This property is required. String
id String
microtenantId String
operands List<PolicyRedirectionRuleConditionOperand>
This signifies the various policy criteria.
operator This property is required. string
id string
microtenantId string
operands PolicyRedirectionRuleConditionOperand[]
This signifies the various policy criteria.
operator This property is required. str
id str
microtenant_id str
operands Sequence[PolicyRedirectionRuleConditionOperand]
This signifies the various policy criteria.
operator This property is required. String
id String
microtenantId String
operands List<Property Map>
This signifies the various policy criteria.

PolicyRedirectionRuleConditionOperand
, PolicyRedirectionRuleConditionOperandArgs

Lhs This property is required. string
This signifies the key for the object type. String ID example: id
ObjectType This property is required. string
This is for specifying the policy critiera.
Id string
IdpId string
MicrotenantId string
This denotes the value for the given object type. Its value depends upon the key.
Name string
Rhs string
This denotes the value for the given object type. Its value depends upon the key.
RhsLists 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
Lhs This property is required. string
This signifies the key for the object type. String ID example: id
ObjectType This property is required. string
This is for specifying the policy critiera.
Id string
IdpId string
MicrotenantId string
This denotes the value for the given object type. Its value depends upon the key.
Name string
Rhs string
This denotes the value for the given object type. Its value depends upon the key.
RhsLists []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
lhs This property is required. String
This signifies the key for the object type. String ID example: id
objectType This property is required. String
This is for specifying the policy critiera.
id String
idpId String
microtenantId String
This denotes the value for the given object type. Its value depends upon the key.
name String
rhs String
This denotes the value for the given object type. Its value depends upon the key.
rhsLists 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
lhs This property is required. string
This signifies the key for the object type. String ID example: id
objectType This property is required. string
This is for specifying the policy critiera.
id string
idpId string
microtenantId string
This denotes the value for the given object type. Its value depends upon the key.
name string
rhs string
This denotes the value for the given object type. Its value depends upon the key.
rhsLists 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
lhs This property is required. str
This signifies the key for the object type. String ID example: id
object_type This property is required. str
This is for specifying the policy critiera.
id str
idp_id str
microtenant_id str
This denotes the value for the given object type. Its value depends upon the key.
name str
rhs str
This denotes the value for the given object type. Its value depends upon the key.
rhs_lists 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
lhs This property is required. String
This signifies the key for the object type. String ID example: id
objectType This property is required. String
This is for specifying the policy critiera.
id String
idpId String
microtenantId String
This denotes the value for the given object type. Its value depends upon the key.
name String
rhs String
This denotes the value for the given object type. Its value depends upon the key.
rhsLists 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

PolicyRedirectionRuleServiceEdgeGroup
, PolicyRedirectionRuleServiceEdgeGroupArgs

Ids List<string>
Ids []string
ids List<String>
ids string[]
ids Sequence[str]
ids List<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 Isolation Rule can be imported by using <POLICY REDIRECTION RULE ID> as the import ID.

For example:

$ pulumi import zpa:index/policyRedirectionRule:PolicyRedirectionRule example <rule_id>
Copy

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.