Retrieve Asynchronous Job Status
get
/r-scripts/v1/jobs/{jobId}
Retrieves the status of the asynchronous job.
Request
Path Parameters
-
jobId(required):
The id of the asynchronous job
Response
202 Response
Job is still pending.
302 Response
Returns the Content-Location header where the result of the job can be fetched.
Headers
401 Response
When the user doesn't have privileges to perform the action.
500 Response
Problem connecting to Broker, finding the job id or other unexpected error.
Examples
The following example gets the status of an asynchronous job.
curl -i -X GET --header "Authorization: Bearer ${token}" \
--header 'Accept: application/json' \
"<oml-cloud-service-location-url>/oml/api/r-scripts/v1/jobs/<job id>"
Response Headers
- Response status 202: The HTTP response status 202 indicates the job is found and it is pending.
HTTP/2 202 date: Wed, 12 Mar 2025 23:09:20 GMT content-type: application/json content-length: 93 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff cache-control: no-cache, no-store, must-revalidate pragma: no-cache x-frame-options: SAMEORIGIN x-xss-protection: 1;mode=block content-security-policy: default-src 'none'; connect-src 'self'; font-src 'self' static.oracle.com; img-src 'self' data: static.oracle.com; media-src 'none'; object-src 'none'; script-src 'self' static.oracle.com 'unsafe-inline' 'unsafe-eval'; style-src 'self' static.oracle.com 'unsafe-inline'; frame-ancestors 'none' {"createdDate":" Mar 12,2025 22:55","status":"job is still running","elapsedTime":"00:13:32"}
- Response status 302: The HTTP response status 302 indicates the job is found and includes a job id for the results.
HTTP/1.1 200 OK Date: Thu, 28 Jul 2022 21:04:18 GMT Content-Type: application/json Content-Length: 1820 Connection: keep-alive Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1;mode=block Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff Content-Security-Policy: frame-ancestors 'none'