oci_core_public_ip_pool_capacity

This resource is used to manage the cidr_blocks of Public Ip Pool resource in Oracle Cloud Infrastructure Core service. Adds a Cidr from the named Byoip Range prefix to the referenced Public IP Pool. The cidr must be a subset of the Byoip Range in question. The cidr must not overlap with any other cidr already added to this or any other Public Ip Pool.

Note: When a new oci_core_public_ip_pool_capacity resource is created or removed, terraform needs to be refreshed to update the cidr_blocks of oci_core_public_ip_pool resource in state file.

Example Usage

resource "oci_core_public_ip_pool_capacity" "test_public_ip_pool_capacity" {
	#Required
	public_ip_pool_id = "${var.public_ip_pool_id}"
	byoip_id = "${var.byoip_id}"
	cidr_block = "${var.cidr_block}"
}

Argument Reference

The following arguments are supported:

** 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:

Import

PublicIpPoolCapacity can be imported using the id, e.g.

$ terraform import oci_core_public_ip_pool_capacity.test_public_ip_pool_capacity "publicIpPoolId/{publicIpPoolId}/byoipId/{byoipId}/cidrBlock/{cidrBlock}"