oci_core_private_ip

This resource provides the Private Ip resource in Oracle Cloud Infrastructure Core service.

Creates a secondary private IP for the specified VNIC. For more information about secondary private IPs, see IP Addresses.

Example Usage

resource "oci_core_private_ip" "test_private_ip" {

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.private_ip_display_name
	freeform_tags = {"Department"= "Finance"}
	hostname_label = var.private_ip_hostname_label
	ip_address = var.private_ip_ip_address
	vlan_id = oci_core_vlan.test_vlan.id
	vnic_id = oci_core_vnic_attachment.test_vnic_attachment.vnic_id
}

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:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Private Ip * update - (Defaults to 20 minutes), when updating the Private Ip * delete - (Defaults to 20 minutes), when destroying the Private Ip

Import

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

$ terraform import oci_core_private_ip.test_private_ip "id"