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

oci.Identity.getIamWorkRequests

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 Requests in Oracle Cloud Infrastructure Identity service.

List the IAM work requests in compartment

  • If IAM workrequest details are retrieved sucessfully, return 202 ACCEPTED.
  • If any internal error occurs, return 500 INTERNAL SERVER ERROR.

Example Usage

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

const testIamWorkRequests = oci.Identity.getIamWorkRequests({
    compartmentId: compartmentId,
    resourceIdentifier: iamWorkRequestResourceIdentifier,
});
Copy
import pulumi
import pulumi_oci as oci

test_iam_work_requests = oci.Identity.get_iam_work_requests(compartment_id=compartment_id,
    resource_identifier=iam_work_request_resource_identifier)
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.GetIamWorkRequests(ctx, &identity.GetIamWorkRequestsArgs{
			CompartmentId:      compartmentId,
			ResourceIdentifier: pulumi.StringRef(iamWorkRequestResourceIdentifier),
		}, 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 testIamWorkRequests = Oci.Identity.GetIamWorkRequests.Invoke(new()
    {
        CompartmentId = compartmentId,
        ResourceIdentifier = iamWorkRequestResourceIdentifier,
    });

});
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.GetIamWorkRequestsArgs;
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 testIamWorkRequests = IdentityFunctions.getIamWorkRequests(GetIamWorkRequestsArgs.builder()
            .compartmentId(compartmentId)
            .resourceIdentifier(iamWorkRequestResourceIdentifier)
            .build());

    }
}
Copy
variables:
  testIamWorkRequests:
    fn::invoke:
      function: oci:Identity:getIamWorkRequests
      arguments:
        compartmentId: ${compartmentId}
        resourceIdentifier: ${iamWorkRequestResourceIdentifier}
Copy

Using getIamWorkRequests

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 getIamWorkRequests(args: GetIamWorkRequestsArgs, opts?: InvokeOptions): Promise<GetIamWorkRequestsResult>
function getIamWorkRequestsOutput(args: GetIamWorkRequestsOutputArgs, opts?: InvokeOptions): Output<GetIamWorkRequestsResult>
Copy
def get_iam_work_requests(compartment_id: Optional[str] = None,
                          filters: Optional[Sequence[_identity.GetIamWorkRequestsFilter]] = None,
                          resource_identifier: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetIamWorkRequestsResult
def get_iam_work_requests_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_identity.GetIamWorkRequestsFilterArgs]]]] = None,
                          resource_identifier: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetIamWorkRequestsResult]
Copy
func GetIamWorkRequests(ctx *Context, args *GetIamWorkRequestsArgs, opts ...InvokeOption) (*GetIamWorkRequestsResult, error)
func GetIamWorkRequestsOutput(ctx *Context, args *GetIamWorkRequestsOutputArgs, opts ...InvokeOption) GetIamWorkRequestsResultOutput
Copy

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

