1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbNodeConsoleHistory
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Database.getDbNodeConsoleHistory

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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

Gets information about the specified database node console history.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDbNodeConsoleHistory = oci.Database.getDbNodeConsoleHistory({
    consoleHistoryId: testConsoleHistory.id,
    dbNodeId: testDbNode.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_db_node_console_history = oci.Database.get_db_node_console_history(console_history_id=test_console_history["id"],
    db_node_id=test_db_node["id"])
Copy
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.GetDbNodeConsoleHistory(ctx, &database.GetDbNodeConsoleHistoryArgs{
			ConsoleHistoryId: testConsoleHistory.Id,
			DbNodeId:         testDbNode.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDbNodeConsoleHistory = Oci.Database.GetDbNodeConsoleHistory.Invoke(new()
    {
        ConsoleHistoryId = testConsoleHistory.Id,
        DbNodeId = testDbNode.Id,
    });

});
Copy
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.GetDbNodeConsoleHistoryArgs;
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 testDbNodeConsoleHistory = DatabaseFunctions.getDbNodeConsoleHistory(GetDbNodeConsoleHistoryArgs.builder()
            .consoleHistoryId(testConsoleHistory.id())
            .dbNodeId(testDbNode.id())
            .build());

    }
}
Copy
variables:
  testDbNodeConsoleHistory:
    fn::invoke:
      function: oci:Database:getDbNodeConsoleHistory
      arguments:
        consoleHistoryId: ${testConsoleHistory.id}
        dbNodeId: ${testDbNode.id}
Copy

Using getDbNodeConsoleHistory

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 getDbNodeConsoleHistory(args: GetDbNodeConsoleHistoryArgs, opts?: InvokeOptions): Promise<GetDbNodeConsoleHistoryResult>
function getDbNodeConsoleHistoryOutput(args: GetDbNodeConsoleHistoryOutputArgs, opts?: InvokeOptions): Output<GetDbNodeConsoleHistoryResult>
Copy
def get_db_node_console_history(console_history_id: Optional[str] = None,
                                db_node_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetDbNodeConsoleHistoryResult
def get_db_node_console_history_output(console_history_id: Optional[pulumi.Input[str]] = None,
                                db_node_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeConsoleHistoryResult]
Copy
func GetDbNodeConsoleHistory(ctx *Context, args *GetDbNodeConsoleHistoryArgs, opts ...InvokeOption) (*GetDbNodeConsoleHistoryResult, error)
func GetDbNodeConsoleHistoryOutput(ctx *Context, args *GetDbNodeConsoleHistoryOutputArgs, opts ...InvokeOption) GetDbNodeConsoleHistoryResultOutput
Copy

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

public static class GetDbNodeConsoleHistory 
{
    public static Task<GetDbNodeConsoleHistoryResult> InvokeAsync(GetDbNodeConsoleHistoryArgs args, InvokeOptions? opts = null)
    public static Output<GetDbNodeConsoleHistoryResult> Invoke(GetDbNodeConsoleHistoryInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDbNodeConsoleHistoryResult> getDbNodeConsoleHistory(GetDbNodeConsoleHistoryArgs args, InvokeOptions options)
public static Output<GetDbNodeConsoleHistoryResult> getDbNodeConsoleHistory(GetDbNodeConsoleHistoryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Database/getDbNodeConsoleHistory:getDbNodeConsoleHistory
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ConsoleHistoryId This property is required. string
The OCID of the console history.
DbNodeId This property is required. string
The database node OCID.
ConsoleHistoryId This property is required. string
The OCID of the console history.
DbNodeId This property is required. string
The database node OCID.
consoleHistoryId This property is required. String
The OCID of the console history.
dbNodeId This property is required. String
The database node OCID.
consoleHistoryId This property is required. string
The OCID of the console history.
dbNodeId This property is required. string
The database node OCID.
console_history_id This property is required. str
The OCID of the console history.
db_node_id This property is required. str
The database node OCID.
consoleHistoryId This property is required. String
The OCID of the console history.
dbNodeId This property is required. String
The database node OCID.

getDbNodeConsoleHistory Result

The following output properties are available:

CompartmentId string
The OCID of the compartment containing the console history.
ConsoleHistoryId string
DbNodeId string
The OCID of the database node.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName string
The user-friendly name for the console history. The name does not need to be unique.
FreeformTags 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 history.
LifecycleDetails string
Additional information about the current lifecycle state.
State string
The current state of the console history.
TimeCreated string
The date and time the console history was created.
CompartmentId string
The OCID of the compartment containing the console history.
ConsoleHistoryId string
DbNodeId string
The OCID of the database node.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
DisplayName string
The user-friendly name for the console history. The name does not need to be unique.
FreeformTags 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 history.
LifecycleDetails string
Additional information about the current lifecycle state.
State string
The current state of the console history.
TimeCreated string
The date and time the console history was created.
compartmentId String
The OCID of the compartment containing the console history.
consoleHistoryId String
dbNodeId String
The OCID of the database node.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName String
The user-friendly name for the console history. The name does not need to be unique.
freeformTags 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 history.
lifecycleDetails String
Additional information about the current lifecycle state.
state String
The current state of the console history.
timeCreated String
The date and time the console history was created.
compartmentId string
The OCID of the compartment containing the console history.
consoleHistoryId string
dbNodeId string
The OCID of the database node.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName string
The user-friendly name for the console history. The name does not need to be unique.
freeformTags {[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 history.
lifecycleDetails string
Additional information about the current lifecycle state.
state string
The current state of the console history.
timeCreated string
The date and time the console history was created.
compartment_id str
The OCID of the compartment containing the console history.
console_history_id str
db_node_id str
The OCID of the database node.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
display_name str
The user-friendly name for the console history. The name does not need to be unique.
freeform_tags 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 history.
lifecycle_details str
Additional information about the current lifecycle state.
state str
The current state of the console history.
time_created str
The date and time the console history was created.
compartmentId String
The OCID of the compartment containing the console history.
consoleHistoryId String
dbNodeId String
The OCID of the database node.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
displayName String
The user-friendly name for the console history. The name does not need to be unique.
freeformTags 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 history.
lifecycleDetails String
Additional information about the current lifecycle state.
state String
The current state of the console history.
timeCreated String
The date and time the console history was created.

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 v2.30.0 published on Monday, Apr 14, 2025 by Pulumi