Oracle Cloud Infrastructure
getIamWorkRequests
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testIamWorkRequests = Output.Create(Oci.Identity.GetIamWorkRequests.InvokeAsync(new Oci.Identity.GetIamWorkRequestsArgs
{
CompartmentId = @var.Compartment_id,
ResourceIdentifier = @var.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: _var.Compartment_id,
ResourceIdentifier: pulumi.StringRef(_var.Iam_work_request_resource_identifier),
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_iam_work_requests = oci.Identity.get_iam_work_requests(compartment_id=var["compartment_id"],
resource_identifier=var["iam_work_request_resource_identifier"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testIamWorkRequests = oci.Identity.getIamWorkRequests({
compartmentId: _var.compartment_id,
resourceIdentifier: _var.iam_work_request_resource_identifier,
});
Coming soon!
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:
- Compartment
Id string The OCID of the compartment (remember that the tenancy is simply the root compartment).
- Filters
List<Get
Iam Work Requests Filter> - Resource
Identifier string The identifier of the resource the work request affects.
- Compartment
Id string The OCID of the compartment (remember that the tenancy is simply the root compartment).
- Filters
[]Get
Iam Work Requests Filter - Resource
Identifier string The identifier of the resource the work request affects.
- compartment
Id String The OCID of the compartment (remember that the tenancy is simply the root compartment).
- filters
List<Get
Iam Work Requests Filter> - resource
Identifier String The identifier of the resource the work request affects.
- compartment
Id string The OCID of the compartment (remember that the tenancy is simply the root compartment).
- filters
Get
Iam Work Requests Filter[] - resource
Identifier 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
Get
Iam Work Requests Filter] - resource_
identifier str The identifier of the resource the work request affects.
- compartment
Id String The OCID of the compartment (remember that the tenancy is simply the root compartment).
- filters List<Property Map>
- resource
Identifier String The identifier of the resource the work request affects.
getIamWorkRequests Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment containing this IAM work request.
- Iam
Work List<GetRequests Iam Work Requests Iam Work Request> The list of iam_work_requests.
- Id string
The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Iam Work Requests Filter> - Resource
Identifier string
- Compartment
Id string The OCID of the compartment containing this IAM work request.
- Iam
Work []GetRequests Iam Work Requests Iam Work Request The list of iam_work_requests.
- Id string
The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Iam Work Requests Filter - Resource
Identifier string
- compartment
Id String The OCID of the compartment containing this IAM work request.
- iam
Work List<GetRequests Iam Work Requests Iam Work Request> The list of iam_work_requests.
- id String
The provider-assigned unique ID for this managed resource.
- filters
List<Get
Iam Work Requests Filter> - resource
Identifier String
- compartment
Id string The OCID of the compartment containing this IAM work request.
- iam
Work GetRequests Iam Work Requests Iam Work Request[] The list of iam_work_requests.
- id string
The provider-assigned unique ID for this managed resource.
- filters
Get
Iam Work Requests Filter[] - resource
Identifier string
- compartment_
id str The OCID of the compartment containing this IAM work request.
- iam_
work_ Getrequests Iam Work Requests Iam Work Request] The list of iam_work_requests.
- id str
The provider-assigned unique ID for this managed resource.
- filters
Get
Iam Work Requests Filter] - resource_
identifier str
- compartment
Id String The OCID of the compartment containing this IAM work request.
- iam
Work List<Property Map>Requests The list of iam_work_requests.
- id String
The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- resource
Identifier String
Supporting Types
GetIamWorkRequestsFilter
GetIamWorkRequestsIamWorkRequest
- Compartment
Id string The OCID of the compartment (remember that the tenancy is simply the root compartment).
- Id string
The OCID of the work request.
- 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 Requests 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 (remember that the tenancy is simply the root compartment).
- Id string
The OCID of the work request.
- 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 Requests 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 (remember that the tenancy is simply the root compartment).
- id String
The OCID of the work request.
- 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 Requests 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 (remember that the tenancy is simply the root compartment).
- id string
The OCID of the work request.
- 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 Requests 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 (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
Get
Iam Work Requests 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 (remember that the tenancy is simply the root compartment).
- id String
The OCID of the work request.
- 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
GetIamWorkRequestsIamWorkRequestResource
- 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
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.