Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/1be6f9f8-9d1c-4d68-a5ee-1f872ed9c258

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.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDZ9.ySGooDHgWS7gsDfWBsvqld1BGza07QwasJERj4sk9kM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/1be6f9f8-9d1c-4d68-a5ee-1f872ed9c258" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDZ9.ySGooDHgWS7gsDfWBsvqld1BGza07QwasJERj4sk9kM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "1be6f9f8-9d1c-4d68-a5ee-1f872ed9c258",
    "created_at": "2015-10-07T00:35:46Z",
    "url": "/v2/jobs/1be6f9f8-9d1c-4d68-a5ee-1f872ed9c258"
  },
  "entity": {
    "guid": "1be6f9f8-9d1c-4d68-a5ee-1f872ed9c258",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7930e6f7-901f-4a11-abf9-f1dd24787cbb
Content-Length: 270
X-Content-Type-Options: nosniff