Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/adb1962b-d197-4142-9983-ebc829b39862

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMSIsImVtYWlsIjoiZW1haWwtMjIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDB9.3tbmExa9NGbSXyjrsDOwaKKS5WDIdagHkkYuTx6KJ40
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/adb1962b-d197-4142-9983-ebc829b39862" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMSIsImVtYWlsIjoiZW1haWwtMjIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDB9.3tbmExa9NGbSXyjrsDOwaKKS5WDIdagHkkYuTx6KJ40" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "adb1962b-d197-4142-9983-ebc829b39862",
    "created_at": "2016-04-16T01:24:00Z",
    "url": "/v2/jobs/adb1962b-d197-4142-9983-ebc829b39862"
  },
  "entity": {
    "guid": "adb1962b-d197-4142-9983-ebc829b39862",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8cc6b533-e481-44ca-a24a-7431bd54178a
Content-Length: 270
X-Content-Type-Options: nosniff