Home
Version 3
Jobs API

Jobs API

Retrieve Job with unknown failure

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/c75dd9c0-c5cf-4888-9ee9-888a5f18972f

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNyIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDd9.IAKC7qJ6T6HI7O2yFWEtyDfHHRazyDB5uw2i6pvXyNA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/c75dd9c0-c5cf-4888-9ee9-888a5f18972f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNyIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDd9.IAKC7qJ6T6HI7O2yFWEtyDfHHRazyDB5uw2i6pvXyNA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c75dd9c0-c5cf-4888-9ee9-888a5f18972f",
    "created_at": "2015-03-10T23:11:47Z",
    "url": "/v2/jobs/c75dd9c0-c5cf-4888-9ee9-888a5f18972f"
  },
  "entity": {
    "guid": "c75dd9c0-c5cf-4888-9ee9-888a5f18972f",
    "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: 975bd2c8-2f3e-4bc9-b8ef-0bf7e5814ca1
Content-Length: 491
X-Content-Type-Options: nosniff