Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getDbNodeConsoleConnection

This data source provides details about a specific Db Node Console Connection resource in Oracle Cloud Infrastructure Database service.

Gets the specified database node console connection’s information.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDbNodeConsoleConnection = Output.Create(Oci.Database.GetDbNodeConsoleConnection.InvokeAsync(new Oci.Database.GetDbNodeConsoleConnectionArgs
        {
            DbNodeId = oci_database_db_node.Test_db_node.Id,
            Id = @var.Db_node_console_connection_id,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Database.GetDbNodeConsoleConnection(ctx, &database.GetDbNodeConsoleConnectionArgs{
			DbNodeId: oci_database_db_node.Test_db_node.Id,
			Id:       _var.Db_node_console_connection_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_db_node_console_connection = oci.Database.get_db_node_console_connection(db_node_id=oci_database_db_node["test_db_node"]["id"],
    id=var["db_node_console_connection_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDbNodeConsoleConnection = oci.Database.getDbNodeConsoleConnection({
    dbNodeId: oci_database_db_node.test_db_node.id,
    id: _var.db_node_console_connection_id,
});

Coming soon!

Using getDbNodeConsoleConnection

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 getDbNodeConsoleConnection(args: GetDbNodeConsoleConnectionArgs, opts?: InvokeOptions): Promise<GetDbNodeConsoleConnectionResult>
function getDbNodeConsoleConnectionOutput(args: GetDbNodeConsoleConnectionOutputArgs, opts?: InvokeOptions): Output<GetDbNodeConsoleConnectionResult>
def get_db_node_console_connection(db_node_id: Optional[str] = None,
                                   id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetDbNodeConsoleConnectionResult
def get_db_node_console_connection_output(db_node_id: Optional[pulumi.Input[str]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeConsoleConnectionResult]
func GetDbNodeConsoleConnection(ctx *Context, args *GetDbNodeConsoleConnectionArgs, opts ...InvokeOption) (*GetDbNodeConsoleConnectionResult, error)
func GetDbNodeConsoleConnectionOutput(ctx *Context, args *GetDbNodeConsoleConnectionOutputArgs, opts ...InvokeOption) GetDbNodeConsoleConnectionResultOutput

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

public static class GetDbNodeConsoleConnection 
{
    public static Task<GetDbNodeConsoleConnectionResult> InvokeAsync(GetDbNodeConsoleConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetDbNodeConsoleConnectionResult> Invoke(GetDbNodeConsoleConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbNodeConsoleConnectionResult> getDbNodeConsoleConnection(GetDbNodeConsoleConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Database/getDbNodeConsoleConnection:getDbNodeConsoleConnection
  Arguments:
    # Arguments dictionary

The following arguments are supported:

DbNodeId string

The database node OCID.

Id string

The OCID of the console connection.

DbNodeId string

The database node OCID.

Id string

The OCID of the console connection.

dbNodeId String

The database node OCID.

id String

The OCID of the console connection.

dbNodeId string

The database node OCID.

id string

The OCID of the console connection.

db_node_id str

The database node OCID.

id str

The OCID of the console connection.

dbNodeId String

The database node OCID.

id String

The OCID of the console connection.

getDbNodeConsoleConnection Result

The following output properties are available:

CompartmentId string

The OCID of the compartment to contain the console connection.

ConnectionString string

The SSH connection string for the console connection.

DbNodeId string

The OCID of the database node.

Fingerprint string

The SSH public key fingerprint for the console connection.

Id string

The OCID of the console connection.

PublicKey string
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.

DbNodeId string

The OCID of the database node.

Fingerprint string

The SSH public key fingerprint for the console connection.

Id string

The OCID of the console connection.

PublicKey string
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.

dbNodeId String

The OCID of the database node.

fingerprint String

The SSH public key fingerprint for the console connection.

id String

The OCID of the console connection.

publicKey String
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.

dbNodeId string

The OCID of the database node.

fingerprint string

The SSH public key fingerprint for the console connection.

id string

The OCID of the console connection.

publicKey string
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_id str

The OCID of the database node.

fingerprint str

The SSH public key fingerprint for the console connection.

id str

The OCID of the console connection.

public_key str
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.

dbNodeId String

The OCID of the database node.

fingerprint String

The SSH public key fingerprint for the console connection.

id String

The OCID of the console connection.

publicKey String
state String

The current state of the console connection.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.