Home
Version 3
Jobs API

Jobs API

Retrieve Job with known 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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MSIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDd9.Tl8tdJpa0YhrRIwglHbtVt7MGb_9p_ghbMeqmH1lxko
Host: example.org
Cookie: 

Route

GET /v2/jobs/3928340e-1cbd-4da0-8110-6c54abb9ed7b

cURL

curl "https://api.[your-domain.com]/v2/jobs/3928340e-1cbd-4da0-8110-6c54abb9ed7b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MSIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDd9.Tl8tdJpa0YhrRIwglHbtVt7MGb_9p_ghbMeqmH1lxko" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e6c95e98-8ffb-44f9-93f4-bbd63c980026
Content-Length: 524
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "3928340e-1cbd-4da0-8110-6c54abb9ed7b",
    "created_at": "2015-02-13T22:35:07Z",
    "url": "/v2/jobs/3928340e-1cbd-4da0-8110-6c54abb9ed7b"
  },
  "entity": {
    "guid": "3928340e-1cbd-4da0-8110-6c54abb9ed7b",
    "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"
    }
  }
}