1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. getIamWorkRequests
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.Identity.getIamWorkRequests

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 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,
    });
    
    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)
    
    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.GetIamWorkRequests(ctx, &identity.GetIamWorkRequestsArgs{
    			CompartmentId:      compartmentId,
    			ResourceIdentifier: pulumi.StringRef(iamWorkRequestResourceIdentifier),
    		}, 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 testIamWorkRequests = Oci.Identity.GetIamWorkRequests.Invoke(new()
        {
            CompartmentId = compartmentId,
            ResourceIdentifier = iamWorkRequestResourceIdentifier,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testIamWorkRequests:
        fn::invoke:
          Function: oci:Identity:getIamWorkRequests
          Arguments:
            compartmentId: ${compartmentId}
            resourceIdentifier: ${iamWorkRequestResourceIdentifier}
    

    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>
    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]
    func GetIamWorkRequests(ctx *Context, args *GetIamWorkRequestsArgs, opts ...InvokeOption) (*GetIamWorkRequestsResult, error)
    func GetIamWorkRequestsOutput(ctx *Context, args *GetIamWorkRequestsOutputArgs, opts ...InvokeOption) GetIamWorkRequestsResultOutput

    > 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)
    }
    public static CompletableFuture<GetIamWorkRequestsResult> getIamWorkRequests(GetIamWorkRequestsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Identity/getIamWorkRequests:getIamWorkRequests
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment (remember that the tenancy is simply the root compartment).
    Filters List<GetIamWorkRequestsFilter>
    ResourceIdentifier string
    The identifier of the resource the work request affects.
    CompartmentId string
    The OCID of the compartment (remember that the tenancy is simply the root compartment).
    Filters []GetIamWorkRequestsFilter
    ResourceIdentifier string
    The identifier of the resource the work request affects.
    compartmentId String
    The OCID of the compartment (remember that the tenancy is simply the root compartment).
    filters List<GetIamWorkRequestsFilter>
    resourceIdentifier String
    The identifier of the resource the work request affects.
    compartmentId string
    The OCID of the compartment (remember that the tenancy is simply the root compartment).
    filters GetIamWorkRequestsFilter[]
    resourceIdentifier string
    The identifier of the resource the work request affects.
    compartment_id str
    The OCID of the compartment (remember that the tenancy is simply the root compartment).
    filters Sequence[identity.GetIamWorkRequestsFilter]
    resource_identifier str
    The identifier of the resource the work request affects.
    compartmentId String
    The OCID of the compartment (remember that the tenancy is simply the root compartment).
    filters 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 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

    GetIamWorkRequestsIamWorkRequest

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

    GetIamWorkRequestsIamWorkRequestResource

    ActionType 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 string
    The resource type the work request is affects.
    EntityUri 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.
    ActionType 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 string
    The resource type the work request is affects.
    EntityUri 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.
    actionType 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 String
    The resource type the work request is affects.
    entityUri 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.
    actionType 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 string
    The resource type the work request is affects.
    entityUri 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.
    actionType 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 String
    The resource type the work request is affects.
    entityUri 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi