Home
Version 3
Jobs API

Jobs API

Retrieve Job with unknown failure

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/741afd2d-7020-4ed9-b8f3-5a7f38bdc102

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTJ9.gc1eaH23Bvo3ljk9OCjzuQExVgQwfMBqpHvC3gucf_I
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/741afd2d-7020-4ed9-b8f3-5a7f38bdc102" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTJ9.gc1eaH23Bvo3ljk9OCjzuQExVgQwfMBqpHvC3gucf_I" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "741afd2d-7020-4ed9-b8f3-5a7f38bdc102",
    "created_at": "2015-07-06T23:23:12Z",
    "url": "/v2/jobs/741afd2d-7020-4ed9-b8f3-5a7f38bdc102"
  },
  "entity": {
    "guid": "741afd2d-7020-4ed9-b8f3-5a7f38bdc102",
    "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: df6fdc77-fb86-46cf-94e7-518d1c7e7327
Content-Length: 491
X-Content-Type-Options: nosniff