Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Core.getInstanceConsoleConnections
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 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,
});
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/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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getInstanceConsoleConnections:getInstanceConsoleConnections
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Instance Console Connections Filter> - Instance
Id string - The OCID of the instance.
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Instance Console Connections Filter - Instance
Id string - The OCID of the instance.
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Instance Console Connections Filter> - instance
Id String - The OCID of the instance.
- compartment
Id string - The OCID of the compartment.
- filters
Get
Instance Console Connections Filter[] - instance
Id 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.
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
- 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 string - The OCID of the compartment.
- Connection
String string - The SSH connection string for the console connection.
- Dictionary<string, object>
- 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, object>
- 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.
- Instance
Id string - The OCID of the instance.
- Public
Key string - Service
Host stringKey Fingerprint - The SSH public key's fingerprint for the console connection service host.
- State string
- The current state of the console connection.
- Vnc
Connection stringString - The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
- Compartment
Id string - The OCID of the compartment.
- Connection
String string - The SSH connection string for the console connection.
- map[string]interface{}
- 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]interface{}
- 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.
- Instance
Id string - The OCID of the instance.
- Public
Key string - Service
Host stringKey Fingerprint - The SSH public key's fingerprint for the console connection service host.
- State string
- The current state of the console connection.
- Vnc
Connection stringString - The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
- compartment
Id String - The OCID of the compartment.
- connection
String String - The SSH connection string for the console connection.
- Map<String,Object>
- 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,Object>
- 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.
- instance
Id String - The OCID of the instance.
- public
Key String - service
Host StringKey Fingerprint - The SSH public key's fingerprint for the console connection service host.
- state String
- The current state of the console connection.
- vnc
Connection StringString - The SSH connection string for the SSH tunnel used to connect to the console connection over VNC.
- compartment
Id string - The OCID of the compartment.
- connection
String string - The SSH connection string for the console connection.
- {[key: string]: any}
- 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]: any}
- 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.
- instance
Id string - The OCID of the instance.
- public
Key string - service
Host stringKey Fingerprint - The SSH public key's fingerprint for the console connection service host.
- state string
- The current state of the console connection.
- vnc
Connection 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, Any]
- 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, Any]
- 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.
- compartment
Id String - The OCID of the compartment.
- connection
String String - The SSH connection string for the console connection.
- Map<Any>
- 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<Any>
- 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.
- instance
Id String - The OCID of the instance.
- public
Key String - service
Host StringKey Fingerprint - The SSH public key's fingerprint for the console connection service host.
- state String
- The current state of the console connection.
- vnc
Connection 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi