Home
Version 3
Jobs API

Jobs API

Retrieve Job with known failure

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/77c56577-d1ef-4c61-9c0c-80ba1b20da70

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.eyJ1c2VyX2lkIjoidWFhLWlkLTg0IiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkzfQ.460LX-sbNQd0JQ9ca_knDF_HpHgg8wsZPc_vy0gQFLU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/77c56577-d1ef-4c61-9c0c-80ba1b20da70" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg0IiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkzfQ.460LX-sbNQd0JQ9ca_knDF_HpHgg8wsZPc_vy0gQFLU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "77c56577-d1ef-4c61-9c0c-80ba1b20da70",
    "created_at": "2016-04-22T19:33:13Z",
    "url": "/v2/jobs/77c56577-d1ef-4c61-9c0c-80ba1b20da70"
  },
  "entity": {
    "guid": "77c56577-d1ef-4c61-9c0c-80ba1b20da70",
    "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: bca4a7f6-2b9e-4922-9af1-5a65a332956a
Content-Length: 524
X-Content-Type-Options: nosniff