Skip to main content

iam_work_requests

Creates, updates, deletes, gets or lists an iam_work_requests resource.

Overview​

Nameiam_work_requests
TypeResource
Idoci.identity.iam_work_requests

Fields​

The following fields are returned by SELECT queries:

IAM Work request

NameDatatypeDescription
idstringThe OCID of the work request.
compartmentIdstringThe OCID of the compartment containing this IAM work request.
operationTypestringThe asynchronous operation tracked by this IAM work request. (CREATE_DOMAIN, REPLICATE_DOMAIN_TO_REGION, UPDATE_DOMAIN, ACTIVATE_DOMAIN, DEACTIVATE_DOMAIN, DELETE_DOMAIN, CHANGE_COMPARTMENT_FOR_DOMAIN, CHANGE_LICENSE_TYPE_FOR_DOMAIN)
percentCompletenumber (float)How much progress the operation has made.
resourcesarrayThe resources this work request affects.
statusstringThe status of the work request. (ACCEPTED, IN_PROGRESS, FAILED, SUCCEEDED, CANCELING, CANCELED)
timeAcceptedstring (date-time)Date and time the work was accepted, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeFinishedstring (date-time)Date and time the work completed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeStartedstring (date-time)Date and time the work started, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectiamWorkRequestId, regionopc-request-idGets the details of a specified IAM work request. The workRequestID is returned in the opc-work-request-id header for any asynchronous operation in the Identity and Access Management service.<br />
listselectcompartmentId, regionpage, limit, resourceIdentifier, opc-request-idLists the IAM work requests in compartment. The workRequestID is returned in the opc-work-request-id header for any asynchronous operation in the Identity and Access Management service.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
compartmentIdstringThe OCID of the compartment (remember that the tenancy is simply the root compartment).
iamWorkRequestIdstringThe OCID of the IAM work request.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitintegerThe maximum number of items to return in a paginated "List" call.
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
pagestringThe value of the opc-next-page response header from the previous "List" call.
resourceIdentifierstringThe identifier of the resource the work request affects.

SELECT examples​

Gets the details of a specified IAM work request. The workRequestID is returned in the opc-work-request-id header for any asynchronous operation in the Identity and Access Management service.<br />

SELECT
id,
compartmentId,
operationType,
percentComplete,
resources,
status,
timeAccepted,
timeFinished,
timeStarted
FROM oci.identity.iam_work_requests
WHERE iamWorkRequestId = '{{ iamWorkRequestId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;