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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzZ9.nuwtLwAO_-mISzPw365VsUmgjo74AI6cLDkNMeJPgCw
Host: example.org
Cookie: 

Route

GET /v2/jobs/422fa324-16a9-4592-886a-e91c71db7d9e

cURL

curl "https://api.[your-domain.com]/v2/jobs/422fa324-16a9-4592-886a-e91c71db7d9e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzZ9.nuwtLwAO_-mISzPw365VsUmgjo74AI6cLDkNMeJPgCw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8ecbc5d3-5f9b-4b80-90b1-cebb0d150ce2
Content-Length: 491
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "422fa324-16a9-4592-886a-e91c71db7d9e",
    "created_at": "2015-01-27T19:14:36Z",
    "url": "/v2/jobs/422fa324-16a9-4592-886a-e91c71db7d9e"
  },
  "entity": {
    "guid": "422fa324-16a9-4592-886a-e91c71db7d9e",
    "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
    }
  }
}