List all work requests.
GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}&clusterId=ocid1.cluster.oc1....&resourceId=cupidatat&resourceType=CLUSTER&limit=340&sortOrder=DESC&sortBy=TIME_STARTED
List all work requests in a compartment.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | (Required) The OCID of the compartment. | |
clusterId | string | The OCID of the cluster. | |
resourceId | string | The OCID of the resource associated with a work request | |
resourceType | string | Type of the resource associated with a work request | |
status | string | A work request status to filter on. Can have multiple parameters of this name. | |
status | string | A work request status to filter on. Can have multiple parameters of this name. | |
limit | number | For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. | |
1 is the minimum, 1000 is the maximum. For important details about how pagination works, | |||
see List Pagination. | |||
page | null | For 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. | |||
sortOrder | string | The optional order in which to sort the results. | |
sortBy | string | The optional field to sort the results by. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact | |
Oracle about a particular request, please provide the request ID. | |||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |
RESPONSES
status: OK
[{"compartmentId":"ocid1.compartment.oc1..aaaaaaaafqm2df7ckwmmbtdsl2bgxsw4fcpvkoojytxrqst24yww2tdmtqcq","id":"ocid1.clustersworkrequest.oc1.iad.aaaaaaaanifpelnyzmkvnepohbz4ntswkpl35syzzsugdxceth3oihe8hcfq","operationType":"CLUSTER_UPDATE","resources":[{"actionType":"CREATED","entityType":"cluster","entityUri":"/20180401/clusters/ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw","identifier":"ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw"},{"actionType":"CREATED","entityType":"cluster","entityUri":"/20180401/clusters/ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw","identifier":"ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw"}],"status":"IN_PROGRESS","timeAccepted":"1958-04-14T05:09:54.167Z","timeFinished":"2011-09-18T20:37:29.583Z","timeStarted":"1999-04-02T00:44:38.264Z"},{"compartmentId":"ocid1.compartment.oc1..aaaaaaaafqm2df7ckwmmbtdsl2bgxsw4fcpvkoojytxrqst24yww2tdmtqcq","id":"ocid1.clustersworkrequest.oc1.iad.aaaaaaaanifpelnyzmkvnepohbz4ntswkpl35syzzsugdxceth3oihe8hcfq","operationType":"CLUSTER_UPDATE","resources":[{"actionType":"CREATED","entityType":"cluster","entityUri":"/20180401/clusters/ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw","identifier":"ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw"},{"actionType":"CREATED","entityType":"cluster","entityUri":"/20180401/clusters/ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw","identifier":"ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw"}],"status":"IN_PROGRESS","timeAccepted":"2004-06-12T15:03:01.535Z","timeFinished":"1948-10-20T04:33:17.067Z","timeStarted":"1951-01-03T10:51:39.309Z"}]