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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzB9.9cgikGFGLeJPSfmdGb1UNVDlanCOKux1iDbCH9LRMJg
Host: example.org
Cookie: 

Route

GET /v2/jobs/d85ecbf7-10be-4bfb-996f-aba3f60c576a

cURL

curl "https://api.[your-domain.com]/v2/jobs/d85ecbf7-10be-4bfb-996f-aba3f60c576a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzB9.9cgikGFGLeJPSfmdGb1UNVDlanCOKux1iDbCH9LRMJg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f4c08254-973b-4d87-97dd-b6dce6b1c47d
Content-Length: 496
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "d85ecbf7-10be-4bfb-996f-aba3f60c576a",
    "created_at": "2014-12-24T01:39:30+00:00",
    "url": "/v2/jobs/d85ecbf7-10be-4bfb-996f-aba3f60c576a"
  },
  "entity": {
    "guid": "d85ecbf7-10be-4bfb-996f-aba3f60c576a",
    "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
    }
  }
}