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.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMiIsImVtYWlsIjoiZW1haWwtMTUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzJ9._O9RoMqJgp0B2fS2sy1YDVCG1LPqLCbUDUst0zNLmEU
Host: example.org
Cookie: 

Route

GET /v2/jobs/650c0fe7-6a65-4b4f-af49-c7b492f9f523

cURL

curl "https://api.[your-domain.com]/v2/jobs/650c0fe7-6a65-4b4f-af49-c7b492f9f523" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMiIsImVtYWlsIjoiZW1haWwtMTUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzJ9._O9RoMqJgp0B2fS2sy1YDVCG1LPqLCbUDUst0zNLmEU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9d364b35-819a-4123-a901-784bced3de0e
Content-Length: 491
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "650c0fe7-6a65-4b4f-af49-c7b492f9f523",
    "created_at": "2015-02-12T01:42:12Z",
    "url": "/v2/jobs/650c0fe7-6a65-4b4f-af49-c7b492f9f523"
  },
  "entity": {
    "guid": "650c0fe7-6a65-4b4f-af49-c7b492f9f523",
    "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
    }
  }
}