Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/63d40432-4d06-4add-8f58-4efb82d7e846

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.eyJ1c2VyX2lkIjoidWFhLWlkLTk1IiwiZW1haWwiOiJlbWFpbC05M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM1fQ.h7OQVgPzFhwav37FEp2DqFyz28sBzW2FlYv6HiJ5SdI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/63d40432-4d06-4add-8f58-4efb82d7e846" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk1IiwiZW1haWwiOiJlbWFpbC05M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM1fQ.h7OQVgPzFhwav37FEp2DqFyz28sBzW2FlYv6HiJ5SdI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "63d40432-4d06-4add-8f58-4efb82d7e846",
    "created_at": "2015-11-03T00:53:55Z",
    "url": "/v2/jobs/63d40432-4d06-4add-8f58-4efb82d7e846"
  },
  "entity": {
    "guid": "63d40432-4d06-4add-8f58-4efb82d7e846",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 70fca241-be04-4efa-a073-c02173a46811
Content-Length: 270
X-Content-Type-Options: nosniff