oci_network_firewall_network_firewall_policy
This resource provides the Network Firewall Policy resource in Oracle Cloud Infrastructure Network Firewall service.
Creates a new Network Firewall Policy.
Example Usage
resource "oci_network_firewall_network_firewall_policy" "test_network_firewall_policy" {
#Required
compartment_id = var.compartment_id
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
display_name = var.network_firewall_policy_display_name
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) (Updatable) The OCID of the compartment containing the NetworkFirewall Policy.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"}
display_name
- (Optional) (Updatable) A user-friendly optional name for the firewall policy. Avoid entering confidential information.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"}
** 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:
attached_network_firewall_count
- Count of number of Network Firewall attached to the Policy.compartment_id
- The OCID of the compartment containing the NetworkFirewall Policy.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"}
display_name
- A user-friendly optional name for the firewall policy. Avoid entering confidential information.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"}
id
- The OCID of the resource - Network Firewall Policy.lifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.state
- The current state of the Network Firewall Policy.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The time instant at which the Network Firewall Policy was created in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
time_updated
- The time instant at which the Network Firewall Policy was updated in the format defined by RFC3339. 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 Network Firewall Policy
* update
- (Defaults to 20 minutes), when updating the Network Firewall Policy
* delete
- (Defaults to 20 minutes), when destroying the Network Firewall Policy
Import
NetworkFirewallPolicies can be imported using the id
, e.g.
$ terraform import oci_network_firewall_network_firewall_policy.test_network_firewall_policy "id"
Note
- We are introducing significant enhancements in network firewall policy. The policy components have been decomposed to support higher limits.
- Network firewall policies created using older versions will not be accessible using this version. Older policies will continue to function using older SDKs.
- To access the policies using the latest version of terraform, upgrade the older policies to use the latest features using CLI, SDKs, or console. Once upgraded, the policy can’t be rolled back to the older version. Refer here for further details on this.