Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/edc2af66-99fa-453e-8280-e93b5f68020d

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDl9.B2TKQ8wTdl0eHqa_lG0kmTofya1H6ZlX2APkMPSUyw0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/edc2af66-99fa-453e-8280-e93b5f68020d" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDl9.B2TKQ8wTdl0eHqa_lG0kmTofya1H6ZlX2APkMPSUyw0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "edc2af66-99fa-453e-8280-e93b5f68020d",
    "created_at": "2015-04-15T00:55:49Z",
    "url": "/v2/jobs/edc2af66-99fa-453e-8280-e93b5f68020d"
  },
  "entity": {
    "guid": "edc2af66-99fa-453e-8280-e93b5f68020d",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 029bccf7-feff-4460-afbb-a60bbbf1a951
Content-Length: 270
X-Content-Type-Options: nosniff