zpa.PolicyAccessReorderRule
Explore with Pulumi AI
The zpa_policy_access_rule_reorder is a dedicated resource to manage and update rule_orders
in any of the supported ZPA Policy Access types Zscaler Private Access cloud.
⚠️ WARNING:: The attribute rule_order
is now deprecated in favor of this resource for all ZPA policy types.
⚠️ WARNING:: Updating the rule order of an access policy configured using Zscaler Deception
is not supported. When changing the rule order of a regular access policy and there is an access policy configured using Deception, the rule order of the regular access policy must be greater than the rule order for an access policy configured using Deception. Please refer to the Zscaler API Documentation for further details.
Example Usage
1
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
example001:
type: zpa:PolicyAccessRule
properties:
description: example001
action: ALLOW
operator: AND
example002:
type: zpa:PolicyAccessRule
properties:
description: example002
action: ALLOW
operator: AND
accessPolicyReorder:
type: zpa:PolicyAccessReorderRule
properties:
policyType: ACCESS_POLICY
dynamic:
- forEach: ${ruleOrders}
content:
- id: ${rules.value.id}
order: ${rules.value.order}
variables:
ruleOrders:
- id: ${example001.id}
order: 1
- id: ${example002.id}
order: 2
Create PolicyAccessReorderRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyAccessReorderRule(name: string, args: PolicyAccessReorderRuleArgs, opts?: CustomResourceOptions);
@overload
def PolicyAccessReorderRule(resource_name: str,
args: PolicyAccessReorderRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyAccessReorderRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
policy_type: Optional[str] = None,
rules: Optional[Sequence[PolicyAccessReorderRuleRuleArgs]] = None)
func NewPolicyAccessReorderRule(ctx *Context, name string, args PolicyAccessReorderRuleArgs, opts ...ResourceOption) (*PolicyAccessReorderRule, error)
public PolicyAccessReorderRule(string name, PolicyAccessReorderRuleArgs args, CustomResourceOptions? opts = null)
public PolicyAccessReorderRule(String name, PolicyAccessReorderRuleArgs args)
public PolicyAccessReorderRule(String name, PolicyAccessReorderRuleArgs args, CustomResourceOptions options)
type: zpa:PolicyAccessReorderRule
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 PolicyAccessReorderRuleArgs
- 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 PolicyAccessReorderRuleArgs
- 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 PolicyAccessReorderRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyAccessReorderRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyAccessReorderRuleArgs
- 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 policyAccessReorderRuleResource = new Zpa.PolicyAccessReorderRule("policyAccessReorderRuleResource", new()
{
PolicyType = "string",
Rules = new[]
{
new Zpa.Inputs.PolicyAccessReorderRuleRuleArgs
{
Id = "string",
Order = "string",
},
},
});
example, err := zpa.NewPolicyAccessReorderRule(ctx, "policyAccessReorderRuleResource", &zpa.PolicyAccessReorderRuleArgs{
PolicyType: pulumi.String("string"),
Rules: zpa.PolicyAccessReorderRuleRuleArray{
&zpa.PolicyAccessReorderRuleRuleArgs{
Id: pulumi.String("string"),
Order: pulumi.String("string"),
},
},
})
var policyAccessReorderRuleResource = new PolicyAccessReorderRule("policyAccessReorderRuleResource", PolicyAccessReorderRuleArgs.builder()
.policyType("string")
.rules(PolicyAccessReorderRuleRuleArgs.builder()
.id("string")
.order("string")
.build())
.build());
policy_access_reorder_rule_resource = zpa.PolicyAccessReorderRule("policyAccessReorderRuleResource",
policy_type="string",
rules=[zpa.PolicyAccessReorderRuleRuleArgs(
id="string",
order="string",
)])
const policyAccessReorderRuleResource = new zpa.PolicyAccessReorderRule("policyAccessReorderRuleResource", {
policyType: "string",
rules: [{
id: "string",
order: "string",
}],
});
type: zpa:PolicyAccessReorderRule
properties:
policyType: string
rules:
- id: string
order: string
PolicyAccessReorderRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PolicyAccessReorderRule resource accepts the following input properties:
- Policy
Type string - Rules
List<Zscaler.
Zpa. Inputs. Policy Access Reorder Rule Rule> - List of rules and their orders
- Policy
Type string - Rules
[]Policy
Access Reorder Rule Rule Args - List of rules and their orders
- policy
Type String - rules
List<Policy
Access Reorder Rule Rule> - List of rules and their orders
- policy
Type string - rules
Policy
Access Reorder Rule Rule[] - List of rules and their orders
- policy_
type str - rules
Sequence[Policy
Access Reorder Rule Rule Args] - List of rules and their orders
- policy
Type String - rules List<Property Map>
- List of rules and their orders
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyAccessReorderRule 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 PolicyAccessReorderRule Resource
Get an existing PolicyAccessReorderRule 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?: PolicyAccessReorderRuleState, opts?: CustomResourceOptions): PolicyAccessReorderRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
policy_type: Optional[str] = None,
rules: Optional[Sequence[PolicyAccessReorderRuleRuleArgs]] = None) -> PolicyAccessReorderRule
func GetPolicyAccessReorderRule(ctx *Context, name string, id IDInput, state *PolicyAccessReorderRuleState, opts ...ResourceOption) (*PolicyAccessReorderRule, error)
public static PolicyAccessReorderRule Get(string name, Input<string> id, PolicyAccessReorderRuleState? state, CustomResourceOptions? opts = null)
public static PolicyAccessReorderRule get(String name, Output<String> id, PolicyAccessReorderRuleState 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.
- Policy
Type string - Rules
List<Zscaler.
Zpa. Inputs. Policy Access Reorder Rule Rule> - List of rules and their orders
- Policy
Type string - Rules
[]Policy
Access Reorder Rule Rule Args - List of rules and their orders
- policy
Type String - rules
List<Policy
Access Reorder Rule Rule> - List of rules and their orders
- policy
Type string - rules
Policy
Access Reorder Rule Rule[] - List of rules and their orders
- policy_
type str - rules
Sequence[Policy
Access Reorder Rule Rule Args] - List of rules and their orders
- policy
Type String - rules List<Property Map>
- List of rules and their orders
Supporting Types
PolicyAccessReorderRuleRule, PolicyAccessReorderRuleRuleArgs
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.