Home
Version 3
Jobs API

Jobs API

Retrieve Job with unknown failure

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/60b1667f-9233-4f40-bc70-c2cdd62cbe80

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMCIsImVtYWlsIjoiZW1haWwtMjIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2Mzl9.32TnMCWLgVMY-hB_wfh-OBxzfitQWCdj7crwqS7HtQ4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/60b1667f-9233-4f40-bc70-c2cdd62cbe80" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMCIsImVtYWlsIjoiZW1haWwtMjIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2Mzl9.32TnMCWLgVMY-hB_wfh-OBxzfitQWCdj7crwqS7HtQ4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "60b1667f-9233-4f40-bc70-c2cdd62cbe80",
    "created_at": "2016-04-16T01:23:59Z",
    "url": "/v2/jobs/60b1667f-9233-4f40-bc70-c2cdd62cbe80"
  },
  "entity": {
    "guid": "60b1667f-9233-4f40-bc70-c2cdd62cbe80",
    "status": "failed",
    "error": "Use of entity>error is deprecated in favor of entity>error_details.",
    "error_details": {
      "error_code": "UnknownError",
      "description": "An unknown error occurred.",
      "code": 10001
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a99fd38d-93a9-43e3-af6d-5d82b2e1d113
Content-Length: 491
X-Content-Type-Options: nosniff