Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/5be924ca-8d42-4b4e-9450-1ed95798c1cb

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDd9.rlsIg7zPX95xnpFDlnBirjv9M2htB9FPw1vZLZbJLU4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/5be924ca-8d42-4b4e-9450-1ed95798c1cb" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDd9.rlsIg7zPX95xnpFDlnBirjv9M2htB9FPw1vZLZbJLU4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5be924ca-8d42-4b4e-9450-1ed95798c1cb",
    "created_at": "2015-03-10T23:11:47Z",
    "url": "/v2/jobs/5be924ca-8d42-4b4e-9450-1ed95798c1cb"
  },
  "entity": {
    "guid": "5be924ca-8d42-4b4e-9450-1ed95798c1cb",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b146d553-0b40-482e-8284-d2ba1d33778a
Content-Length: 270
X-Content-Type-Options: nosniff