Home
Version 3
Jobs API

Jobs API

Retrieve Job with unknown failure

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/787eed53-991c-47dd-a67a-437c22da0fdf

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.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC00N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg5fQ.PNvt8CvRuECm89Xv3T7kFXAemM3p_i5pfZEkgmQYHFc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/787eed53-991c-47dd-a67a-437c22da0fdf" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY3IiwiZW1haWwiOiJlbWFpbC00N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg5fQ.PNvt8CvRuECm89Xv3T7kFXAemM3p_i5pfZEkgmQYHFc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "787eed53-991c-47dd-a67a-437c22da0fdf",
    "created_at": "2015-07-27T22:43:09Z",
    "url": "/v2/jobs/787eed53-991c-47dd-a67a-437c22da0fdf"
  },
  "entity": {
    "guid": "787eed53-991c-47dd-a67a-437c22da0fdf",
    "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: a9fda1b2-ba0f-4032-b962-13d9ea43c28a
Content-Length: 491
X-Content-Type-Options: nosniff