Data Source: oci_core_instance

This data source provides details about a specific Instance resource in Oracle Cloud Infrastructure Core service.

Gets information about the specified instance.

Note: To retrieve public and private IP addresses for an instance, use the ListVnicAttachments operation to get the VNIC ID for the instance, and then call GetVnic with the VNIC ID.

Example Usage

data "oci_core_instance" "test_instance" {
	#Required
	instance_id = oci_core_instance.test_instance.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: