oci_core_public_ip_pool
This resource provides the Public Ip Pool resource in Oracle Cloud Infrastructure Core service.
Creates a public IP pool.
Example Usage
resource "oci_core_public_ip_pool" "test_public_ip_pool" {
#Required
compartment_id = var.compartment_id
#Optional
defined_tags = {"Operations.CostCenter"= "42"}
display_name = var.public_ip_pool_display_name
freeform_tags = {"Department"= "Finance"}
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) (Updatable) The OCID of the compartment containing the public IP pool.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 name. Does not have to be unique, and it’s changeable. 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:
cidr_blocks
- The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block.compartment_id
- The OCID of the compartment containing this pool.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 name. Does not have to be unique, and it’s changeable. 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 public IP pool.state
- The public IP pool’s current state.time_created
- The date and time the public IP pool was created, 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 Public Ip Pool
* update
- (Defaults to 20 minutes), when updating the Public Ip Pool
* delete
- (Defaults to 20 minutes), when destroying the Public Ip Pool
Import
PublicIpPools can be imported using the id
, e.g.
$ terraform import oci_core_public_ip_pool.test_public_ip_pool "id"