Home
Version 3
Jobs API

Jobs API

Retrieve Job with known failure

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/5d69e238-f452-4fe9-b15c-22a2dd713a29

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTJ9.TKlLZqZiYqLr36Z4mdeRQh7VJI5NAfc9Qesxk6ScfGs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/5d69e238-f452-4fe9-b15c-22a2dd713a29" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTJ9.TKlLZqZiYqLr36Z4mdeRQh7VJI5NAfc9Qesxk6ScfGs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5d69e238-f452-4fe9-b15c-22a2dd713a29",
    "created_at": "2015-07-06T23:23:12Z",
    "url": "/v2/jobs/5d69e238-f452-4fe9-b15c-22a2dd713a29"
  },
  "entity": {
    "guid": "5d69e238-f452-4fe9-b15c-22a2dd713a29",
    "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: 67562d0e-b417-4c8c-aee6-42522f34bca4
Content-Length: 524
X-Content-Type-Options: nosniff