Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
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
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 = oci_database_db_node.Test_db_node.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.GetDbNodeConsoleConnections(ctx, &database.GetDbNodeConsoleConnectionsArgs{
DbNodeId: oci_database_db_node.Test_db_node.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.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(oci_database_db_node.test_db_node().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_db_node_console_connections = oci.Database.get_db_node_console_connections(db_node_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbNodeConsoleConnections = oci.Database.getDbNodeConsoleConnections({
dbNodeId: oci_database_db_node.test_db_node.id,
});
variables:
testDbNodeConsoleConnections:
fn::invoke:
Function: oci:Database:getDbNodeConsoleConnections
Arguments:
dbNodeId: ${oci_database_db_node.test_db_node.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[_database.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[_database.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDbNodeConsoleConnections:getDbNodeConsoleConnections
arguments:
# arguments dictionary
The following arguments are supported:
- Db
Node stringId The database node OCID.
- Filters
List<Get
Db Node Console Connections Filter>
- Db
Node stringId The database node OCID.
- Filters
[]Get
Db Node Console Connections Filter
- db
Node StringId The database node OCID.
- filters
List<Get
Db Node Console Connections Filter>
- db
Node stringId The database node OCID.
- filters
Get
Db Node Console Connections Filter[]
- db_
node_ strid The database node OCID.
- filters
Get
Db Node Console Connections Filter]
- db
Node StringId The database node OCID.
- filters List<Property Map>
getDbNodeConsoleConnections Result
The following output properties are available:
- Console
Connections List<GetDb Node Console Connections Console Connection> The list of console_connections.
- Db
Node stringId The OCID of the database node.
- Id string
The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Db Node Console Connections Filter>
- Console
Connections []GetDb Node Console Connections Console Connection The list of console_connections.
- Db
Node stringId The OCID of the database node.
- Id string
The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Db Node Console Connections Filter
- console
Connections List<GetDb Node Console Connections Console Connection> The list of console_connections.
- db
Node StringId The OCID of the database node.
- id String
The provider-assigned unique ID for this managed resource.
- filters
List<Get
Db Node Console Connections Filter>
- console
Connections GetDb Node Console Connections Console Connection[] The list of console_connections.
- db
Node stringId The OCID of the database node.
- id string
The provider-assigned unique ID for this managed resource.
- filters
Get
Db Node Console Connections Filter[]
- console_
connections 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
Get
Db Node Console Connections Filter]
- console
Connections List<Property Map> The list of console_connections.
- db
Node 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
- 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 database node OCID.
- Fingerprint string
The SSH public key fingerprint for the console connection.
- Id string
The OCID of the console connection.
- Public
Key string - 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 database node OCID.
- Fingerprint string
The SSH public key fingerprint for the console connection.
- Id string
The OCID of the console connection.
- Public
Key string - 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 database node OCID.
- fingerprint String
The SSH public key fingerprint for the console connection.
- id String
The OCID of the console connection.
- public
Key String - 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 database node OCID.
- fingerprint string
The SSH public key fingerprint for the console connection.
- id string
The OCID of the console connection.
- public
Key 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_ strid The database node OCID.
- 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.
- 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 database node OCID.
- fingerprint String
The SSH public key fingerprint for the console connection.
- id String
The OCID of the console connection.
- public
Key String - 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
oci
Terraform Provider.