Jobs API

Retrieve Job with known failure

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/1cf94b01-99e3-4ac5-afdd-6d1acfe98fcf

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtODBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4N30.NaD0MhFfoWZ69FasdS5gwAGC1bmfRwCUe72DqapVWmM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/1cf94b01-99e3-4ac5-afdd-6d1acfe98fcf" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtODBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4N30.NaD0MhFfoWZ69FasdS5gwAGC1bmfRwCUe72DqapVWmM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "1cf94b01-99e3-4ac5-afdd-6d1acfe98fcf",
    "created_at": "2016-06-08T16:41:27Z",
    "url": "/v2/jobs/1cf94b01-99e3-4ac5-afdd-6d1acfe98fcf"
  },
  "entity": {
    "guid": "1cf94b01-99e3-4ac5-afdd-6d1acfe98fcf",
    "status": "failed",
    "error": "Use of entity>error is deprecated in favor of entity>error_details.",
    "error_details": {
      "code": 1001,
      "description": "Request invalid due to parse error: arbitrary string",
      "error_code": "CF-MessageParseError"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 920d2c41-4817-4266-b7f3-ce7060ef9f73
Content-Length: 524
X-Content-Type-Options: nosniff