1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. getIamWorkRequestLogs
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Identity.getIamWorkRequestLogs

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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

Gets logs 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

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

const testIamWorkRequestLogs = oci.Identity.getIamWorkRequestLogs({
    iamWorkRequestId: testIamWorkRequest.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_iam_work_request_logs = oci.Identity.get_iam_work_request_logs(iam_work_request_id=test_iam_work_request["id"])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := identity.GetIamWorkRequestLogs(ctx, &identity.GetIamWorkRequestLogsArgs{
			IamWorkRequestId: testIamWorkRequest.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 testIamWorkRequestLogs = Oci.Identity.GetIamWorkRequestLogs.Invoke(new()
    {
        IamWorkRequestId = testIamWorkRequest.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.IdentityFunctions;
import com.pulumi.oci.Identity.inputs.GetIamWorkRequestLogsArgs;
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 testIamWorkRequestLogs = IdentityFunctions.getIamWorkRequestLogs(GetIamWorkRequestLogsArgs.builder()
            .iamWorkRequestId(testIamWorkRequest.id())
            .build());

    }
}
Copy
variables:
  testIamWorkRequestLogs:
    fn::invoke:
      function: oci:Identity:getIamWorkRequestLogs
      arguments:
        iamWorkRequestId: ${testIamWorkRequest.id}
Copy

Using getIamWorkRequestLogs

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 getIamWorkRequestLogs(args: GetIamWorkRequestLogsArgs, opts?: InvokeOptions): Promise<GetIamWorkRequestLogsResult>
function getIamWorkRequestLogsOutput(args: GetIamWorkRequestLogsOutputArgs, opts?: InvokeOptions): Output<GetIamWorkRequestLogsResult>
Copy
def get_iam_work_request_logs(filters: Optional[Sequence[_identity.GetIamWorkRequestLogsFilter]] = None,
                              iam_work_request_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetIamWorkRequestLogsResult
def get_iam_work_request_logs_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_identity.GetIamWorkRequestLogsFilterArgs]]]] = None,
                              iam_work_request_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetIamWorkRequestLogsResult]
Copy
func GetIamWorkRequestLogs(ctx *Context, args *GetIamWorkRequestLogsArgs, opts ...InvokeOption) (*GetIamWorkRequestLogsResult, error)
func GetIamWorkRequestLogsOutput(ctx *Context, args *GetIamWorkRequestLogsOutputArgs, opts ...InvokeOption) GetIamWorkRequestLogsResultOutput
Copy

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

public static class GetIamWorkRequestLogs 
{
    public static Task<GetIamWorkRequestLogsResult> InvokeAsync(GetIamWorkRequestLogsArgs args, InvokeOptions? opts = null)
    public static Output<GetIamWorkRequestLogsResult> Invoke(GetIamWorkRequestLogsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIamWorkRequestLogsResult> getIamWorkRequestLogs(GetIamWorkRequestLogsArgs args, InvokeOptions options)
public static Output<GetIamWorkRequestLogsResult> getIamWorkRequestLogs(GetIamWorkRequestLogsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Identity/getIamWorkRequestLogs:getIamWorkRequestLogs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

IamWorkRequestId This property is required. string
The OCID of the IAM work request.
Filters Changes to this property will trigger replacement. List<GetIamWorkRequestLogsFilter>
IamWorkRequestId This property is required. string
The OCID of the IAM work request.
Filters Changes to this property will trigger replacement. []GetIamWorkRequestLogsFilter
iamWorkRequestId This property is required. String
The OCID of the IAM work request.
filters Changes to this property will trigger replacement. List<GetIamWorkRequestLogsFilter>
iamWorkRequestId This property is required. string
The OCID of the IAM work request.
filters Changes to this property will trigger replacement. GetIamWorkRequestLogsFilter[]
iam_work_request_id This property is required. str
The OCID of the IAM work request.
filters Changes to this property will trigger replacement. Sequence[identity.GetIamWorkRequestLogsFilter]
iamWorkRequestId This property is required. String
The OCID of the IAM work request.
filters Changes to this property will trigger replacement. List<Property Map>

getIamWorkRequestLogs Result

The following output properties are available:

IamWorkRequestId string
IamWorkRequestLogs List<GetIamWorkRequestLogsIamWorkRequestLog>
The list of iam_work_request_logs.
Id string
The provider-assigned unique ID for this managed resource.
Filters List<GetIamWorkRequestLogsFilter>
IamWorkRequestId string
IamWorkRequestLogs []GetIamWorkRequestLogsIamWorkRequestLog
The list of iam_work_request_logs.
Id string
The provider-assigned unique ID for this managed resource.
Filters []GetIamWorkRequestLogsFilter
iamWorkRequestId String
iamWorkRequestLogs List<GetIamWorkRequestLogsIamWorkRequestLog>
The list of iam_work_request_logs.
id String
The provider-assigned unique ID for this managed resource.
filters List<GetIamWorkRequestLogsFilter>
iamWorkRequestId string
iamWorkRequestLogs GetIamWorkRequestLogsIamWorkRequestLog[]
The list of iam_work_request_logs.
id string
The provider-assigned unique ID for this managed resource.
filters GetIamWorkRequestLogsFilter[]
iam_work_request_id str
iam_work_request_logs Sequence[identity.GetIamWorkRequestLogsIamWorkRequestLog]
The list of iam_work_request_logs.
id str
The provider-assigned unique ID for this managed resource.
filters Sequence[identity.GetIamWorkRequestLogsFilter]
iamWorkRequestId String
iamWorkRequestLogs List<Property Map>
The list of iam_work_request_logs.
id String
The provider-assigned unique ID for this managed resource.
filters List<Property Map>

Supporting Types

GetIamWorkRequestLogsFilter

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

GetIamWorkRequestLogsIamWorkRequestLog

Message This property is required. string
A human-readable error string.
Timestamp This property is required. string
Date and time the log was written, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
Message This property is required. string
A human-readable error string.
Timestamp This property is required. string
Date and time the log was written, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
message This property is required. String
A human-readable error string.
timestamp This property is required. String
Date and time the log was written, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
message This property is required. string
A human-readable error string.
timestamp This property is required. string
Date and time the log was written, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
message This property is required. str
A human-readable error string.
timestamp This property is required. str
Date and time the log was written, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
message This property is required. String
A human-readable error string.
timestamp This property is required. String
Date and time the log was written, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

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.31.0 published on Thursday, Apr 17, 2025 by Pulumi