» Data Source: oci_core_instance_console_connections

This data source provides the list of Instance Console Connections in Oracle Cloud Infrastructure Core service.

Lists the console connections for the specified compartment or instance.

For more information about console access, see Accessing the Console.

» Example Usage

data "oci_core_instance_console_connections" "test_instance_console_connections" {
    #Required
    compartment_id = "${var.compartment_id}"

    #Optional
    instance_id = "${oci_core_instance.test_instance.id}"
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

» InstanceConsoleConnection Reference

The following attributes are exported:

  • compartment_id - The OCID of the compartment to contain the console connection.
  • connection_string - The SSH connection string for the console connection.
  • 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"}
  • fingerprint - The SSH public key fingerprint for the console connection.
  • 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 console connection.
  • instance_id - The OCID of the instance the console connection connects to.
  • state - The current state of the console connection.
  • vnc_connection_string - The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.