1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbNodeConsoleHistory
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Database.getDbNodeConsoleHistory

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 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: oci_core_console_history.test_console_history.id,
        dbNodeId: oci_database_db_node.test_db_node.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_db_node_console_history = oci.Database.get_db_node_console_history(console_history_id=oci_core_console_history["test_console_history"]["id"],
        db_node_id=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.GetDbNodeConsoleHistory(ctx, &database.GetDbNodeConsoleHistoryArgs{
    			ConsoleHistoryId: oci_core_console_history.Test_console_history.Id,
    			DbNodeId:         oci_database_db_node.Test_db_node.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 = oci_core_console_history.Test_console_history.Id,
            DbNodeId = oci_database_db_node.Test_db_node.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(oci_core_console_history.test_console_history().id())
                .dbNodeId(oci_database_db_node.test_db_node().id())
                .build());
    
        }
    }
    
    variables:
      testDbNodeConsoleHistory:
        fn::invoke:
          Function: oci:Database:getDbNodeConsoleHistory
          Arguments:
            consoleHistoryId: ${oci_core_console_history.test_console_history.id}
            dbNodeId: ${oci_database_db_node.test_db_node.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 GetDbNodeConsoleHistory(ctx *Context, args *GetDbNodeConsoleHistoryArgs, opts ...InvokeOption) (*GetDbNodeConsoleHistoryResult, error)
    func GetDbNodeConsoleHistoryOutput(ctx *Context, args *GetDbNodeConsoleHistoryOutputArgs, opts ...InvokeOption) GetDbNodeConsoleHistoryResultOutput

    > 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)
    }
    public static CompletableFuture<GetDbNodeConsoleHistoryResult> getDbNodeConsoleHistory(GetDbNodeConsoleHistoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getDbNodeConsoleHistory:getDbNodeConsoleHistory
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConsoleHistoryId string
    The OCID of the console history.
    DbNodeId string
    The database node OCID.
    ConsoleHistoryId string
    The OCID of the console history.
    DbNodeId string
    The database node OCID.
    consoleHistoryId String
    The OCID of the console history.
    dbNodeId String
    The database node OCID.
    consoleHistoryId string
    The OCID of the console history.
    dbNodeId string
    The database node OCID.
    console_history_id str
    The OCID of the console history.
    db_node_id str
    The database node OCID.
    consoleHistoryId String
    The OCID of the console history.
    dbNodeId 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, object>
    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, 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 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]interface{}
    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]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 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,Object>
    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,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 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]: any}
    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]: 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 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, Any]
    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, 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 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<Any>
    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<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 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.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi