oci.Identity.getIamWorkRequest
Explore with Pulumi AI
This data source provides details about a specific Iam Work Request resource in Oracle Cloud Infrastructure Identity service.
Gets details on 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 testIamWorkRequest = oci.Identity.getIamWorkRequest({
    iamWorkRequestId: testIamWorkRequestOciIdentityIamWorkRequest.id,
});
import pulumi
import pulumi_oci as oci
test_iam_work_request = oci.Identity.get_iam_work_request(iam_work_request_id=test_iam_work_request_oci_identity_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.GetIamWorkRequest(ctx, &identity.GetIamWorkRequestArgs{
			IamWorkRequestId: testIamWorkRequestOciIdentityIamWorkRequest.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 testIamWorkRequest = Oci.Identity.GetIamWorkRequest.Invoke(new()
    {
        IamWorkRequestId = testIamWorkRequestOciIdentityIamWorkRequest.Id,
    });
});
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.GetIamWorkRequestArgs;
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 testIamWorkRequest = IdentityFunctions.getIamWorkRequest(GetIamWorkRequestArgs.builder()
            .iamWorkRequestId(testIamWorkRequestOciIdentityIamWorkRequest.id())
            .build());
    }
}
variables:
  testIamWorkRequest:
    fn::invoke:
      Function: oci:Identity:getIamWorkRequest
      Arguments:
        iamWorkRequestId: ${testIamWorkRequestOciIdentityIamWorkRequest.id}
Using getIamWorkRequest
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 getIamWorkRequest(args: GetIamWorkRequestArgs, opts?: InvokeOptions): Promise<GetIamWorkRequestResult>
function getIamWorkRequestOutput(args: GetIamWorkRequestOutputArgs, opts?: InvokeOptions): Output<GetIamWorkRequestResult>def get_iam_work_request(iam_work_request_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetIamWorkRequestResult
def get_iam_work_request_output(iam_work_request_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetIamWorkRequestResult]func GetIamWorkRequest(ctx *Context, args *GetIamWorkRequestArgs, opts ...InvokeOption) (*GetIamWorkRequestResult, error)
func GetIamWorkRequestOutput(ctx *Context, args *GetIamWorkRequestOutputArgs, opts ...InvokeOption) GetIamWorkRequestResultOutput> Note: This function is named GetIamWorkRequest in the Go SDK.
public static class GetIamWorkRequest 
{
    public static Task<GetIamWorkRequestResult> InvokeAsync(GetIamWorkRequestArgs args, InvokeOptions? opts = null)
    public static Output<GetIamWorkRequestResult> Invoke(GetIamWorkRequestInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIamWorkRequestResult> getIamWorkRequest(GetIamWorkRequestArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Identity/getIamWorkRequest:getIamWorkRequest
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Iam
Work stringRequest Id  - The OCID of the IAM work request.
 
- Iam
Work stringRequest Id  - The OCID of the IAM work request.
 
- iam
Work StringRequest Id  - The OCID of the IAM work request.
 
- iam
Work stringRequest Id  - The OCID of the IAM work request.
 
- iam_
work_ strrequest_ id  - The OCID of the IAM work request.
 
- iam
Work StringRequest Id  - The OCID of the IAM work request.
 
getIamWorkRequest Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing this IAM work request.
 - Iam
Work stringRequest Id  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Operation
Type string - The asynchronous operation tracked by this IAM work request.
 - Percent
Complete double - How much progress the operation has made.
 - Resources
List<Get
Iam Work Request Resource>  - The resources this work request affects.
 - Status string
 - Status of the work request
 - Time
Accepted string - Date and time the work was accepted, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - Time
Finished string - Date and time the work completed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - Time
Started string - Date and time the work started, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- Compartment
Id string - The OCID of the compartment containing this IAM work request.
 - Iam
Work stringRequest Id  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Operation
Type string - The asynchronous operation tracked by this IAM work request.
 - Percent
Complete float64 - How much progress the operation has made.
 - Resources
[]Get
Iam Work Request Resource  - The resources this work request affects.
 - Status string
 - Status of the work request
 - Time
Accepted string - Date and time the work was accepted, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - Time
Finished string - Date and time the work completed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - Time
Started string - Date and time the work started, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- compartment
Id String - The OCID of the compartment containing this IAM work request.
 - iam
Work StringRequest Id  - id String
 - The provider-assigned unique ID for this managed resource.
 - operation
Type String - The asynchronous operation tracked by this IAM work request.
 - percent
Complete Double - How much progress the operation has made.
 - resources
List<Get
Iam Work Request Resource>  - The resources this work request affects.
 - status String
 - Status of the work request
 - time
Accepted String - Date and time the work was accepted, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - time
Finished String - Date and time the work completed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - time
Started String - Date and time the work started, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- compartment
Id string - The OCID of the compartment containing this IAM work request.
 - iam
Work stringRequest Id  - id string
 - The provider-assigned unique ID for this managed resource.
 - operation
Type string - The asynchronous operation tracked by this IAM work request.
 - percent
Complete number - How much progress the operation has made.
 - resources
Get
Iam Work Request Resource[]  - The resources this work request affects.
 - status string
 - Status of the work request
 - time
Accepted string - Date and time the work was accepted, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - time
Finished string - Date and time the work completed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - time
Started string - Date and time the work started, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- compartment_
id str - The OCID of the compartment containing this IAM work request.
 - iam_
work_ strrequest_ id  - id str
 - The provider-assigned unique ID for this managed resource.
 - operation_
type str - The asynchronous operation tracked by this IAM work request.
 - percent_
complete float - How much progress the operation has made.
 - resources
Sequence[identity.
Get Iam Work Request Resource]  - The resources this work request affects.
 - status str
 - Status of the work request
 - time_
accepted str - Date and time the work was accepted, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - time_
finished str - Date and time the work completed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - time_
started str - Date and time the work started, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- compartment
Id String - The OCID of the compartment containing this IAM work request.
 - iam
Work StringRequest Id  - id String
 - The provider-assigned unique ID for this managed resource.
 - operation
Type String - The asynchronous operation tracked by this IAM work request.
 - percent
Complete Number - How much progress the operation has made.
 - resources List<Property Map>
 - The resources this work request affects.
 - status String
 - Status of the work request
 - time
Accepted String - Date and time the work was accepted, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - time
Finished String - Date and time the work completed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z - time
Started String - Date and time the work started, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
Supporting Types
GetIamWorkRequestResource    
- Action
Type 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.
 - Entity
Type string - The resource type the work request is affects.
 - Entity
Uri string - The URI path that the user can do a GET on to access the resource metadata.
 - Identifier string
 - An OCID of the resource that the work request affects.
 
- Action
Type 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.
 - Entity
Type string - The resource type the work request is affects.
 - Entity
Uri string - The URI path that the user can do a GET on to access the resource metadata.
 - Identifier string
 - An OCID of the resource that the work request affects.
 
- action
Type 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.
 - entity
Type String - The resource type the work request is affects.
 - entity
Uri String - The URI path that the user can do a GET on to access the resource metadata.
 - identifier String
 - An OCID of the resource that the work request affects.
 
- action
Type 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.
 - entity
Type string - The resource type the work request is affects.
 - entity
Uri string - The URI path that the user can do a GET on to access the resource metadata.
 - identifier string
 - An OCID of the resource that the work request affects.
 
- action_
type 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 str - The resource type the work request is affects.
 - entity_
uri str - The URI path that the user can do a GET on to access the resource metadata.
 - identifier str
 - An OCID of the resource that the work request affects.
 
- action
Type 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.
 - entity
Type String - The resource type the work request is affects.
 - entity
Uri String - The URI path that the user can do a GET on to access the resource metadata.
 - identifier 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 
ociTerraform Provider.