Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/26c98bcd-4acc-4c7f-be9b-049ebc338ead

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMCIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTV9.R877xOxRYMKXPVIv_ee3oXnBTonEro9FhKPna8hZ4lo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/26c98bcd-4acc-4c7f-be9b-049ebc338ead" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMCIsImVtYWlsIjoiZW1haWwtMTc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTV9.R877xOxRYMKXPVIv_ee3oXnBTonEro9FhKPna8hZ4lo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "26c98bcd-4acc-4c7f-be9b-049ebc338ead",
    "created_at": "2015-06-16T23:40:55Z",
    "url": "/v2/jobs/26c98bcd-4acc-4c7f-be9b-049ebc338ead"
  },
  "entity": {
    "guid": "26c98bcd-4acc-4c7f-be9b-049ebc338ead",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1cc1cad4-7042-451b-85d0-53b7de2333af
Content-Length: 270
X-Content-Type-Options: nosniff