oci.Database.getDbNodeConsoleConnection
Explore with Pulumi AI
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDbNodeConsoleConnection = Oci.Database.GetDbNodeConsoleConnection.Invoke(new()
{
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
})
}
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.GetDbNodeConsoleConnectionArgs;
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 testDbNodeConsoleConnection = DatabaseFunctions.getDbNodeConsoleConnection(GetDbNodeConsoleConnectionArgs.builder()
.dbNodeId(oci_database_db_node.test_db_node().id())
.id(var_.db_node_console_connection_id())
.build());
}
}
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,
});
variables:
testDbNodeConsoleConnection:
fn::invoke:
Function: oci:Database:getDbNodeConsoleConnection
Arguments:
dbNodeId: ${oci_database_db_node.test_db_node.id}
id: ${var.db_node_console_connection_id}
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:
- db_
node_ strid The database node OCID.
- id str
The OCID of the console connection.
getDbNodeConsoleConnection Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment to contain the console connection.
- Connection
String string The SSH connection string for the console connection.
- Db
Node stringId The OCID of the database node.
- Dictionary<string, object>
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, 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.
- Lifecycle
Details string Information about the current lifecycle state.
- 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.
- Compartment
Id string The OCID of the compartment to contain the console connection.
- Connection
String string The SSH connection string for the console connection.
- Db
Node stringId The OCID of the database node.
- map[string]interface{}
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]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.
- Lifecycle
Details string Information about the current lifecycle state.
- 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.
- compartment
Id String The OCID of the compartment to contain the console connection.
- connection
String String The SSH connection string for the console connection.
- db
Node StringId The OCID of the database node.
- Map<String,Object>
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,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.
- lifecycle
Details String Information about the current lifecycle state.
- 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.
- compartment
Id string The OCID of the compartment to contain the console connection.
- connection
String string The SSH connection string for the console connection.
- db
Node stringId The OCID of the database node.
- {[key: string]: any}
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]: 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.
- lifecycle
Details string Information about the current lifecycle state.
- 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.
- 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 OCID of the database node.
- Mapping[str, Any]
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, 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.
- 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.
- compartment
Id String The OCID of the compartment to contain the console connection.
- connection
String String The SSH connection string for the console connection.
- db
Node StringId The OCID of the database node.
- Map<Any>
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<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.
- lifecycle
Details String Information about the current lifecycle state.
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.