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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk3fQ.pxUKlyP-U9sHReVNe4ecs6a7OI15R52N8IP--VhxKPo
Host: example.org
Cookie: 

Route

GET /v2/jobs/23aaacab-144f-4d20-abe1-4752e08d307e

cURL

curl "https://api.[your-domain.com]/v2/jobs/23aaacab-144f-4d20-abe1-4752e08d307e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk3fQ.pxUKlyP-U9sHReVNe4ecs6a7OI15R52N8IP--VhxKPo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 138efd2e-f1f5-4b9e-a5b4-67e54b727e19
Content-Length: 496
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "23aaacab-144f-4d20-abe1-4752e08d307e",
    "created_at": "2014-11-13T23:38:17+00:00",
    "url": "/v2/jobs/23aaacab-144f-4d20-abe1-4752e08d307e"
  },
  "entity": {
    "guid": "23aaacab-144f-4d20-abe1-4752e08d307e",
    "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
    }
  }
}