1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. getWorkRequestLogEntries
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.ContainerEngine.getWorkRequestLogEntries

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides the list of Work Request Log Entries in Oracle Cloud Infrastructure Container Engine service.

Get the logs of a work request.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testWorkRequestLogEntries = oci.ContainerEngine.getWorkRequestLogEntries({
    compartmentId: compartmentId,
    workRequestId: testWorkRequest.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_work_request_log_entries = oci.ContainerEngine.get_work_request_log_entries(compartment_id=compartment_id,
    work_request_id=test_work_request["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/containerengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerengine.GetWorkRequestLogEntries(ctx, &containerengine.GetWorkRequestLogEntriesArgs{
			CompartmentId: compartmentId,
			WorkRequestId: testWorkRequest.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testWorkRequestLogEntries = Oci.ContainerEngine.GetWorkRequestLogEntries.Invoke(new()
    {
        CompartmentId = compartmentId,
        WorkRequestId = testWorkRequest.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ContainerEngine.ContainerEngineFunctions;
import com.pulumi.oci.ContainerEngine.inputs.GetWorkRequestLogEntriesArgs;
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 testWorkRequestLogEntries = ContainerEngineFunctions.getWorkRequestLogEntries(GetWorkRequestLogEntriesArgs.builder()
            .compartmentId(compartmentId)
            .workRequestId(testWorkRequest.id())
            .build());

    }
}
Copy
variables:
  testWorkRequestLogEntries:
    fn::invoke:
      function: oci:ContainerEngine:getWorkRequestLogEntries
      arguments:
        compartmentId: ${compartmentId}
        workRequestId: ${testWorkRequest.id}
Copy

Using getWorkRequestLogEntries

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 getWorkRequestLogEntries(args: GetWorkRequestLogEntriesArgs, opts?: InvokeOptions): Promise<GetWorkRequestLogEntriesResult>
function getWorkRequestLogEntriesOutput(args: GetWorkRequestLogEntriesOutputArgs, opts?: InvokeOptions): Output<GetWorkRequestLogEntriesResult>
Copy
def get_work_request_log_entries(compartment_id: Optional[str] = None,
                                 filters: Optional[Sequence[_containerengine.GetWorkRequestLogEntriesFilter]] = None,
                                 work_request_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetWorkRequestLogEntriesResult
def get_work_request_log_entries_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[_containerengine.GetWorkRequestLogEntriesFilterArgs]]]] = None,
                                 work_request_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetWorkRequestLogEntriesResult]
Copy
func GetWorkRequestLogEntries(ctx *Context, args *GetWorkRequestLogEntriesArgs, opts ...InvokeOption) (*GetWorkRequestLogEntriesResult, error)
func GetWorkRequestLogEntriesOutput(ctx *Context, args *GetWorkRequestLogEntriesOutputArgs, opts ...InvokeOption) GetWorkRequestLogEntriesResultOutput
Copy

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

public static class GetWorkRequestLogEntries 
{
    public static Task<GetWorkRequestLogEntriesResult> InvokeAsync(GetWorkRequestLogEntriesArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkRequestLogEntriesResult> Invoke(GetWorkRequestLogEntriesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWorkRequestLogEntriesResult> getWorkRequestLogEntries(GetWorkRequestLogEntriesArgs args, InvokeOptions options)
public static Output<GetWorkRequestLogEntriesResult> getWorkRequestLogEntries(GetWorkRequestLogEntriesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ContainerEngine/getWorkRequestLogEntries:getWorkRequestLogEntries
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
WorkRequestId This property is required. string
The OCID of the work request.
Filters Changes to this property will trigger replacement. List<GetWorkRequestLogEntriesFilter>
CompartmentId This property is required. string
The OCID of the compartment.
WorkRequestId This property is required. string
The OCID of the work request.
Filters Changes to this property will trigger replacement. []GetWorkRequestLogEntriesFilter
compartmentId This property is required. String
The OCID of the compartment.
workRequestId This property is required. String
The OCID of the work request.
filters Changes to this property will trigger replacement. List<GetWorkRequestLogEntriesFilter>
compartmentId This property is required. string
The OCID of the compartment.
workRequestId This property is required. string
The OCID of the work request.
filters Changes to this property will trigger replacement. GetWorkRequestLogEntriesFilter[]
compartment_id This property is required. str
The OCID of the compartment.
work_request_id This property is required. str
The OCID of the work request.
filters Changes to this property will trigger replacement. Sequence[containerengine.GetWorkRequestLogEntriesFilter]
compartmentId This property is required. String
The OCID of the compartment.
workRequestId This property is required. String
The OCID of the work request.
filters Changes to this property will trigger replacement. List<Property Map>

getWorkRequestLogEntries Result

The following output properties are available:

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
WorkRequestId string
WorkRequestLogEntries List<GetWorkRequestLogEntriesWorkRequestLogEntry>
The list of work_request_log_entries.
Filters List<GetWorkRequestLogEntriesFilter>
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
WorkRequestId string
WorkRequestLogEntries []GetWorkRequestLogEntriesWorkRequestLogEntry
The list of work_request_log_entries.
Filters []GetWorkRequestLogEntriesFilter
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
workRequestId String
workRequestLogEntries List<GetWorkRequestLogEntriesWorkRequestLogEntry>
The list of work_request_log_entries.
filters List<GetWorkRequestLogEntriesFilter>
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
workRequestId string
workRequestLogEntries GetWorkRequestLogEntriesWorkRequestLogEntry[]
The list of work_request_log_entries.
filters GetWorkRequestLogEntriesFilter[]
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
workRequestId String
workRequestLogEntries List<Property Map>
The list of work_request_log_entries.
filters List<Property Map>

Supporting Types

GetWorkRequestLogEntriesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetWorkRequestLogEntriesWorkRequestLogEntry

Message This property is required. string
The description of an action that occurred.
Timestamp This property is required. string
The date and time the log entry occurred.
Message This property is required. string
The description of an action that occurred.
Timestamp This property is required. string
The date and time the log entry occurred.
message This property is required. String
The description of an action that occurred.
timestamp This property is required. String
The date and time the log entry occurred.
message This property is required. string
The description of an action that occurred.
timestamp This property is required. string
The date and time the log entry occurred.
message This property is required. str
The description of an action that occurred.
timestamp This property is required. str
The date and time the log entry occurred.
message This property is required. String
The description of an action that occurred.
timestamp This property is required. String
The date and time the log entry occurred.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi