1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getInstanceConsoleConnections
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Core.getInstanceConsoleConnections

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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 instance console connections, see Troubleshooting Instances Using Instance Console Connections.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testInstanceConsoleConnections = oci.Core.getInstanceConsoleConnections({
    compartmentId: compartmentId,
    instanceId: testInstance.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_instance_console_connections = oci.Core.get_instance_console_connections(compartment_id=compartment_id,
    instance_id=test_instance["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetInstanceConsoleConnections(ctx, &core.GetInstanceConsoleConnectionsArgs{
			CompartmentId: compartmentId,
			InstanceId:    pulumi.StringRef(testInstance.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testInstanceConsoleConnections = Oci.Core.GetInstanceConsoleConnections.Invoke(new()
    {
        CompartmentId = compartmentId,
        InstanceId = testInstance.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetInstanceConsoleConnectionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testInstanceConsoleConnections = CoreFunctions.getInstanceConsoleConnections(GetInstanceConsoleConnectionsArgs.builder()
            .compartmentId(compartmentId)
            .instanceId(testInstance.id())
            .build());

    }
}
Copy
variables:
  testInstanceConsoleConnections:
    fn::invoke:
      function: oci:Core:getInstanceConsoleConnections
      arguments:
        compartmentId: ${compartmentId}
        instanceId: ${testInstance.id}
Copy

Using getInstanceConsoleConnections

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getInstanceConsoleConnections(args: GetInstanceConsoleConnectionsArgs, opts?: InvokeOptions): Promise<GetInstanceConsoleConnectionsResult>
function getInstanceConsoleConnectionsOutput(args: GetInstanceConsoleConnectionsOutputArgs, opts?: InvokeOptions): Output<GetInstanceConsoleConnectionsResult>
Copy
def get_instance_console_connections(compartment_id: Optional[str] = None,
                                     filters: Optional[Sequence[_core.GetInstanceConsoleConnectionsFilter]] = None,
                                     instance_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetInstanceConsoleConnectionsResult
def get_instance_console_connections_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetInstanceConsoleConnectionsFilterArgs]]]] = None,
                                     instance_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetInstanceConsoleConnectionsResult]
Copy
func GetInstanceConsoleConnections(ctx *Context, args *GetInstanceConsoleConnectionsArgs, opts ...InvokeOption) (*GetInstanceConsoleConnectionsResult, error)
func GetInstanceConsoleConnectionsOutput(ctx *Context, args *GetInstanceConsoleConnectionsOutputArgs, opts ...InvokeOption) GetInstanceConsoleConnectionsResultOutput
Copy

> Note: This function is named GetInstanceConsoleConnections in the Go SDK.

public static class GetInstanceConsoleConnections 
{
    public static Task<GetInstanceConsoleConnectionsResult> InvokeAsync(GetInstanceConsoleConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceConsoleConnectionsResult> Invoke(GetInstanceConsoleConnectionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInstanceConsoleConnectionsResult> getInstanceConsoleConnections(GetInstanceConsoleConnectionsArgs args, InvokeOptions options)
public static Output<GetInstanceConsoleConnectionsResult> getInstanceConsoleConnections(GetInstanceConsoleConnectionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getInstanceConsoleConnections:getInstanceConsoleConnections
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
Filters Changes to this property will trigger replacement. List<GetInstanceConsoleConnectionsFilter>
InstanceId string
The OCID of the instance.
CompartmentId This property is required. string
The OCID of the compartment.
Filters Changes to this property will trigger replacement. []GetInstanceConsoleConnectionsFilter
InstanceId string
The OCID of the instance.
compartmentId This property is required. String
The OCID of the compartment.
filters Changes to this property will trigger replacement. List<GetInstanceConsoleConnectionsFilter>
instanceId String
The OCID of the instance.
compartmentId This property is required. string
The OCID of the compartment.
filters Changes to this property will trigger replacement. GetInstanceConsoleConnectionsFilter[]
instanceId string
The OCID of the instance.
compartment_id This property is required. str
The OCID of the compartment.
filters Changes to this property will trigger replacement. Sequence[core.GetInstanceConsoleConnectionsFilter]
instance_id str
The OCID of the instance.
compartmentId This property is required. String
The OCID of the compartment.
filters Changes to this property will trigger replacement. List<Property Map>
instanceId String
The OCID of the instance.

getInstanceConsoleConnections Result

The following output properties are available:

CompartmentId string
The OCID of the compartment to contain the console connection.
Id string
The provider-assigned unique ID for this managed resource.
InstanceConsoleConnections List<GetInstanceConsoleConnectionsInstanceConsoleConnection>
The list of instance_console_connections.
Filters List<GetInstanceConsoleConnectionsFilter>
InstanceId string
The OCID of the instance the console connection connects to.
CompartmentId string
The OCID of the compartment to contain the console connection.
Id string
The provider-assigned unique ID for this managed resource.
InstanceConsoleConnections []GetInstanceConsoleConnectionsInstanceConsoleConnection
The list of instance_console_connections.
Filters []GetInstanceConsoleConnectionsFilter
InstanceId string
The OCID of the instance the console connection connects to.
compartmentId String
The OCID of the compartment to contain the console connection.
id String
The provider-assigned unique ID for this managed resource.
instanceConsoleConnections List<GetInstanceConsoleConnectionsInstanceConsoleConnection>
The list of instance_console_connections.
filters List<GetInstanceConsoleConnectionsFilter>
instanceId String
The OCID of the instance the console connection connects to.
compartmentId string
The OCID of the compartment to contain the console connection.
id string
The provider-assigned unique ID for this managed resource.
instanceConsoleConnections GetInstanceConsoleConnectionsInstanceConsoleConnection[]
The list of instance_console_connections.
filters GetInstanceConsoleConnectionsFilter[]
instanceId string
The OCID of the instance the console connection connects to.
compartment_id str
The OCID of the compartment to contain the console connection.
id str
The provider-assigned unique ID for this managed resource.
instance_console_connections Sequence[core.GetInstanceConsoleConnectionsInstanceConsoleConnection]
The list of instance_console_connections.
filters Sequence[core.GetInstanceConsoleConnectionsFilter]
instance_id str
The OCID of the instance the console connection connects to.
compartmentId String
The OCID of the compartment to contain the console connection.
id String
The provider-assigned unique ID for this managed resource.
instanceConsoleConnections List<Property Map>
The list of instance_console_connections.
filters List<Property Map>
instanceId String
The OCID of the instance the console connection connects to.

Supporting Types

GetInstanceConsoleConnectionsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetInstanceConsoleConnectionsInstanceConsoleConnection

CompartmentId This property is required. string
The OCID of the compartment.
ConnectionString This property is required. string
The SSH connection string for the console connection.
DefinedTags This property is required. Dictionary<string, string>
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 This property is required. string
The SSH public key's fingerprint for client authentication to the console connection.
FreeformTags This property is required. Dictionary<string, string>
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 This property is required. string
The OCID of the console connection.
InstanceId This property is required. string
The OCID of the instance.
PublicKey This property is required. string
ServiceHostKeyFingerprint This property is required. string
The SSH public key's fingerprint for the console connection service host.
State This property is required. string
The current state of the console connection.
VncConnectionString This property is required. string
The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
CompartmentId This property is required. string
The OCID of the compartment.
ConnectionString This property is required. string
The SSH connection string for the console connection.
DefinedTags This property is required. map[string]string
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 This property is required. string
The SSH public key's fingerprint for client authentication to the console connection.
FreeformTags This property is required. map[string]string
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 This property is required. string
The OCID of the console connection.
InstanceId This property is required. string
The OCID of the instance.
PublicKey This property is required. string
ServiceHostKeyFingerprint This property is required. string
The SSH public key's fingerprint for the console connection service host.
State This property is required. string
The current state of the console connection.
VncConnectionString This property is required. string
The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
compartmentId This property is required. String
The OCID of the compartment.
connectionString This property is required. String
The SSH connection string for the console connection.
definedTags This property is required. Map<String,String>
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 This property is required. String
The SSH public key's fingerprint for client authentication to the console connection.
freeformTags This property is required. Map<String,String>
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 This property is required. String
The OCID of the console connection.
instanceId This property is required. String
The OCID of the instance.
publicKey This property is required. String
serviceHostKeyFingerprint This property is required. String
The SSH public key's fingerprint for the console connection service host.
state This property is required. String
The current state of the console connection.
vncConnectionString This property is required. String
The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
compartmentId This property is required. string
The OCID of the compartment.
connectionString This property is required. string
The SSH connection string for the console connection.
definedTags This property is required. {[key: string]: string}
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 This property is required. string
The SSH public key's fingerprint for client authentication to the console connection.
freeformTags This property is required. {[key: string]: string}
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 This property is required. string
The OCID of the console connection.
instanceId This property is required. string
The OCID of the instance.
publicKey This property is required. string
serviceHostKeyFingerprint This property is required. string
The SSH public key's fingerprint for the console connection service host.
state This property is required. string
The current state of the console connection.
vncConnectionString This property is required. string
The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
compartment_id This property is required. str
The OCID of the compartment.
connection_string This property is required. str
The SSH connection string for the console connection.
defined_tags This property is required. Mapping[str, str]
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 This property is required. str
The SSH public key's fingerprint for client authentication to the console connection.
freeform_tags This property is required. Mapping[str, str]
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 This property is required. str
The OCID of the console connection.
instance_id This property is required. str
The OCID of the instance.
public_key This property is required. str
service_host_key_fingerprint This property is required. str
The SSH public key's fingerprint for the console connection service host.
state This property is required. str
The current state of the console connection.
vnc_connection_string This property is required. str
The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
compartmentId This property is required. String
The OCID of the compartment.
connectionString This property is required. String
The SSH connection string for the console connection.
definedTags This property is required. Map<String>
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 This property is required. String
The SSH public key's fingerprint for client authentication to the console connection.
freeformTags This property is required. Map<String>
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 This property is required. String
The OCID of the console connection.
instanceId This property is required. String
The OCID of the instance.
publicKey This property is required. String
serviceHostKeyFingerprint This property is required. String
The SSH public key's fingerprint for the console connection service host.
state This property is required. String
The current state of the console connection.
vncConnectionString This property is required. String
The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi