Home
Version 3
Jobs API

Jobs API

Retrieve Job with unknown failure

GET /v2/jobs/:guid

Fields

Name Description Default Valid Values Example Values
guid The guid of the job.
status The status of the job.
  • failed
  • finished
  • queued
  • running

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MiIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjd9.Juapybmslj4z7uW7NmetfEepUxqhpXzTS0w8IQGmLqo
Host: example.org
Cookie: 

Route

GET /v2/jobs/e39427c9-dbbd-48cc-b8f3-4a0c5a7e68ad

cURL

curl "https://api.[your-domain.com]/v2/jobs/e39427c9-dbbd-48cc-b8f3-4a0c5a7e68ad" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MiIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjd9.Juapybmslj4z7uW7NmetfEepUxqhpXzTS0w8IQGmLqo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f635e8e8-eef8-4e56-8fd9-a048f81098bd
Content-Length: 491
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "e39427c9-dbbd-48cc-b8f3-4a0c5a7e68ad",
    "created_at": "2015-02-10T01:42:47Z",
    "url": "/v2/jobs/e39427c9-dbbd-48cc-b8f3-4a0c5a7e68ad"
  },
  "entity": {
    "guid": "e39427c9-dbbd-48cc-b8f3-4a0c5a7e68ad",
    "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
    }
  }
}