public static class GetIamWorkRequests 
{
    public static Task<GetIamWorkRequestsResult> InvokeAsync(GetIamWorkRequestsArgs args, InvokeOptions? opts = null)
    public static Output<GetIamWorkRequestsResult> Invoke(GetIamWorkRequestsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIamWorkRequestsResult> getIamWorkRequests(GetIamWorkRequestsArgs args, InvokeOptions options)
public static Output<GetIamWorkRequestsResult> getIamWorkRequests(GetIamWorkRequestsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Identity/getIamWorkRequests:getIamWorkRequests
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment (remember that the tenancy is simply the root compartment).
Filters Changes to this property will trigger replacement. List<GetIamWorkRequestsFilter>
ResourceIdentifier string
The identifier of the resource the work request affects.
CompartmentId This property is required. string
The OCID of the compartment (remember that the tenancy is simply the root compartment).
Filters Changes to this property will trigger replacement. []GetIamWorkRequestsFilter
ResourceIdentifier string
The identifier of the resource the work request affects.
compartmentId This property is required. String
The OCID of the compartment (remember that the tenancy is simply the root compartment).
filters Changes to this property will trigger replacement. List<GetIamWorkRequestsFilter>
resourceIdentifier String
The identifier of the resource the work request affects.
compartmentId This property is required. string
The OCID of the compartment (remember that the tenancy is simply the root compartment).
filters Changes to this property will trigger replacement. GetIamWorkRequestsFilter[]
resourceIdentifier string
The identifier of the resource the work request affects.
compartment_id This property is required. str
The OCID of the compartment (remember that the tenancy is simply the root compartment).
filters Changes to this property will trigger replacement. Sequence[identity.GetIamWorkRequestsFilter]
resource_identifier str
The identifier of the resource the work request affects.
compartmentId This property is required. String
The OCID of the compartment (remember that the tenancy is simply the root compartment).
filters Changes to this property will trigger replacement. List<Property Map>
resourceIdentifier String
The identifier of the resource the work request affects.

getIamWorkRequests Result

The following output properties are available:

CompartmentId string
The OCID of the compartment containing this IAM work request.
IamWorkRequests List<GetIamWorkRequestsIamWorkRequest>
The list of iam_work_requests.
Id string
The provider-assigned unique ID for this managed resource.
Filters List<GetIamWorkRequestsFilter>
ResourceIdentifier string
CompartmentId string
The OCID of the compartment containing this IAM work request.
IamWorkRequests []GetIamWorkRequestsIamWorkRequest
The list of iam_work_requests.
Id string
The provider-assigned unique ID for this managed resource.
Filters []GetIamWorkRequestsFilter
ResourceIdentifier string
compartmentId String
The OCID of the compartment containing this IAM work request.
iamWorkRequests List<GetIamWorkRequestsIamWorkRequest>
The list of iam_work_requests.
id String
The provider-assigned unique ID for this managed resource.
filters List<GetIamWorkRequestsFilter>
resourceIdentifier String
compartmentId string
The OCID of the compartment containing this IAM work request.
iamWorkRequests GetIamWorkRequestsIamWorkRequest[]
The list of iam_work_requests.
id string
The provider-assigned unique ID for this managed resource.
filters GetIamWorkRequestsFilter[]
resourceIdentifier string
compartment_id str
The OCID of the compartment containing this IAM work request.
iam_work_requests Sequence[identity.GetIamWorkRequestsIamWorkRequest]
The list of iam_work_requests.
id str
The provider-assigned unique ID for this managed resource.
filters Sequence[identity.GetIamWorkRequestsFilter]
resource_identifier str
compartmentId String
The OCID of the compartment containing this IAM work request.
iamWorkRequests List<Property Map>
The list of iam_work_requests.
id String
The provider-assigned unique ID for this managed resource.
filters List<Property Map>
resourceIdentifier String

Supporting Types

GetIamWorkRequestsFilter

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

GetIamWorkRequestsIamWorkRequest

CompartmentId This property is required. string
The OCID of the compartment (remember that the tenancy is simply the root compartment).
Id This property is required. string
The OCID of the work request.
OperationType This property is required. string
The asynchronous operation tracked by this IAM work request.
PercentComplete This property is required. double
How much progress the operation has made.
Resources This property is required. List<GetIamWorkRequestsIamWorkRequestResource>
The resources this work request affects.
Status This property is required. string
Status of the work request
TimeAccepted This property is required. string
Date and time the work was accepted, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
TimeFinished This property is required. string
Date and time the work completed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
TimeStarted This property is required. string
Date and time the work started, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
CompartmentId This property is required. string
The OCID of the compartment (remember that the tenancy is simply the root compartment).
Id This property is required. string
The OCID of the work request.
OperationType This property is required. string
The asynchronous operation tracked by this IAM work request.
PercentComplete This property is required. float64
How much progress the operation has made.
Resources This property is required. []GetIamWorkRequestsIamWorkRequestResource
The resources this work request affects.
Status This property is required. string
Status of the work request
TimeAccepted This property is required. string
Date and time the work was accepted, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
TimeFinished This property is required. string
Date and time the work completed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
TimeStarted This property is required. string
Date and time the work started, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId This property is required. String
The OCID of the compartment (remember that the tenancy is simply the root compartment).
id This property is required. String
The OCID of the work request.
operationType This property is required. String
The asynchronous operation tracked by this IAM work request.
percentComplete This property is required. Double
How much progress the operation has made.
resources This property is required. List<GetIamWorkRequestsIamWorkRequestResource>
The resources this work request affects.
status This property is required. String
Status of the work request
timeAccepted This property is required. String
Date and time the work was accepted, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeFinished This property is required. String
Date and time the work completed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeStarted This property is required. String
Date and time the work started, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId This property is required. string
The OCID of the compartment (remember that the tenancy is simply the root compartment).
id This property is required. string
The OCID of the work request.
operationType This property is required. string
The asynchronous operation tracked by this IAM work request.
percentComplete This property is required. number
How much progress the operation has made.
resources This property is required. GetIamWorkRequestsIamWorkRequestResource[]
The resources this work request affects.
status This property is required. string
Status of the work request
timeAccepted This property is required. string
Date and time the work was accepted, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeFinished This property is required. string
Date and time the work completed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeStarted This property is required. string
Date and time the work started, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartment_id This property is required. str
The OCID of the compartment (remember that the tenancy is simply the root compartment).
id This property is required. str
The OCID of the work request.
operation_type This property is required. str
The asynchronous operation tracked by this IAM work request.
percent_complete This property is required. float
How much progress the operation has made.
resources This property is required. Sequence[identity.GetIamWorkRequestsIamWorkRequestResource]
The resources this work request affects.
status This property is required. str
Status of the work request
time_accepted This property is required. str
Date and time the work was accepted, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
time_finished This property is required. str
Date and time the work completed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
time_started This property is required. str
Date and time the work started, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId This property is required. String
The OCID of the compartment (remember that the tenancy is simply the root compartment).
id This property is required. String
The OCID of the work request.
operationType This property is required. String
The asynchronous operation tracked by this IAM work request.
percentComplete This property is required. Number
How much progress the operation has made.
resources This property is required. List<Property Map>
The resources this work request affects.
status This property is required. String
Status of the work request
timeAccepted This property is required. String
Date and time the work was accepted, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeFinished This property is required. String
Date and time the work completed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeStarted This property is required. String
Date and time the work started, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

GetIamWorkRequestsIamWorkRequestResource

ActionType This property is required. string
The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively.
EntityType This property is required. string
The resource type the work request is affects.
EntityUri This property is required. string
The URI path that the user can do a GET on to access the resource metadata.
Identifier This property is required. string
An OCID of the resource that the work request affects.
ActionType This property is required. string
The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively.
EntityType This property is required. string
The resource type the work request is affects.
EntityUri This property is required. string
The URI path that the user can do a GET on to access the resource metadata.
Identifier This property is required. string
An OCID of the resource that the work request affects.
actionType This property is required. String
The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively.
entityType This property is required. String
The resource type the work request is affects.
entityUri This property is required. String
The URI path that the user can do a GET on to access the resource metadata.
identifier This property is required. String
An OCID of the resource that the work request affects.
actionType This property is required. string
The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively.
entityType This property is required. string
The resource type the work request is affects.
entityUri This property is required. string
The URI path that the user can do a GET on to access the resource metadata.
identifier This property is required. string
An OCID of the resource that the work request affects.
action_type This property is required. str
The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively.
entity_type This property is required. str
The resource type the work request is affects.
entity_uri This property is required. str
The URI path that the user can do a GET on to access the resource metadata.
identifier This property is required. str
An OCID of the resource that the work request affects.
actionType This property is required. String
The way in which this resource is affected by the work tracked in the work request. A resource being created, updated, or deleted will remain in the IN_PROGRESS state until work is complete for that resource at which point it will transition to CREATED, UPDATED, or DELETED, respectively.
entityType This property is required. String
The resource type the work request is affects.
entityUri This property is required. String
The URI path that the user can do a GET on to access the resource metadata.
identifier This property is required. String
An OCID of the resource that the work request affects.

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