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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDl9.TrysTBtGstadZ3u-anXenIEYEnykvFRDfWQ4ihgIdFo
Host: example.org
Cookie: 

Route

GET /v2/jobs/dfb093f4-932b-4928-9dc1-183cfaf9348f

cURL

curl "https://api.[your-domain.com]/v2/jobs/dfb093f4-932b-4928-9dc1-183cfaf9348f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDl9.TrysTBtGstadZ3u-anXenIEYEnykvFRDfWQ4ihgIdFo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 711ec9d3-59be-4b15-8d8b-baee938e9362
Content-Length: 496
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "dfb093f4-932b-4928-9dc1-183cfaf9348f",
    "created_at": "2015-01-20T01:52:29+00:00",
    "url": "/v2/jobs/dfb093f4-932b-4928-9dc1-183cfaf9348f"
  },
  "entity": {
    "guid": "dfb093f4-932b-4928-9dc1-183cfaf9348f",
    "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
    }
  }
}