Home
Version 3
Jobs API

Jobs API

Retrieve Job with unknown failure

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/69f83b13-5c5c-4f53-9929-6709d0a4af4f

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMyIsImVtYWlsIjoiZW1haWwtMTQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NTR9.gd5Af5c1SyuwE7WDA6Q9uEiVfanv37Ij4vpiZn0824U
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/69f83b13-5c5c-4f53-9929-6709d0a4af4f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMyIsImVtYWlsIjoiZW1haWwtMTQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NTR9.gd5Af5c1SyuwE7WDA6Q9uEiVfanv37Ij4vpiZn0824U" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "69f83b13-5c5c-4f53-9929-6709d0a4af4f",
    "created_at": "2015-03-20T18:27:34Z",
    "url": "/v2/jobs/69f83b13-5c5c-4f53-9929-6709d0a4af4f"
  },
  "entity": {
    "guid": "69f83b13-5c5c-4f53-9929-6709d0a4af4f",
    "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: 9b9f57f1-96a0-43b9-9b78-c12194929c4e
Content-Length: 491
X-Content-Type-Options: nosniff