Skip to main content

tagging_work_requests

Creates, updates, deletes, gets or lists a tagging_work_requests resource.

Overview​

Nametagging_work_requests
TypeResource
Idoci.identity.tagging_work_requests

Fields​

The following fields are returned by SELECT queries:

The work request was retrieved.

NameDatatypeDescription
idstringThe OCID of the work request.
compartmentIdstringThe OCID of the compartment that contains the work request.
operationTypestringAn enum-like description of the type of work the work request is doing. (DELETE_TAG_DEFINITION, DELETE_NON_EMPTY_TAG_NAMESPACE, BULK_DELETE_TAG_DEFINITION, BULK_EDIT_OF_TAGS, IMPORT_STANDARD_TAGS)
percentCompletenumber (float)How much progress the operation has made.
resourcesarrayThe resources this work request affects.
statusstringThe current status of the work request. (ACCEPTED, IN_PROGRESS, FAILED, SUCCEEDED, PARTIALLY_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
getselectworkRequestId, regionGets details on a specified work request. The workRequestID is returned in the opc-work-request-id header<br />for any asynchronous operation in tagging service.<br />
listselectcompartmentId, regionpage, limit, resourceIdentifierLists the tagging work requests in compartment.<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).
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)
workRequestIdstringThe OCID of the work request.
limitintegerThe maximum number of items to return in a paginated "List" call.
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 details on a specified work request. The workRequestID is returned in the opc-work-request-id header<br />for any asynchronous operation in tagging service.<br />

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