1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getConsoleHistoryData
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.Core.getConsoleHistoryData

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

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

    Gets the actual console history data (not the metadata). See CaptureConsoleHistory for details about using the console history operations.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testConsoleHistoryData = oci.Core.getConsoleHistoryData({
        consoleHistoryId: testConsoleHistory.id,
        length: consoleHistoryContentLength,
        offset: consoleHistoryContentOffset,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_console_history_data = oci.Core.get_console_history_data(console_history_id=test_console_history["id"],
        length=console_history_content_length,
        offset=console_history_content_offset)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetConsoleHistoryData(ctx, &core.GetConsoleHistoryDataArgs{
    			ConsoleHistoryId: testConsoleHistory.Id,
    			Length:           pulumi.IntRef(consoleHistoryContentLength),
    			Offset:           pulumi.IntRef(consoleHistoryContentOffset),
    		}, 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 testConsoleHistoryData = Oci.Core.GetConsoleHistoryData.Invoke(new()
        {
            ConsoleHistoryId = testConsoleHistory.Id,
            Length = consoleHistoryContentLength,
            Offset = consoleHistoryContentOffset,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetConsoleHistoryDataArgs;
    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 testConsoleHistoryData = CoreFunctions.getConsoleHistoryData(GetConsoleHistoryDataArgs.builder()
                .consoleHistoryId(testConsoleHistory.id())
                .length(consoleHistoryContentLength)
                .offset(consoleHistoryContentOffset)
                .build());
    
        }
    }
    
    variables:
      testConsoleHistoryData:
        fn::invoke:
          Function: oci:Core:getConsoleHistoryData
          Arguments:
            consoleHistoryId: ${testConsoleHistory.id}
            length: ${consoleHistoryContentLength}
            offset: ${consoleHistoryContentOffset}
    

    Using getConsoleHistoryData

    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 getConsoleHistoryData(args: GetConsoleHistoryDataArgs, opts?: InvokeOptions): Promise<GetConsoleHistoryDataResult>
    function getConsoleHistoryDataOutput(args: GetConsoleHistoryDataOutputArgs, opts?: InvokeOptions): Output<GetConsoleHistoryDataResult>
    def get_console_history_data(console_history_id: Optional[str] = None,
                                 length: Optional[int] = None,
                                 offset: Optional[int] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetConsoleHistoryDataResult
    def get_console_history_data_output(console_history_id: Optional[pulumi.Input[str]] = None,
                                 length: Optional[pulumi.Input[int]] = None,
                                 offset: Optional[pulumi.Input[int]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetConsoleHistoryDataResult]
    func GetConsoleHistoryData(ctx *Context, args *GetConsoleHistoryDataArgs, opts ...InvokeOption) (*GetConsoleHistoryDataResult, error)
    func GetConsoleHistoryDataOutput(ctx *Context, args *GetConsoleHistoryDataOutputArgs, opts ...InvokeOption) GetConsoleHistoryDataResultOutput

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

    public static class GetConsoleHistoryData 
    {
        public static Task<GetConsoleHistoryDataResult> InvokeAsync(GetConsoleHistoryDataArgs args, InvokeOptions? opts = null)
        public static Output<GetConsoleHistoryDataResult> Invoke(GetConsoleHistoryDataInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConsoleHistoryDataResult> getConsoleHistoryData(GetConsoleHistoryDataArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getConsoleHistoryData:getConsoleHistoryData
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ConsoleHistoryId string
    The OCID of the console history.
    Length int
    Length of the snapshot data to retrieve. Cannot be less than 10240.
    Offset int
    Offset of the snapshot data to retrieve.
    ConsoleHistoryId string
    The OCID of the console history.
    Length int
    Length of the snapshot data to retrieve. Cannot be less than 10240.
    Offset int
    Offset of the snapshot data to retrieve.
    consoleHistoryId String
    The OCID of the console history.
    length Integer
    Length of the snapshot data to retrieve. Cannot be less than 10240.
    offset Integer
    Offset of the snapshot data to retrieve.
    consoleHistoryId string
    The OCID of the console history.
    length number
    Length of the snapshot data to retrieve. Cannot be less than 10240.
    offset number
    Offset of the snapshot data to retrieve.
    console_history_id str
    The OCID of the console history.
    length int
    Length of the snapshot data to retrieve. Cannot be less than 10240.
    offset int
    Offset of the snapshot data to retrieve.
    consoleHistoryId String
    The OCID of the console history.
    length Number
    Length of the snapshot data to retrieve. Cannot be less than 10240.
    offset Number
    Offset of the snapshot data to retrieve.

    getConsoleHistoryData Result

    The following output properties are available:

    ConsoleHistoryId string
    Data string
    The console history data.
    Id string
    The provider-assigned unique ID for this managed resource.
    Length int
    Offset int
    ConsoleHistoryId string
    Data string
    The console history data.
    Id string
    The provider-assigned unique ID for this managed resource.
    Length int
    Offset int
    consoleHistoryId String
    data String
    The console history data.
    id String
    The provider-assigned unique ID for this managed resource.
    length Integer
    offset Integer
    consoleHistoryId string
    data string
    The console history data.
    id string
    The provider-assigned unique ID for this managed resource.
    length number
    offset number
    console_history_id str
    data str
    The console history data.
    id str
    The provider-assigned unique ID for this managed resource.
    length int
    offset int
    consoleHistoryId String
    data String
    The console history data.
    id String
    The provider-assigned unique ID for this managed resource.
    length Number
    offset Number

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