Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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 dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The OCID of the compartment.
- Filters
Changes to this property will trigger replacement.
Instance Console Connections Filter> - Instance
Id string - The OCID of the instance.
- Compartment
Id This property is required. string - The OCID of the compartment.
- Filters
Changes to this property will trigger replacement.
Instance Console Connections Filter - Instance
Id string - The OCID of the instance.
- compartment
Id This property is required. String - The OCID of the compartment.
- filters
Changes to this property will trigger replacement.
Instance Console Connections Filter> - instance
Id String - The OCID of the instance.
- compartment
Id This property is required. string - The OCID of the compartment.
- filters
Changes to this property will trigger replacement.
Instance Console Connections Filter[] - instance
Id 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.
Get Instance Console Connections Filter] - instance_
id str - The OCID of the instance.
- compartment
Id This property is required. String - The OCID of the compartment.
- filters
Changes to this property will trigger replacement.
- instance
Id String - The OCID of the instance.
getInstanceConsoleConnections Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment to contain the console connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Console List<GetConnections Instance Console Connections Instance Console Connection> - The list of instance_console_connections.
- Filters
List<Get
Instance Console Connections Filter> - Instance
Id string - The OCID of the instance the console connection connects to.
- Compartment
Id string - The OCID of the compartment to contain the console connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Console []GetConnections Instance Console Connections Instance Console Connection - The list of instance_console_connections.
- Filters
[]Get
Instance Console Connections Filter - Instance
Id string - The OCID of the instance the console connection connects to.
- compartment
Id String - The OCID of the compartment to contain the console connection.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Console List<GetConnections Instance Console Connections Instance Console Connection> - The list of instance_console_connections.
- filters
List<Get
Instance Console Connections Filter> - instance
Id String - The OCID of the instance the console connection connects to.
- compartment
Id string - The OCID of the compartment to contain the console connection.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Console GetConnections Instance Console Connections Instance Console Connection[] - The list of instance_console_connections.
- filters
Get
Instance Console Connections Filter[] - instance
Id 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.
- compartment
Id String - The OCID of the compartment to contain the console connection.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Console List<Property Map>Connections - The list of instance_console_connections.
- filters List<Property Map>
- instance
Id String - The OCID of the instance the console connection connects to.
Supporting Types
GetInstanceConsoleConnectionsFilter
GetInstanceConsoleConnectionsInstanceConsoleConnection
- Compartment
Id This property is required. string - The OCID of the compartment.
- Connection
String This property is required. string - The SSH connection string for the console connection.
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.
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.
- Instance
Id This property is required. string - The OCID of the instance.
- Public
Key This property is required. string - Service
Host Key Fingerprint 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.
- Vnc
Connection String 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. string - The OCID of the compartment.
- Connection
String This property is required. string - The SSH connection string for the console connection.
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.
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.
- Instance
Id This property is required. string - The OCID of the instance.
- Public
Key This property is required. string - Service
Host Key Fingerprint 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.
- Vnc
Connection String 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. String - The OCID of the compartment.
- connection
String This property is required. String - The SSH connection string for the console connection.
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.
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.
- instance
Id This property is required. String - The OCID of the instance.
- public
Key This property is required. String - service
Host Key Fingerprint 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.
- vnc
Connection String 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. string - The OCID of the compartment.
- connection
String This property is required. string - The SSH connection string for the console connection.
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.
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.
- instance
Id This property is required. string - The OCID of the instance.
- public
Key This property is required. string - service
Host Key Fingerprint 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.
- vnc
Connection String 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.
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.
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.
- compartment
Id This property is required. String - The OCID of the compartment.
- connection
String This property is required. String - The SSH connection string for the console connection.
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.
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.
- instance
Id This property is required. String - The OCID of the instance.
- public
Key This property is required. String - service
Host Key Fingerprint 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.
- vnc
Connection String 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.