Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getDbNodeConsoleConnections
Explore with Pulumi AI
This data source provides the list of Db Node Console Connections in Oracle Cloud Infrastructure Database service.
Lists the console connections for the specified database node.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbNodeConsoleConnections = oci.Database.getDbNodeConsoleConnections({
    dbNodeId: testDbNode.id,
});
import pulumi
import pulumi_oci as oci
test_db_node_console_connections = oci.Database.get_db_node_console_connections(db_node_id=test_db_node["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetDbNodeConsoleConnections(ctx, &database.GetDbNodeConsoleConnectionsArgs{
			DbNodeId: testDbNode.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 testDbNodeConsoleConnections = Oci.Database.GetDbNodeConsoleConnections.Invoke(new()
    {
        DbNodeId = testDbNode.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetDbNodeConsoleConnectionsArgs;
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 testDbNodeConsoleConnections = DatabaseFunctions.getDbNodeConsoleConnections(GetDbNodeConsoleConnectionsArgs.builder()
            .dbNodeId(testDbNode.id())
            .build());
    }
}
variables:
  testDbNodeConsoleConnections:
    fn::invoke:
      function: oci:Database:getDbNodeConsoleConnections
      arguments:
        dbNodeId: ${testDbNode.id}
Using getDbNodeConsoleConnections
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 getDbNodeConsoleConnections(args: GetDbNodeConsoleConnectionsArgs, opts?: InvokeOptions): Promise<GetDbNodeConsoleConnectionsResult>
function getDbNodeConsoleConnectionsOutput(args: GetDbNodeConsoleConnectionsOutputArgs, opts?: InvokeOptions): Output<GetDbNodeConsoleConnectionsResult>def get_db_node_console_connections(db_node_id: Optional[str] = None,
                                    filters: Optional[Sequence[GetDbNodeConsoleConnectionsFilter]] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetDbNodeConsoleConnectionsResult
def get_db_node_console_connections_output(db_node_id: Optional[pulumi.Input[str]] = None,
                                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDbNodeConsoleConnectionsFilterArgs]]]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeConsoleConnectionsResult]func GetDbNodeConsoleConnections(ctx *Context, args *GetDbNodeConsoleConnectionsArgs, opts ...InvokeOption) (*GetDbNodeConsoleConnectionsResult, error)
func GetDbNodeConsoleConnectionsOutput(ctx *Context, args *GetDbNodeConsoleConnectionsOutputArgs, opts ...InvokeOption) GetDbNodeConsoleConnectionsResultOutput> Note: This function is named GetDbNodeConsoleConnections in the Go SDK.
public static class GetDbNodeConsoleConnections 
{
    public static Task<GetDbNodeConsoleConnectionsResult> InvokeAsync(GetDbNodeConsoleConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetDbNodeConsoleConnectionsResult> Invoke(GetDbNodeConsoleConnectionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbNodeConsoleConnectionsResult> getDbNodeConsoleConnections(GetDbNodeConsoleConnectionsArgs args, InvokeOptions options)
public static Output<GetDbNodeConsoleConnectionsResult> getDbNodeConsoleConnections(GetDbNodeConsoleConnectionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getDbNodeConsoleConnections:getDbNodeConsoleConnections
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DbNode stringId 
- The database node OCID.
- Filters
List<GetDb Node Console Connections Filter> 
- DbNode stringId 
- The database node OCID.
- Filters
[]GetDb Node Console Connections Filter 
- dbNode StringId 
- The database node OCID.
- filters
List<GetDb Node Console Connections Filter> 
- dbNode stringId 
- The database node OCID.
- filters
GetDb Node Console Connections Filter[] 
- db_node_ strid 
- The database node OCID.
- filters
Sequence[GetDb Node Console Connections Filter] 
- dbNode StringId 
- The database node OCID.
- filters List<Property Map>
getDbNodeConsoleConnections Result
The following output properties are available:
- ConsoleConnections List<GetDb Node Console Connections Console Connection> 
- The list of console_connections.
- DbNode stringId 
- The OCID of the database node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetDb Node Console Connections Filter> 
- ConsoleConnections []GetDb Node Console Connections Console Connection 
- The list of console_connections.
- DbNode stringId 
- The OCID of the database node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetDb Node Console Connections Filter 
- consoleConnections List<GetDb Node Console Connections Console Connection> 
- The list of console_connections.
- dbNode StringId 
- The OCID of the database node.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetDb Node Console Connections Filter> 
- consoleConnections GetDb Node Console Connections Console Connection[] 
- The list of console_connections.
- dbNode stringId 
- The OCID of the database node.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetDb Node Console Connections Filter[] 
- console_connections Sequence[GetDb Node Console Connections Console Connection] 
- The list of console_connections.
- db_node_ strid 
- The OCID of the database node.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetDb Node Console Connections Filter] 
- consoleConnections List<Property Map>
- The list of console_connections.
- dbNode StringId 
- The OCID of the database node.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetDbNodeConsoleConnectionsConsoleConnection      
- CompartmentId string
- The OCID of the compartment to contain the console connection.
- ConnectionString string
- The SSH connection string for the console connection.
- DbNode stringId 
- The database node OCID.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Fingerprint string
- The SSH public key fingerprint for 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.
- LifecycleDetails string
- Information about the current lifecycle state.
- 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.
- CompartmentId string
- The OCID of the compartment to contain the console connection.
- ConnectionString string
- The SSH connection string for the console connection.
- DbNode stringId 
- The database node OCID.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Fingerprint string
- The SSH public key fingerprint for 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.
- LifecycleDetails string
- Information about the current lifecycle state.
- 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.
- compartmentId String
- The OCID of the compartment to contain the console connection.
- connectionString String
- The SSH connection string for the console connection.
- dbNode StringId 
- The database node OCID.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- fingerprint String
- The SSH public key fingerprint for 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.
- lifecycleDetails String
- Information about the current lifecycle state.
- 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.
- compartmentId string
- The OCID of the compartment to contain the console connection.
- connectionString string
- The SSH connection string for the console connection.
- dbNode stringId 
- The database node OCID.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- fingerprint string
- The SSH public key fingerprint for 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.
- lifecycleDetails string
- Information about the current lifecycle state.
- 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.
- compartment_id str
- The OCID of the compartment to contain the console connection.
- connection_string str
- The SSH connection string for the console connection.
- db_node_ strid 
- The database node OCID.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- fingerprint str
- The SSH public key fingerprint for 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.
- lifecycle_details str
- Information about the current lifecycle state.
- 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.
- compartmentId String
- The OCID of the compartment to contain the console connection.
- connectionString String
- The SSH connection string for the console connection.
- dbNode StringId 
- The database node OCID.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- fingerprint String
- The SSH public key fingerprint for 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.
- lifecycleDetails String
- Information about the current lifecycle state.
- 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.
GetDbNodeConsoleConnectionsFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.