oci_zpr_zpr_policy
This resource provides the Zpr Policy resource in Oracle Cloud Infrastructure Zpr service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/zero-trust-packet-routing/latest/ZprPolicy
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/zpr
Creates a ZprPolicy.
Example Usage
resource "oci_zpr_zpr_policy" "test_zpr_policy" {
#Required
compartment_id = var.tenancy_ocid
description = var.zpr_policy_description
name = var.zpr_policy_name
statements = var.zpr_policy_statements
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) The OCID of the compartment to create the ZprPolicy in.defined_tags- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}description- (Required) (Updatable) The description you assign to the ZprPolicy during creation. Does not have to be unique, and it’s changeable.freeform_tags- (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}name- (Required) The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.statements- (Required) (Updatable) An array of ZprPolicy statements(up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
compartment_id- The OCID of the compartment.defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}description- The description you assign to the ZprPolicy during creation. Does not have to be unique, and it’s changeable.freeform_tags- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}lifecycle_details- A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.name- The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.state- The current state of the ZprPolicy.statements- An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- The date and time the ZprPolicy was created, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Ztime_updated- The date and time the ZprPolicy was updated, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Z
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Zpr Policy
* update - (Defaults to 20 minutes), when updating the Zpr Policy
* delete - (Defaults to 20 minutes), when destroying the Zpr Policy
Import
ZprPolicies can be imported using the id, e.g.
$ terraform import oci_zpr_zpr_policy.test_zpr_policy "id"