1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. getWorkRequestErrors
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.ContainerEngine.getWorkRequestErrors

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    Get the errors of a work request.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testWorkRequestErrors = oci.ContainerEngine.getWorkRequestErrors({
        compartmentId: compartmentId,
        workRequestId: testWorkRequest.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_work_request_errors = oci.ContainerEngine.get_work_request_errors(compartment_id=compartment_id,
        work_request_id=test_work_request["id"])
    
    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.GetWorkRequestErrors(ctx, &containerengine.GetWorkRequestErrorsArgs{
    			CompartmentId: compartmentId,
    			WorkRequestId: testWorkRequest.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 testWorkRequestErrors = Oci.ContainerEngine.GetWorkRequestErrors.Invoke(new()
        {
            CompartmentId = compartmentId,
            WorkRequestId = testWorkRequest.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.GetWorkRequestErrorsArgs;
    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 testWorkRequestErrors = ContainerEngineFunctions.getWorkRequestErrors(GetWorkRequestErrorsArgs.builder()
                .compartmentId(compartmentId)
                .workRequestId(testWorkRequest.id())
                .build());
    
        }
    }
    
    variables:
      testWorkRequestErrors:
        fn::invoke:
          Function: oci:ContainerEngine:getWorkRequestErrors
          Arguments:
            compartmentId: ${compartmentId}
            workRequestId: ${testWorkRequest.id}
    

    Using getWorkRequestErrors

    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 getWorkRequestErrors(args: GetWorkRequestErrorsArgs, opts?: InvokeOptions): Promise<GetWorkRequestErrorsResult>
    function getWorkRequestErrorsOutput(args: GetWorkRequestErrorsOutputArgs, opts?: InvokeOptions): Output<GetWorkRequestErrorsResult>
    def get_work_request_errors(compartment_id: Optional[str] = None,
                                filters: Optional[Sequence[_containerengine.GetWorkRequestErrorsFilter]] = None,
                                work_request_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetWorkRequestErrorsResult
    def get_work_request_errors_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[_containerengine.GetWorkRequestErrorsFilterArgs]]]] = None,
                                work_request_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetWorkRequestErrorsResult]
    func GetWorkRequestErrors(ctx *Context, args *GetWorkRequestErrorsArgs, opts ...InvokeOption) (*GetWorkRequestErrorsResult, error)
    func GetWorkRequestErrorsOutput(ctx *Context, args *GetWorkRequestErrorsOutputArgs, opts ...InvokeOption) GetWorkRequestErrorsResultOutput

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

    public static class GetWorkRequestErrors 
    {
        public static Task<GetWorkRequestErrorsResult> InvokeAsync(GetWorkRequestErrorsArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkRequestErrorsResult> Invoke(GetWorkRequestErrorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkRequestErrorsResult> getWorkRequestErrors(GetWorkRequestErrorsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ContainerEngine/getWorkRequestErrors:getWorkRequestErrors
      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<GetWorkRequestErrorsFilter>
    CompartmentId string
    The OCID of the compartment.
    WorkRequestId string
    The OCID of the work request.
    Filters []GetWorkRequestErrorsFilter
    compartmentId String
    The OCID of the compartment.
    workRequestId String
    The OCID of the work request.
    filters List<GetWorkRequestErrorsFilter>
    compartmentId string
    The OCID of the compartment.
    workRequestId string
    The OCID of the work request.
    filters GetWorkRequestErrorsFilter[]
    compartment_id str
    The OCID of the compartment.
    work_request_id str
    The OCID of the work request.
    filters Sequence[containerengine.GetWorkRequestErrorsFilter]
    compartmentId String
    The OCID of the compartment.
    workRequestId String
    The OCID of the work request.
    filters List<Property Map>

    getWorkRequestErrors Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkRequestErrors List<GetWorkRequestErrorsWorkRequestError>
    The list of work_request_errors.
    WorkRequestId string
    Filters List<GetWorkRequestErrorsFilter>
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkRequestErrors []GetWorkRequestErrorsWorkRequestError
    The list of work_request_errors.
    WorkRequestId string
    Filters []GetWorkRequestErrorsFilter
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    workRequestErrors List<GetWorkRequestErrorsWorkRequestError>
    The list of work_request_errors.
    workRequestId String
    filters List<GetWorkRequestErrorsFilter>
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    workRequestErrors GetWorkRequestErrorsWorkRequestError[]
    The list of work_request_errors.
    workRequestId string
    filters GetWorkRequestErrorsFilter[]
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    workRequestErrors List<Property Map>
    The list of work_request_errors.
    workRequestId String
    filters List<Property Map>

    Supporting Types

    GetWorkRequestErrorsFilter

    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

    GetWorkRequestErrorsWorkRequestError

    Code string
    A short error code that defines the error, meant for programmatic parsing. See API Errors.
    Message string
    A human-readable error string.
    Timestamp string
    The date and time the error occurred.
    Code string
    A short error code that defines the error, meant for programmatic parsing. See API Errors.
    Message string
    A human-readable error string.
    Timestamp string
    The date and time the error occurred.
    code String
    A short error code that defines the error, meant for programmatic parsing. See API Errors.
    message String
    A human-readable error string.
    timestamp String
    The date and time the error occurred.
    code string
    A short error code that defines the error, meant for programmatic parsing. See API Errors.
    message string
    A human-readable error string.
    timestamp string
    The date and time the error occurred.
    code str
    A short error code that defines the error, meant for programmatic parsing. See API Errors.
    message str
    A human-readable error string.
    timestamp str
    The date and time the error occurred.
    code String
    A short error code that defines the error, meant for programmatic parsing. See API Errors.
    message String
    A human-readable error string.
    timestamp String
    The date and time the error 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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi