Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/39ef0ad2-c45f-41b2-b5ba-64ce4c16622e

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtNzhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4N30.prZBflX68NdZ8LiBNXZmqmK1WRKuKweCLViRd-bk8B0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/39ef0ad2-c45f-41b2-b5ba-64ce4c16622e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtNzhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2NjAwODg4N30.prZBflX68NdZ8LiBNXZmqmK1WRKuKweCLViRd-bk8B0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "39ef0ad2-c45f-41b2-b5ba-64ce4c16622e",
    "created_at": "2016-06-08T16:41:27Z",
    "url": "/v2/jobs/39ef0ad2-c45f-41b2-b5ba-64ce4c16622e"
  },
  "entity": {
    "guid": "39ef0ad2-c45f-41b2-b5ba-64ce4c16622e",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 92b32461-c553-46ac-8237-2e0a0a912f66
Content-Length: 270
X-Content-Type-Options: nosniff