oci_waas_address_list
This resource provides the Address List resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/waas/latest/AddressList
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/web_application_acceleration_and_security
Creates an address list in a set compartment and allows it to be used in a WAAS policy and referenced by access rules. Addresses can be IP addresses and CIDR notations.
Example Usage
resource "oci_waas_address_list" "test_address_list" {
#Required
addresses = var.address_list_addresses
compartment_id = var.compartment_id
display_name = var.address_list_display_name
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
addresses- (Required) (Updatable) A list of IP addresses or CIDR notations.compartment_id- (Required) (Updatable) The OCID of the compartment in which to create the address list.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- (Required) (Updatable) A user-friendly name for the address list.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:
address_count- The total number of unique IP addresses in the address list.addresses- The list of IP addresses or CIDR notations.compartment_id- The OCID of the address list’s 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"}display_name- The user-friendly name of the address list.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 address list.state- The current lifecycle state of the address list.time_created- The date and time the address list was created, expressed in RFC 3339 timestamp format.
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Address List
* update - (Defaults to 20 minutes), when updating the Address List
* delete - (Defaults to 20 minutes), when destroying the Address List
Import
AddressLists can be imported using the id, e.g.
$ terraform import oci_waas_address_list.test_address_list "id"