Home
Version 3
Jobs API

Jobs API

Retrieve Job that was successful

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/85540d4d-5e71-4583-b0c2-e3d8ecd7d251

Body

Name Description Default Valid Values Example Values
guid The guid of the job.
status The status of the job.
  • failed
  • finished
  • queued
  • running

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MSIsImVtYWlsIjoiZW1haWwtMjI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTV9.tRmwgev6yTLN7rxPhlFuS3kNSSg5BxRjSCYbjfVXKz8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/85540d4d-5e71-4583-b0c2-e3d8ecd7d251" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MSIsImVtYWlsIjoiZW1haWwtMjI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTV9.tRmwgev6yTLN7rxPhlFuS3kNSSg5BxRjSCYbjfVXKz8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0",
    "created_at": "1970-01-01T00:00:00Z",
    "url": "/v2/jobs/0"
  },
  "entity": {
    "guid": "0",
    "status": "finished"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 27a442ad-e231-4d09-bb43-28388f8afc9b
Content-Length: 167
X-Content-Type-Options: nosniff