Skip to main content

work_requests

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

Overview​

Namework_requests
TypeResource
Idoci.load_balancer.work_requests

Fields​

The following fields are returned by SELECT queries:

The work request is being retrieved.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the work request.
compartmentIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer.
errorDetailsarray
lifecycleStatestringThe current state of the work request. (ACCEPTED, IN_PROGRESS, FAILED, SUCCEEDED)
loadBalancerIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request is associated.
messagestringA collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure. Possible data elements include: - workflow name - event ID - work request ID - load balancer ID - workflow completion message
timeAcceptedstring (date-time)The date and time the work request was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
timeFinishedstring (date-time)The date and time the work request was completed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
typestringThe type of action the work request represents. Example: CreateListener

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectworkRequestId, regionopc-request-idGets the details of a work request.
listselectloadBalancerId, regionopc-request-id, limit, pageLists the work requests for a given load balancer.

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
loadBalancerIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the load balancer associated with the work requests to retrieve.
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](/Content/General/Concepts/identifiers.htm) of the work request to retrieve.
limitinteger (int64)For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50
opc-request-idstringThe unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 3

SELECT examples​

Gets the details of a work request.

SELECT
id,
compartmentId,
errorDetails,
lifecycleState,
loadBalancerId,
message,
timeAccepted,
timeFinished,
type
FROM oci.load_balancer.work_requests
WHERE workRequestId = '{{ workRequestId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;