Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getDbNodeConsoleHistory
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testDbNodeConsoleHistory:
    fn::invoke:
      function: oci:Database:getDbNodeConsoleHistory
      arguments:
        consoleHistoryId: ${testConsoleHistory.id}
        dbNodeId: ${testDbNode.id}
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>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]func LookupDbNodeConsoleHistory(ctx *Context, args *LookupDbNodeConsoleHistoryArgs, opts ...InvokeOption) (*LookupDbNodeConsoleHistoryResult, error)
func LookupDbNodeConsoleHistoryOutput(ctx *Context, args *LookupDbNodeConsoleHistoryOutputArgs, opts ...InvokeOption) LookupDbNodeConsoleHistoryResultOutput> Note: This function is named LookupDbNodeConsoleHistory 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)
}public static CompletableFuture<GetDbNodeConsoleHistoryResult> getDbNodeConsoleHistory(GetDbNodeConsoleHistoryArgs args, InvokeOptions options)
public static Output<GetDbNodeConsoleHistoryResult> getDbNodeConsoleHistory(GetDbNodeConsoleHistoryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getDbNodeConsoleHistory:getDbNodeConsoleHistory
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ConsoleHistory stringId 
- The OCID of the console history.
- DbNode stringId 
- The database node OCID.
- ConsoleHistory stringId 
- The OCID of the console history.
- DbNode stringId 
- The database node OCID.
- consoleHistory StringId 
- The OCID of the console history.
- dbNode StringId 
- The database node OCID.
- consoleHistory stringId 
- The OCID of the console history.
- dbNode stringId 
- The database node OCID.
- console_history_ strid 
- The OCID of the console history.
- db_node_ strid 
- The database node OCID.
- consoleHistory StringId 
- The OCID of the console history.
- dbNode StringId 
- The database node OCID.
getDbNodeConsoleHistory Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment containing the console history.
- ConsoleHistory stringId 
- DbNode stringId 
- The OCID of the database node.
- 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.
- 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.
- ConsoleHistory stringId 
- DbNode stringId 
- The OCID of the database node.
- 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.
- 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.
- consoleHistory StringId 
- dbNode StringId 
- The OCID of the database node.
- 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.
- 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.
- consoleHistory stringId 
- dbNode stringId 
- The OCID of the database node.
- {[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.
- {[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_ strid 
- db_node_ strid 
- The OCID of the database node.
- 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.
- 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.
- consoleHistory StringId 
- dbNode StringId 
- The OCID of the database node.
- 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.
- 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 ociTerraform Provider.