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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNCIsImVtYWlsIjoiZW1haWwtMTQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDF9.muk5gKYbDE1sWchr8pdd8l28cU4-1Faotj4F7d4rBis
Host: example.org
Cookie: 

Route

GET /v2/jobs/5d24a0ef-b6f3-4bee-b409-c1a0031b689a

cURL

curl "https://api.[your-domain.com]/v2/jobs/5d24a0ef-b6f3-4bee-b409-c1a0031b689a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNCIsImVtYWlsIjoiZW1haWwtMTQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDF9.muk5gKYbDE1sWchr8pdd8l28cU4-1Faotj4F7d4rBis" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 14337f25-8c52-4e2e-a046-f22e8b563b00
Content-Length: 496
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "5d24a0ef-b6f3-4bee-b409-c1a0031b689a",
    "created_at": "2014-11-05T01:02:21+00:00",
    "url": "/v2/jobs/5d24a0ef-b6f3-4bee-b409-c1a0031b689a"
  },
  "entity": {
    "guid": "5d24a0ef-b6f3-4bee-b409-c1a0031b689a",
    "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
    }
  }
}