zpa.PolicyInspectionRuleV2
Explore with Pulumi AI
The zpa_policy_inspection_rule_v2 resource creates and manages policy access inspection 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 rule_order
is now deprecated in favor of the new resource policy_access_rule_reorder
Create PolicyInspectionRuleV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyInspectionRuleV2(name: string, args?: PolicyInspectionRuleV2Args, opts?: CustomResourceOptions);
@overload
def PolicyInspectionRuleV2(resource_name: str,
args: Optional[PolicyInspectionRuleV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyInspectionRuleV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
conditions: Optional[Sequence[PolicyInspectionRuleV2ConditionArgs]] = None,
description: Optional[str] = None,
microtenant_id: Optional[str] = None,
name: Optional[str] = None,
zpn_inspection_profile_id: Optional[str] = None)
func NewPolicyInspectionRuleV2(ctx *Context, name string, args *PolicyInspectionRuleV2Args, opts ...ResourceOption) (*PolicyInspectionRuleV2, error)
public PolicyInspectionRuleV2(string name, PolicyInspectionRuleV2Args? args = null, CustomResourceOptions? opts = null)
public PolicyInspectionRuleV2(String name, PolicyInspectionRuleV2Args args)
public PolicyInspectionRuleV2(String name, PolicyInspectionRuleV2Args args, CustomResourceOptions options)
type: zpa:PolicyInspectionRuleV2
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 PolicyInspectionRuleV2Args
- 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 PolicyInspectionRuleV2Args
- 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 PolicyInspectionRuleV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyInspectionRuleV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyInspectionRuleV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PolicyInspectionRuleV2 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 PolicyInspectionRuleV2 resource accepts the following input properties:
- Action string
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - Conditions
List<Zscaler.
Zpa. Inputs. Policy Inspection Rule V2Condition> - This is for proviidng the set of conditions for the policy.
- Description string
- This is the description of the access policy rule.
- Microtenant
Id string - Name string
- (String) This is the name of the policy rule.
- Zpn
Inspection stringProfile Id - An inspection profile is required if the
action
is set toINSPECT
- Action string
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - Conditions
[]Policy
Inspection Rule V2Condition Args - This is for proviidng the set of conditions for the policy.
- Description string
- This is the description of the access policy rule.
- Microtenant
Id string - Name string
- (String) This is the name of the policy rule.
- Zpn
Inspection stringProfile Id - An inspection profile is required if the
action
is set toINSPECT
- action String
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - conditions
List<Policy
Inspection Rule V2Condition> - This is for proviidng the set of conditions for the policy.
- description String
- This is the description of the access policy rule.
- microtenant
Id String - name String
- (String) This is the name of the policy rule.
- zpn
Inspection StringProfile Id - An inspection profile is required if the
action
is set toINSPECT
- action string
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - conditions
Policy
Inspection Rule V2Condition[] - This is for proviidng the set of conditions for the policy.
- description string
- This is the description of the access policy rule.
- microtenant
Id string - name string
- (String) This is the name of the policy rule.
- zpn
Inspection stringProfile Id - An inspection profile is required if the
action
is set toINSPECT
- action str
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - conditions
Sequence[Policy
Inspection Rule V2Condition Args] - 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
- (String) This is the name of the policy rule.
- zpn_
inspection_ strprofile_ id - An inspection profile is required if the
action
is set toINSPECT
- action String
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - 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.
- microtenant
Id String - name String
- (String) This is the name of the policy rule.
- zpn
Inspection StringProfile Id - An inspection profile is required if the
action
is set toINSPECT
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyInspectionRuleV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Set stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Set stringId
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Set StringId
- id string
- The provider-assigned unique ID for this managed resource.
- policy
Set stringId
- id str
- The provider-assigned unique ID for this managed resource.
- policy_
set_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Set StringId
Look up Existing PolicyInspectionRuleV2 Resource
Get an existing PolicyInspectionRuleV2 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?: PolicyInspectionRuleV2State, opts?: CustomResourceOptions): PolicyInspectionRuleV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
conditions: Optional[Sequence[PolicyInspectionRuleV2ConditionArgs]] = None,
description: Optional[str] = None,
microtenant_id: Optional[str] = None,
name: Optional[str] = None,
policy_set_id: Optional[str] = None,
zpn_inspection_profile_id: Optional[str] = None) -> PolicyInspectionRuleV2
func GetPolicyInspectionRuleV2(ctx *Context, name string, id IDInput, state *PolicyInspectionRuleV2State, opts ...ResourceOption) (*PolicyInspectionRuleV2, error)
public static PolicyInspectionRuleV2 Get(string name, Input<string> id, PolicyInspectionRuleV2State? state, CustomResourceOptions? opts = null)
public static PolicyInspectionRuleV2 get(String name, Output<String> id, PolicyInspectionRuleV2State state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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. Supported values:
INSPECT
andBYPASS_INSPECT
. - Conditions
List<Zscaler.
Zpa. Inputs. Policy Inspection Rule V2Condition> - This is for proviidng the set of conditions for the policy.
- Description string
- This is the description of the access policy rule.
- Microtenant
Id string - Name string
- (String) This is the name of the policy rule.
- Policy
Set stringId - Zpn
Inspection stringProfile Id - An inspection profile is required if the
action
is set toINSPECT
- Action string
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - Conditions
[]Policy
Inspection Rule V2Condition Args - This is for proviidng the set of conditions for the policy.
- Description string
- This is the description of the access policy rule.
- Microtenant
Id string - Name string
- (String) This is the name of the policy rule.
- Policy
Set stringId - Zpn
Inspection stringProfile Id - An inspection profile is required if the
action
is set toINSPECT
- action String
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - conditions
List<Policy
Inspection Rule V2Condition> - This is for proviidng the set of conditions for the policy.
- description String
- This is the description of the access policy rule.
- microtenant
Id String - name String
- (String) This is the name of the policy rule.
- policy
Set StringId - zpn
Inspection StringProfile Id - An inspection profile is required if the
action
is set toINSPECT
- action string
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - conditions
Policy
Inspection Rule V2Condition[] - This is for proviidng the set of conditions for the policy.
- description string
- This is the description of the access policy rule.
- microtenant
Id string - name string
- (String) This is the name of the policy rule.
- policy
Set stringId - zpn
Inspection stringProfile Id - An inspection profile is required if the
action
is set toINSPECT
- action str
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - conditions
Sequence[Policy
Inspection Rule V2Condition Args] - 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
- (String) This is the name of the policy rule.
- policy_
set_ strid - zpn_
inspection_ strprofile_ id - An inspection profile is required if the
action
is set toINSPECT
- action String
- This is for providing the rule action. Supported values:
INSPECT
andBYPASS_INSPECT
. - 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.
- microtenant
Id String - name String
- (String) This is the name of the policy rule.
- policy
Set StringId - zpn
Inspection StringProfile Id - An inspection profile is required if the
action
is set toINSPECT
Supporting Types
PolicyInspectionRuleV2Condition, PolicyInspectionRuleV2ConditionArgs
- Id string
- Operands
List<Zscaler.
Zpa. Inputs. Policy Inspection Rule V2Condition Operand> - This signifies the various policy criteria.
- Operator string
- Id string
- Operands
[]Policy
Inspection Rule V2Condition Operand - This signifies the various policy criteria.
- Operator string
- id String
- operands
List<Policy
Inspection Rule V2Condition Operand> - This signifies the various policy criteria.
- operator String
- id string
- operands
Policy
Inspection Rule V2Condition Operand[] - This signifies the various policy criteria.
- operator string
- id str
- operands
Sequence[Policy
Inspection Rule V2Condition Operand] - This signifies the various policy criteria.
- operator str
- id String
- operands List<Property Map>
- This signifies the various policy criteria.
- operator String
PolicyInspectionRuleV2ConditionOperand, PolicyInspectionRuleV2ConditionOperandArgs
- Entry
Values List<Zscaler.Zpa. Inputs. Policy Inspection Rule V2Condition Operand Entry Value> - Object
Type 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
- Entry
Values []PolicyInspection Rule V2Condition Operand Entry Value - Object
Type 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 List<PolicyInspection Rule V2Condition Operand Entry Value> - object
Type 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
- entry
Values PolicyInspection Rule V2Condition Operand Entry Value[] - object
Type 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[PolicyInspection Rule V2Condition Operand Entry Value] - 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
- entry
Values List<Property Map> - object
Type 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
PolicyInspectionRuleV2ConditionOperandEntryValue, PolicyInspectionRuleV2ConditionOperandEntryValueArgs
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 inspection rule can be imported by using <RULE ID>
as the import ID.
For example:
$ pulumi import zpa:index/policyInspectionRuleV2:PolicyInspectionRuleV2 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.