Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.Core.getInstanceConsoleConnections
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testInstanceConsoleConnections:
    fn::invoke:
      function: oci:Core:getInstanceConsoleConnections
      arguments:
        compartmentId: ${compartmentId}
        instanceId: ${testInstance.id}
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>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]func GetInstanceConsoleConnections(ctx *Context, args *GetInstanceConsoleConnectionsArgs, opts ...InvokeOption) (*GetInstanceConsoleConnectionsResult, error)
func GetInstanceConsoleConnectionsOutput(ctx *Context, args *GetInstanceConsoleConnectionsOutputArgs, opts ...InvokeOption) GetInstanceConsoleConnectionsResultOutput> 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)
}public static CompletableFuture<GetInstanceConsoleConnectionsResult> getInstanceConsoleConnections(GetInstanceConsoleConnectionsArgs args, InvokeOptions options)
public static Output<GetInstanceConsoleConnectionsResult> getInstanceConsoleConnections(GetInstanceConsoleConnectionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getInstanceConsoleConnections:getInstanceConsoleConnections
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- Filters
List<GetInstance Console Connections Filter> 
- InstanceId string
- The OCID of the instance.
- CompartmentId string
- The OCID of the compartment.
- Filters
[]GetInstance Console Connections Filter 
- InstanceId string
- The OCID of the instance.
- compartmentId String
- The OCID of the compartment.
- filters
List<GetInstance Console Connections Filter> 
- instanceId String
- The OCID of the instance.
- compartmentId string
- The OCID of the compartment.
- filters
GetInstance Console Connections Filter[] 
- instanceId string
- The OCID of the instance.
- compartment_id str
- The OCID of the compartment.
- filters
Sequence[core.Get Instance Console Connections Filter] 
- instance_id str
- The OCID of the instance.
- compartmentId String
- The OCID of the compartment.
- filters 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.
- InstanceConsole List<GetConnections Instance Console Connections Instance Console Connection> 
- The list of instance_console_connections.
- Filters
List<GetInstance Console Connections Filter> 
- 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.
- InstanceConsole []GetConnections Instance Console Connections Instance Console Connection 
- The list of instance_console_connections.
- Filters
[]GetInstance Console Connections Filter 
- 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.
- instanceConsole List<GetConnections Instance Console Connections Instance Console Connection> 
- The list of instance_console_connections.
- filters
List<GetInstance Console Connections Filter> 
- 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.
- instanceConsole GetConnections Instance Console Connections Instance Console Connection[] 
- The list of instance_console_connections.
- filters
GetInstance Console Connections Filter[] 
- 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_ Sequence[core.connections Get Instance Console Connections Instance Console Connection] 
- The list of instance_console_connections.
- filters
Sequence[core.Get Instance Console Connections Filter] 
- 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.
- instanceConsole List<Property Map>Connections 
- 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    
GetInstanceConsoleConnectionsInstanceConsoleConnection      
- CompartmentId string
- The OCID of the compartment.
- ConnectionString string
- The SSH connection string for the console connection.
- 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 string
- The SSH public key's fingerprint for client authentication to the console connection.
- 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 string
- The OCID of the console connection.
- InstanceId string
- The OCID of the instance.
- PublicKey string
- ServiceHost stringKey Fingerprint 
- The SSH public key's fingerprint for the console connection service host.
- State string
- The current state of the console connection.
- VncConnection stringString 
- The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
- CompartmentId string
- The OCID of the compartment.
- ConnectionString string
- The SSH connection string for the console connection.
- 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 string
- The SSH public key's fingerprint for client authentication to the console connection.
- 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 string
- The OCID of the console connection.
- InstanceId string
- The OCID of the instance.
- PublicKey string
- ServiceHost stringKey Fingerprint 
- The SSH public key's fingerprint for the console connection service host.
- State string
- The current state of the console connection.
- VncConnection stringString 
- The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
- compartmentId String
- The OCID of the compartment.
- connectionString String
- The SSH connection string for the console connection.
- 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 String
- The SSH public key's fingerprint for client authentication to the console connection.
- 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 String
- The OCID of the console connection.
- instanceId String
- The OCID of the instance.
- publicKey String
- serviceHost StringKey Fingerprint 
- The SSH public key's fingerprint for the console connection service host.
- state String
- The current state of the console connection.
- vncConnection StringString 
- The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
- compartmentId string
- The OCID of the compartment.
- connectionString string
- The SSH connection string for the console connection.
- {[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 string
- The SSH public key's fingerprint for client authentication to the console connection.
- {[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 string
- The OCID of the console connection.
- instanceId string
- The OCID of the instance.
- publicKey string
- serviceHost stringKey Fingerprint 
- The SSH public key's fingerprint for the console connection service host.
- state string
- The current state of the console connection.
- vncConnection stringString 
- The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
- compartment_id str
- The OCID of the compartment.
- connection_string str
- The SSH connection string for the console connection.
- 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 str
- The SSH public key's fingerprint for client authentication to the console connection.
- 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 str
- The OCID of the console connection.
- instance_id str
- The OCID of the instance.
- public_key str
- service_host_ strkey_ fingerprint 
- The SSH public key's fingerprint for the console connection service host.
- state str
- The current state of the console connection.
- vnc_connection_ strstring 
- The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
- compartmentId String
- The OCID of the compartment.
- connectionString String
- The SSH connection string for the console connection.
- 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 String
- The SSH public key's fingerprint for client authentication to the console connection.
- 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 String
- The OCID of the console connection.
- instanceId String
- The OCID of the instance.
- publicKey String
- serviceHost StringKey Fingerprint 
- The SSH public key's fingerprint for the console connection service host.
- state String
- The current state of the console connection.
- vncConnection StringString 
- 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 ociTerraform Provider.