Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getConsoleHistoryData

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testConsoleHistoryData = Output.Create(Oci.Core.GetConsoleHistoryData.InvokeAsync(new Oci.Core.GetConsoleHistoryDataArgs
        {
            ConsoleHistoryId = oci_core_console_history.Test_console_history.Id,
            Length = @var.Console_history_content_length,
            Offset = @var.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: oci_core_console_history.Test_console_history.Id,
			Length:           pulumi.IntRef(_var.Console_history_content_length),
			Offset:           pulumi.IntRef(_var.Console_history_content_offset),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_console_history_data = oci.Core.get_console_history_data(console_history_id=oci_core_console_history["test_console_history"]["id"],
    length=var["console_history_content_length"],
    offset=var["console_history_content_offset"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testConsoleHistoryData = oci.Core.getConsoleHistoryData({
    consoleHistoryId: oci_core_console_history.test_console_history.id,
    length: _var.console_history_content_length,
    offset: _var.console_history_content_offset,
});

Coming soon!

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.