1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbNodeConsoleHistoryContent
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Database.getDbNodeConsoleHistoryContent

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

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

    Retrieves the specified database node console history contents upto a megabyte.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDbNodeConsoleHistoryContent = oci.Database.getDbNodeConsoleHistoryContent({
        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_content = oci.Database.get_db_node_console_history_content(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.GetDbNodeConsoleHistoryContent(ctx, &database.GetDbNodeConsoleHistoryContentArgs{
    			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 testDbNodeConsoleHistoryContent = Oci.Database.GetDbNodeConsoleHistoryContent.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.GetDbNodeConsoleHistoryContentArgs;
    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 testDbNodeConsoleHistoryContent = DatabaseFunctions.getDbNodeConsoleHistoryContent(GetDbNodeConsoleHistoryContentArgs.builder()
                .consoleHistoryId(oci_core_console_history.test_console_history().id())
                .dbNodeId(oci_database_db_node.test_db_node().id())
                .build());
    
        }
    }
    
    variables:
      testDbNodeConsoleHistoryContent:
        fn::invoke:
          Function: oci:Database:getDbNodeConsoleHistoryContent
          Arguments:
            consoleHistoryId: ${oci_core_console_history.test_console_history.id}
            dbNodeId: ${oci_database_db_node.test_db_node.id}
    

    Using getDbNodeConsoleHistoryContent

    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 getDbNodeConsoleHistoryContent(args: GetDbNodeConsoleHistoryContentArgs, opts?: InvokeOptions): Promise<GetDbNodeConsoleHistoryContentResult>
    function getDbNodeConsoleHistoryContentOutput(args: GetDbNodeConsoleHistoryContentOutputArgs, opts?: InvokeOptions): Output<GetDbNodeConsoleHistoryContentResult>
    def get_db_node_console_history_content(console_history_id: Optional[str] = None,
                                            db_node_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetDbNodeConsoleHistoryContentResult
    def get_db_node_console_history_content_output(console_history_id: Optional[pulumi.Input[str]] = None,
                                            db_node_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetDbNodeConsoleHistoryContentResult]
    func GetDbNodeConsoleHistoryContent(ctx *Context, args *GetDbNodeConsoleHistoryContentArgs, opts ...InvokeOption) (*GetDbNodeConsoleHistoryContentResult, error)
    func GetDbNodeConsoleHistoryContentOutput(ctx *Context, args *GetDbNodeConsoleHistoryContentOutputArgs, opts ...InvokeOption) GetDbNodeConsoleHistoryContentResultOutput

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

    public static class GetDbNodeConsoleHistoryContent 
    {
        public static Task<GetDbNodeConsoleHistoryContentResult> InvokeAsync(GetDbNodeConsoleHistoryContentArgs args, InvokeOptions? opts = null)
        public static Output<GetDbNodeConsoleHistoryContentResult> Invoke(GetDbNodeConsoleHistoryContentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbNodeConsoleHistoryContentResult> getDbNodeConsoleHistoryContent(GetDbNodeConsoleHistoryContentArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getDbNodeConsoleHistoryContent:getDbNodeConsoleHistoryContent
      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.

    getDbNodeConsoleHistoryContent Result

    The following output properties are available:

    ConsoleHistoryId string
    DbNodeId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ConsoleHistoryId string
    DbNodeId string
    Id string
    The provider-assigned unique ID for this managed resource.
    consoleHistoryId String
    dbNodeId String
    id String
    The provider-assigned unique ID for this managed resource.
    consoleHistoryId string
    dbNodeId string
    id string
    The provider-assigned unique ID for this managed resource.
    console_history_id str
    db_node_id str
    id str
    The provider-assigned unique ID for this managed resource.
    consoleHistoryId String
    dbNodeId String
    id String
    The provider-assigned unique ID for this managed resource.

    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.32.0 published on Thursday, Apr 18, 2024 by Pulumi