Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/6226fab0-7b05-4949-a870-bd83b4a8412c

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.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkzfQ.2FmGIrsNJcojSuHShXISjplMU93kLHo4NNOsmYlqTZQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/6226fab0-7b05-4949-a870-bd83b4a8412c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkzfQ.2FmGIrsNJcojSuHShXISjplMU93kLHo4NNOsmYlqTZQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6226fab0-7b05-4949-a870-bd83b4a8412c",
    "created_at": "2016-04-22T19:33:13Z",
    "url": "/v2/jobs/6226fab0-7b05-4949-a870-bd83b4a8412c"
  },
  "entity": {
    "guid": "6226fab0-7b05-4949-a870-bd83b4a8412c",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9c954b6d-4318-49c1-9b2e-2cd0642bd207
Content-Length: 270
X-Content-Type-Options: nosniff