Oracle Cloud Infrastructure

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

getIamWorkRequestErrors

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

Gets error details for a specified IAM work request. For asynchronous operations in Identity and Access Management service, opc-work-request-id header values contains iam work request id that can be provided in this API to track the current status of the operation.

  • If workrequest exists, returns 202 ACCEPTED
  • If workrequest does not exist, returns 404 NOT FOUND

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testIamWorkRequestErrors = Output.Create(Oci.Identity.GetIamWorkRequestErrors.InvokeAsync(new Oci.Identity.GetIamWorkRequestErrorsArgs
        {
            IamWorkRequestId = oci_identity_iam_work_request.Test_iam_work_request.Id,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Identity.GetIamWorkRequestErrors(ctx, &identity.GetIamWorkRequestErrorsArgs{
			IamWorkRequestId: oci_identity_iam_work_request.Test_iam_work_request.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_iam_work_request_errors = oci.Identity.get_iam_work_request_errors(iam_work_request_id=oci_identity_iam_work_request["test_iam_work_request"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testIamWorkRequestErrors = oci.Identity.getIamWorkRequestErrors({
    iamWorkRequestId: oci_identity_iam_work_request.test_iam_work_request.id,
});

Coming soon!

Using getIamWorkRequestErrors

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 getIamWorkRequestErrors(args: GetIamWorkRequestErrorsArgs, opts?: InvokeOptions): Promise<GetIamWorkRequestErrorsResult>
function getIamWorkRequestErrorsOutput(args: GetIamWorkRequestErrorsOutputArgs, opts?: InvokeOptions): Output<GetIamWorkRequestErrorsResult>
def get_iam_work_request_errors(filters: Optional[Sequence[_identity.GetIamWorkRequestErrorsFilter]] = None,
                                iam_work_request_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetIamWorkRequestErrorsResult
def get_iam_work_request_errors_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_identity.GetIamWorkRequestErrorsFilterArgs]]]] = None,
                                iam_work_request_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetIamWorkRequestErrorsResult]
func GetIamWorkRequestErrors(ctx *Context, args *GetIamWorkRequestErrorsArgs, opts ...InvokeOption) (*GetIamWorkRequestErrorsResult, error)
func GetIamWorkRequestErrorsOutput(ctx *Context, args *GetIamWorkRequestErrorsOutputArgs, opts ...InvokeOption) GetIamWorkRequestErrorsResultOutput

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

public static class GetIamWorkRequestErrors 
{
    public static Task<GetIamWorkRequestErrorsResult> InvokeAsync(GetIamWorkRequestErrorsArgs args, InvokeOptions? opts = null)
    public static Output<GetIamWorkRequestErrorsResult> Invoke(GetIamWorkRequestErrorsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamWorkRequestErrorsResult> getIamWorkRequestErrors(GetIamWorkRequestErrorsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Identity/getIamWorkRequestErrors:getIamWorkRequestErrors
  Arguments:
    # Arguments dictionary

The following arguments are supported:

IamWorkRequestId string

The OCID of the IAM work request.

Filters List<GetIamWorkRequestErrorsFilter>
IamWorkRequestId string

The OCID of the IAM work request.

Filters []GetIamWorkRequestErrorsFilter
iamWorkRequestId String

The OCID of the IAM work request.

filters List<GetIamWorkRequestErrorsFilter>
iamWorkRequestId string

The OCID of the IAM work request.

filters GetIamWorkRequestErrorsFilter[]
iam_work_request_id str

The OCID of the IAM work request.

filters GetIamWorkRequestErrorsFilter]
iamWorkRequestId String

The OCID of the IAM work request.

filters List<Property Map>

getIamWorkRequestErrors Result

The following output properties are available:

IamWorkRequestErrors List<GetIamWorkRequestErrorsIamWorkRequestError>

The list of iam_work_request_errors.

IamWorkRequestId string
Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetIamWorkRequestErrorsFilter>
IamWorkRequestErrors []GetIamWorkRequestErrorsIamWorkRequestError

The list of iam_work_request_errors.

IamWorkRequestId string
Id string

The provider-assigned unique ID for this managed resource.

Filters []GetIamWorkRequestErrorsFilter
iamWorkRequestErrors List<GetIamWorkRequestErrorsIamWorkRequestError>

The list of iam_work_request_errors.

iamWorkRequestId String
id String

The provider-assigned unique ID for this managed resource.

filters List<GetIamWorkRequestErrorsFilter>
iamWorkRequestErrors GetIamWorkRequestErrorsIamWorkRequestError[]

The list of iam_work_request_errors.

iamWorkRequestId string
id string

The provider-assigned unique ID for this managed resource.

filters GetIamWorkRequestErrorsFilter[]
iam_work_request_errors GetIamWorkRequestErrorsIamWorkRequestError]

The list of iam_work_request_errors.

iam_work_request_id str
id str

The provider-assigned unique ID for this managed resource.

filters GetIamWorkRequestErrorsFilter]
iamWorkRequestErrors List<Property Map>

The list of iam_work_request_errors.

iamWorkRequestId String
id String

The provider-assigned unique ID for this managed resource.

filters List<Property Map>

Supporting Types

GetIamWorkRequestErrorsFilter

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

GetIamWorkRequestErrorsIamWorkRequestError

Code string

A machine-usable code for the error that occured.

Message string

A human-readable error string.

Timestamp string

The date and time the error occurred.

Code string

A machine-usable code for the error that occured.

Message string

A human-readable error string.

Timestamp string

The date and time the error occurred.

code String

A machine-usable code for the error that occured.

message String

A human-readable error string.

timestamp String

The date and time the error occurred.

code string

A machine-usable code for the error that occured.

message string

A human-readable error string.

timestamp string

The date and time the error occurred.

code str

A machine-usable code for the error that occured.

message str

A human-readable error string.

timestamp str

The date and time the error occurred.

code String

A machine-usable code for the error that occured.

message String

A human-readable error string.

timestamp String

The date and time the error occurred.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.