1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. getWorkRequestLogEntries
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.ContainerEngine.getWorkRequestLogEntries

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 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: _var.compartment_id,
        workRequestId: oci_containerengine_work_request.test_work_request.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_work_request_log_entries = oci.ContainerEngine.get_work_request_log_entries(compartment_id=var["compartment_id"],
        work_request_id=oci_containerengine_work_request["test_work_request"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
    			WorkRequestId: oci_containerengine_work_request.Test_work_request.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 testWorkRequestLogEntries = Oci.ContainerEngine.GetWorkRequestLogEntries.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
            WorkRequestId = oci_containerengine_work_request.Test_work_request.Id,
        });
    
    });
    
    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(var_.compartment_id())
                .workRequestId(oci_containerengine_work_request.test_work_request().id())
                .build());
    
        }
    }
    
    variables:
      testWorkRequestLogEntries:
        fn::invoke:
          Function: oci:ContainerEngine:getWorkRequestLogEntries
          Arguments:
            compartmentId: ${var.compartment_id}
            workRequestId: ${oci_containerengine_work_request.test_work_request.id}
    

    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>
    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]
    func GetWorkRequestLogEntries(ctx *Context, args *GetWorkRequestLogEntriesArgs, opts ...InvokeOption) (*GetWorkRequestLogEntriesResult, error)
    func GetWorkRequestLogEntriesOutput(ctx *Context, args *GetWorkRequestLogEntriesOutputArgs, opts ...InvokeOption) GetWorkRequestLogEntriesResultOutput

    > 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)
    }
    public static CompletableFuture<GetWorkRequestLogEntriesResult> getWorkRequestLogEntries(GetWorkRequestLogEntriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ContainerEngine/getWorkRequestLogEntries:getWorkRequestLogEntries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment.
    WorkRequestId string
    The OCID of the work request.
    Filters List<GetWorkRequestLogEntriesFilter>
    CompartmentId string
    The OCID of the compartment.
    WorkRequestId string
    The OCID of the work request.
    Filters []GetWorkRequestLogEntriesFilter
    compartmentId String
    The OCID of the compartment.
    workRequestId String
    The OCID of the work request.
    filters List<GetWorkRequestLogEntriesFilter>
    compartmentId string
    The OCID of the compartment.
    workRequestId string
    The OCID of the work request.
    filters GetWorkRequestLogEntriesFilter[]
    compartment_id str
    The OCID of the compartment.
    work_request_id str
    The OCID of the work request.
    filters GetWorkRequestLogEntriesFilter]
    compartmentId String
    The OCID of the compartment.
    workRequestId String
    The OCID of the work request.
    filters 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[]
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    work_request_id str
    work_request_log_entries 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetWorkRequestLogEntriesWorkRequestLogEntry

    Message string
    The description of an action that occurred.
    Timestamp string
    The date and time the log entry occurred.
    Message string
    The description of an action that occurred.
    Timestamp string
    The date and time the log entry occurred.
    message String
    The description of an action that occurred.
    timestamp String
    The date and time the log entry occurred.
    message string
    The description of an action that occurred.
    timestamp string
    The date and time the log entry occurred.
    message str
    The description of an action that occurred.
    timestamp str
    The date and time the log entry occurred.
    message String
    The description of an action that occurred.
    timestamp 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.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi