Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi
oci.Core.getConsoleHistoryData
Explore with Pulumi AI
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/v2/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:
- Console
History stringId - 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.
- Console
History stringId - 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.
- console
History StringId - 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.
- console
History stringId - 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_ strid - 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.
- console
History StringId - 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:
- Console
History stringId - Data string
- The console history data.
- Id string
- The provider-assigned unique ID for this managed resource.
- Length int
- Offset int
- Console
History stringId - Data string
- The console history data.
- Id string
- The provider-assigned unique ID for this managed resource.
- Length int
- Offset int
- console
History StringId - data String
- The console history data.
- id String
- The provider-assigned unique ID for this managed resource.
- length Integer
- offset Integer
- console
History stringId - data string
- The console history data.
- id string
- The provider-assigned unique ID for this managed resource.
- length number
- offset number
- console_
history_ strid - data str
- The console history data.
- id str
- The provider-assigned unique ID for this managed resource.
- length int
- offset int
- console
History StringId - 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.