Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/d1c9a86a-f700-4172-b47b-593f1fe46850

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDJ9.dZohwiRS87ns0VoJtR7uG80ynfWK36eZi-yhbAD7eAc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/d1c9a86a-f700-4172-b47b-593f1fe46850" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDJ9.dZohwiRS87ns0VoJtR7uG80ynfWK36eZi-yhbAD7eAc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "d1c9a86a-f700-4172-b47b-593f1fe46850",
    "created_at": "2015-10-13T17:31:42Z",
    "url": "/v2/jobs/d1c9a86a-f700-4172-b47b-593f1fe46850"
  },
  "entity": {
    "guid": "d1c9a86a-f700-4172-b47b-593f1fe46850",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 930f9ce4-5e80-4cc0-a263-72e116446056
Content-Length: 270
X-Content-Type-Options: nosniff