zpa.PolicyAccessIsolationRule
Explore with Pulumi AI
The zpa_policy_isolation_rule resource creates a policy isolation 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
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@bdzscaler/pulumi-zpa";
import * as zpa from "@pulumi/zpa";
const isolationProfile = zpa.getIsolationProfile({
    name: "zpa_isolation_profile",
});
//Create Client Isolation Access Rule
const _this = new zpa.PolicyAccessIsolationRule("this", {
    description: "Example_Isolation_Policy",
    action: "ISOLATE",
    operator: "AND",
    zpnIsolationProfileId: isolationProfile.then(isolationProfile => isolationProfile.id),
    conditions: [{
        operator: "OR",
        operands: [{
            objectType: "CLIENT_TYPE",
            lhs: "id",
            rhs: "zpn_client_type_exporter",
        }],
    }],
});
import pulumi
import pulumi_zpa as zpa
import zscaler_pulumi_zpa as zpa
isolation_profile = zpa.get_isolation_profile(name="zpa_isolation_profile")
#Create Client Isolation Access Rule
this = zpa.PolicyAccessIsolationRule("this",
    description="Example_Isolation_Policy",
    action="ISOLATE",
    operator="AND",
    zpn_isolation_profile_id=isolation_profile.id,
    conditions=[zpa.PolicyAccessIsolationRuleConditionArgs(
        operator="OR",
        operands=[zpa.PolicyAccessIsolationRuleConditionOperandArgs(
            object_type="CLIENT_TYPE",
            lhs="id",
            rhs="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 {
		isolationProfile, err := zpa.GetIsolationProfile(ctx, &zpa.GetIsolationProfileArgs{
			Name: pulumi.StringRef("zpa_isolation_profile"),
		}, nil)
		if err != nil {
			return err
		}
		// Create Client Isolation Access Rule
		_, err = zpa.NewPolicyAccessIsolationRule(ctx, "this", &zpa.PolicyAccessIsolationRuleArgs{
			Description:           pulumi.String("Example_Isolation_Policy"),
			Action:                pulumi.String("ISOLATE"),
			Operator:              pulumi.String("AND"),
			ZpnIsolationProfileId: pulumi.String(isolationProfile.Id),
			Conditions: zpa.PolicyAccessIsolationRuleConditionArray{
				&zpa.PolicyAccessIsolationRuleConditionArgs{
					Operator: pulumi.String("OR"),
					Operands: zpa.PolicyAccessIsolationRuleConditionOperandArray{
						&zpa.PolicyAccessIsolationRuleConditionOperandArgs{
							ObjectType: pulumi.String("CLIENT_TYPE"),
							Lhs:        pulumi.String("id"),
							Rhs:        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.Zpa;
return await Deployment.RunAsync(() => 
{
    var isolationProfile = Zpa.GetIsolationProfile.Invoke(new()
    {
        Name = "zpa_isolation_profile",
    });
    //Create Client Isolation Access Rule
    var @this = new Zpa.PolicyAccessIsolationRule("this", new()
    {
        Description = "Example_Isolation_Policy",
        Action = "ISOLATE",
        Operator = "AND",
        ZpnIsolationProfileId = isolationProfile.Apply(getIsolationProfileResult => getIsolationProfileResult.Id),
        Conditions = new[]
        {
            new Zpa.Inputs.PolicyAccessIsolationRuleConditionArgs
            {
                Operator = "OR",
                Operands = new[]
                {
                    new Zpa.Inputs.PolicyAccessIsolationRuleConditionOperandArgs
                    {
                        ObjectType = "CLIENT_TYPE",
                        Lhs = "id",
                        Rhs = "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.GetIsolationProfileArgs;
import com.pulumi.zpa.PolicyAccessIsolationRule;
import com.pulumi.zpa.PolicyAccessIsolationRuleArgs;
import com.pulumi.zpa.inputs.PolicyAccessIsolationRuleConditionArgs;
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) {
        final var isolationProfile = ZpaFunctions.getIsolationProfile(GetIsolationProfileArgs.builder()
            .name("zpa_isolation_profile")
            .build());
        //Create Client Isolation Access Rule
        var this_ = new PolicyAccessIsolationRule("this", PolicyAccessIsolationRuleArgs.builder()
            .description("Example_Isolation_Policy")
            .action("ISOLATE")
            .operator("AND")
            .zpnIsolationProfileId(isolationProfile.applyValue(getIsolationProfileResult -> getIsolationProfileResult.id()))
            .conditions(PolicyAccessIsolationRuleConditionArgs.builder()
                .operator("OR")
                .operands(PolicyAccessIsolationRuleConditionOperandArgs.builder()
                    .objectType("CLIENT_TYPE")
                    .lhs("id")
                    .rhs("zpn_client_type_exporter")
                    .build())
                .build())
            .build());
    }
}
resources:
  #Create Client Isolation Access Rule
  this:
    type: zpa:PolicyAccessIsolationRule
    properties:
      description: Example_Isolation_Policy
      action: ISOLATE
      operator: AND
      zpnIsolationProfileId: ${isolationProfile.id}
      conditions:
        - operator: OR
          operands:
            - objectType: CLIENT_TYPE
              lhs: id
              rhs: zpn_client_type_exporter
variables:
  isolationProfile:
    fn::invoke:
      Function: zpa:getIsolationProfile
      Arguments:
        name: zpa_isolation_profile
LHS and RHS Values
LHS and RHS values differ based on object types. Refer to the following table:
| Object Type | LHS | RHS | 
|---|---|---|
| APP | "id" | application_segment_id | 
| APP_GROUP | "id" | segment_group_id | 
| CLIENT_TYPE | "id" | zpn_client_type_exporter | 
| PLATFORM | mac,ios,windows,android,linux | "true"/"false" | 
| EDGE_CONNECTOR_GROUP | "id" | edge_connector_id | 
| IDP | "id" | identity_provider_id | 
| SAML | saml_attribute_id | <Attribute_value_to_match> | 
| SCIM | scim_attribute_id | <Attribute_value_to_match> | 
| SCIM_GROUP | scim_group_attribute_id | <Attribute_value_to_match> | 
| MACHINE_GRP | "id" | machine_group_id | 
| POSTURE | posture_udid | "true"/"false" | 
| TRUSTED_NETWORK | network_id | "true" | 
Create PolicyAccessIsolationRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyAccessIsolationRule(name: string, args?: PolicyAccessIsolationRuleArgs, opts?: CustomResourceOptions);@overload
def PolicyAccessIsolationRule(resource_name: str,
                              args: Optional[PolicyAccessIsolationRuleArgs] = None,
                              opts: Optional[ResourceOptions] = None)
@overload
def PolicyAccessIsolationRule(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[PolicyAccessIsolationRuleConditionArgs]] = 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,
                              zpn_cbi_profile_id: Optional[str] = None,
                              zpn_inspection_profile_id: Optional[str] = None,
                              zpn_isolation_profile_id: Optional[str] = None)func NewPolicyAccessIsolationRule(ctx *Context, name string, args *PolicyAccessIsolationRuleArgs, opts ...ResourceOption) (*PolicyAccessIsolationRule, error)public PolicyAccessIsolationRule(string name, PolicyAccessIsolationRuleArgs? args = null, CustomResourceOptions? opts = null)
public PolicyAccessIsolationRule(String name, PolicyAccessIsolationRuleArgs args)
public PolicyAccessIsolationRule(String name, PolicyAccessIsolationRuleArgs args, CustomResourceOptions options)
type: zpa:PolicyAccessIsolationRule
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 PolicyAccessIsolationRuleArgs
- 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 PolicyAccessIsolationRuleArgs
- 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 PolicyAccessIsolationRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyAccessIsolationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyAccessIsolationRuleArgs
- 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 policyAccessIsolationRuleResource = new Zpa.PolicyAccessIsolationRule("policyAccessIsolationRuleResource", new()
{
    Action = "string",
    ActionId = "string",
    BypassDefaultRule = false,
    Conditions = new[]
    {
        new Zpa.Inputs.PolicyAccessIsolationRuleConditionArgs
        {
            Operator = "string",
            Id = "string",
            MicrotenantId = "string",
            Operands = new[]
            {
                new Zpa.Inputs.PolicyAccessIsolationRuleConditionOperandArgs
                {
                    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",
    ZpnCbiProfileId = "string",
    ZpnInspectionProfileId = "string",
    ZpnIsolationProfileId = "string",
});
example, err := zpa.NewPolicyAccessIsolationRule(ctx, "policyAccessIsolationRuleResource", &zpa.PolicyAccessIsolationRuleArgs{
	Action:            pulumi.String("string"),
	ActionId:          pulumi.String("string"),
	BypassDefaultRule: pulumi.Bool(false),
	Conditions: zpa.PolicyAccessIsolationRuleConditionArray{
		&zpa.PolicyAccessIsolationRuleConditionArgs{
			Operator:      pulumi.String("string"),
			Id:            pulumi.String("string"),
			MicrotenantId: pulumi.String("string"),
			Operands: zpa.PolicyAccessIsolationRuleConditionOperandArray{
				&zpa.PolicyAccessIsolationRuleConditionOperandArgs{
					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"),
	ZpnCbiProfileId:        pulumi.String("string"),
	ZpnInspectionProfileId: pulumi.String("string"),
	ZpnIsolationProfileId:  pulumi.String("string"),
})
var policyAccessIsolationRuleResource = new PolicyAccessIsolationRule("policyAccessIsolationRuleResource", PolicyAccessIsolationRuleArgs.builder()
    .action("string")
    .actionId("string")
    .bypassDefaultRule(false)
    .conditions(PolicyAccessIsolationRuleConditionArgs.builder()
        .operator("string")
        .id("string")
        .microtenantId("string")
        .operands(PolicyAccessIsolationRuleConditionOperandArgs.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")
    .zpnCbiProfileId("string")
    .zpnInspectionProfileId("string")
    .zpnIsolationProfileId("string")
    .build());
policy_access_isolation_rule_resource = zpa.PolicyAccessIsolationRule("policyAccessIsolationRuleResource",
    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",
    zpn_cbi_profile_id="string",
    zpn_inspection_profile_id="string",
    zpn_isolation_profile_id="string")
const policyAccessIsolationRuleResource = new zpa.PolicyAccessIsolationRule("policyAccessIsolationRuleResource", {
    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",
    zpnCbiProfileId: "string",
    zpnInspectionProfileId: "string",
    zpnIsolationProfileId: "string",
});
type: zpa:PolicyAccessIsolationRule
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
    zpnCbiProfileId: string
    zpnInspectionProfileId: string
    zpnIsolationProfileId: string
PolicyAccessIsolationRule 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 PolicyAccessIsolationRule 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.
- BypassDefault boolRule 
- Conditions
List<Zscaler.Zpa. Inputs. Policy Access Isolation Rule Condition> 
- 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.
- LssDefault boolRule 
- MicrotenantId string
- Name string
- This is the name of the policy.
- Operator string
- PolicySet stringId 
- PolicyType string
- Priority string
- ReauthDefault boolRule 
- ReauthIdle stringTimeout 
- ReauthTimeout string
- RuleOrder string
- ZpnCbi stringProfile Id 
- ZpnInspection stringProfile Id 
- ZpnIsolation stringProfile Id 
- Action string
- This is for providing the rule action.
- ActionId string
- This field defines the description of the server.
- BypassDefault boolRule 
- Conditions
[]PolicyAccess Isolation Rule Condition Args 
- 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.
- LssDefault boolRule 
- MicrotenantId string
- Name string
- This is the name of the policy.
- Operator string
- PolicySet stringId 
- PolicyType string
- Priority string
- ReauthDefault boolRule 
- ReauthIdle stringTimeout 
- ReauthTimeout string
- RuleOrder string
- ZpnCbi stringProfile Id 
- ZpnInspection stringProfile Id 
- ZpnIsolation stringProfile Id 
- action String
- This is for providing the rule action.
- actionId String
- This field defines the description of the server.
- bypassDefault BooleanRule 
- conditions
List<PolicyAccess Isolation Rule Condition> 
- 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.
- lssDefault BooleanRule 
- microtenantId String
- name String
- This is the name of the policy.
- operator String
- policySet StringId 
- policyType String
- priority String
- reauthDefault BooleanRule 
- reauthIdle StringTimeout 
- reauthTimeout String
- ruleOrder String
- zpnCbi StringProfile Id 
- zpnInspection StringProfile Id 
- zpnIsolation StringProfile Id 
- action string
- This is for providing the rule action.
- actionId string
- This field defines the description of the server.
- bypassDefault booleanRule 
- conditions
PolicyAccess Isolation Rule Condition[] 
- 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.
- lssDefault booleanRule 
- microtenantId string
- name string
- This is the name of the policy.
- operator string
- policySet stringId 
- policyType string
- priority string
- reauthDefault booleanRule 
- reauthIdle stringTimeout 
- reauthTimeout string
- ruleOrder string
- zpnCbi stringProfile Id 
- zpnInspection stringProfile Id 
- zpnIsolation stringProfile Id 
- action str
- This is for providing the rule action.
- action_id str
- This field defines the description of the server.
- bypass_default_ boolrule 
- conditions
Sequence[PolicyAccess Isolation Rule Condition Args] 
- 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_ boolrule 
- microtenant_id str
- name str
- This is the name of the policy.
- operator str
- policy_set_ strid 
- policy_type str
- priority str
- reauth_default_ boolrule 
- reauth_idle_ strtimeout 
- reauth_timeout str
- rule_order str
- zpn_cbi_ strprofile_ id 
- zpn_inspection_ strprofile_ id 
- zpn_isolation_ strprofile_ id 
- action String
- This is for providing the rule action.
- actionId String
- This field defines the description of the server.
- bypassDefault BooleanRule 
- 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.
- lssDefault BooleanRule 
- microtenantId String
- name String
- This is the name of the policy.
- operator String
- policySet StringId 
- policyType String
- priority String
- reauthDefault BooleanRule 
- reauthIdle StringTimeout 
- reauthTimeout String
- ruleOrder String
- zpnCbi StringProfile Id 
- zpnInspection StringProfile Id 
- zpnIsolation StringProfile Id 
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyAccessIsolationRule 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 PolicyAccessIsolationRule Resource
Get an existing PolicyAccessIsolationRule 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?: PolicyAccessIsolationRuleState, opts?: CustomResourceOptions): PolicyAccessIsolationRule@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[PolicyAccessIsolationRuleConditionArgs]] = 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,
        zpn_cbi_profile_id: Optional[str] = None,
        zpn_inspection_profile_id: Optional[str] = None,
        zpn_isolation_profile_id: Optional[str] = None) -> PolicyAccessIsolationRulefunc GetPolicyAccessIsolationRule(ctx *Context, name string, id IDInput, state *PolicyAccessIsolationRuleState, opts ...ResourceOption) (*PolicyAccessIsolationRule, error)public static PolicyAccessIsolationRule Get(string name, Input<string> id, PolicyAccessIsolationRuleState? state, CustomResourceOptions? opts = null)public static PolicyAccessIsolationRule get(String name, Output<String> id, PolicyAccessIsolationRuleState state, CustomResourceOptions options)resources:  _:    type: zpa:PolicyAccessIsolationRule    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.
- Action string
- This is for providing the rule action.
- ActionId string
- This field defines the description of the server.
- BypassDefault boolRule 
- Conditions
List<Zscaler.Zpa. Inputs. Policy Access Isolation Rule Condition> 
- 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.
- LssDefault boolRule 
- MicrotenantId string
- Name string
- This is the name of the policy.
- Operator string
- PolicySet stringId 
- PolicyType string
- Priority string
- ReauthDefault boolRule 
- ReauthIdle stringTimeout 
- ReauthTimeout string
- RuleOrder string
- ZpnCbi stringProfile Id 
- ZpnInspection stringProfile Id 
- ZpnIsolation stringProfile Id 
- Action string
- This is for providing the rule action.
- ActionId string
- This field defines the description of the server.
- BypassDefault boolRule 
- Conditions
[]PolicyAccess Isolation Rule Condition Args 
- 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.
- LssDefault boolRule 
- MicrotenantId string
- Name string
- This is the name of the policy.
- Operator string
- PolicySet stringId 
- PolicyType string
- Priority string
- ReauthDefault boolRule 
- ReauthIdle stringTimeout 
- ReauthTimeout string
- RuleOrder string
- ZpnCbi stringProfile Id 
- ZpnInspection stringProfile Id 
- ZpnIsolation stringProfile Id 
- action String
- This is for providing the rule action.
- actionId String
- This field defines the description of the server.
- bypassDefault BooleanRule 
- conditions
List<PolicyAccess Isolation Rule Condition> 
- 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.
- lssDefault BooleanRule 
- microtenantId String
- name String
- This is the name of the policy.
- operator String
- policySet StringId 
- policyType String
- priority String
- reauthDefault BooleanRule 
- reauthIdle StringTimeout 
- reauthTimeout String
- ruleOrder String
- zpnCbi StringProfile Id 
- zpnInspection StringProfile Id 
- zpnIsolation StringProfile Id 
- action string
- This is for providing the rule action.
- actionId string
- This field defines the description of the server.
- bypassDefault booleanRule 
- conditions
PolicyAccess Isolation Rule Condition[] 
- 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.
- lssDefault booleanRule 
- microtenantId string
- name string
- This is the name of the policy.
- operator string
- policySet stringId 
- policyType string
- priority string
- reauthDefault booleanRule 
- reauthIdle stringTimeout 
- reauthTimeout string
- ruleOrder string
- zpnCbi stringProfile Id 
- zpnInspection stringProfile Id 
- zpnIsolation stringProfile Id 
- action str
- This is for providing the rule action.
- action_id str
- This field defines the description of the server.
- bypass_default_ boolrule 
- conditions
Sequence[PolicyAccess Isolation Rule Condition Args] 
- 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_ boolrule 
- microtenant_id str
- name str
- This is the name of the policy.
- operator str
- policy_set_ strid 
- policy_type str
- priority str
- reauth_default_ boolrule 
- reauth_idle_ strtimeout 
- reauth_timeout str
- rule_order str
- zpn_cbi_ strprofile_ id 
- zpn_inspection_ strprofile_ id 
- zpn_isolation_ strprofile_ id 
- action String
- This is for providing the rule action.
- actionId String
- This field defines the description of the server.
- bypassDefault BooleanRule 
- 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.
- lssDefault BooleanRule 
- microtenantId String
- name String
- This is the name of the policy.
- operator String
- policySet StringId 
- policyType String
- priority String
- reauthDefault BooleanRule 
- reauthIdle StringTimeout 
- reauthTimeout String
- ruleOrder String
- zpnCbi StringProfile Id 
- zpnInspection StringProfile Id 
- zpnIsolation StringProfile Id 
Supporting Types
PolicyAccessIsolationRuleCondition, PolicyAccessIsolationRuleConditionArgs          
- Operator string
- Id string
- MicrotenantId string
- Operands
List<Zscaler.Zpa. Inputs. Policy Access Isolation Rule Condition Operand> 
- This signifies the various policy criteria.
- Operator string
- Id string
- MicrotenantId string
- Operands
[]PolicyAccess Isolation Rule Condition Operand 
- This signifies the various policy criteria.
- operator String
- id String
- microtenantId String
- operands
List<PolicyAccess Isolation Rule Condition Operand> 
- This signifies the various policy criteria.
- operator string
- id string
- microtenantId string
- operands
PolicyAccess Isolation Rule Condition Operand[] 
- This signifies the various policy criteria.
- operator str
- id str
- microtenant_id str
- operands
Sequence[PolicyAccess Isolation Rule Condition Operand] 
- This signifies the various policy criteria.
- operator String
- id String
- microtenantId String
- operands List<Property Map>
- This signifies the various policy criteria.
PolicyAccessIsolationRuleConditionOperand, PolicyAccessIsolationRuleConditionOperandArgs            
- Lhs string
- This signifies the key for the object type. String ID example: id
- ObjectType 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 string
- This signifies the key for the object type. String ID example: id
- ObjectType 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 String
- This signifies the key for the object type. String ID example: id
- objectType 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 string
- This signifies the key for the object type. String ID example: id
- objectType 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 str
- This signifies the key for the object type. String ID example: id
- object_type 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 String
- This signifies the key for the object type. String ID example: id
- objectType 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
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 ISOLATION RULE ID> as the import ID.
For example:
$ pulumi import zpa:index/policyAccessIsolationRule:PolicyAccessIsolationRule example <policy_isolation_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 zpaTerraform Provider.
