Home
Version 3
Jobs API

Jobs API

Retrieve Job that is queued

GET /v2/jobs/:guid

Request

Route

GET /v2/jobs/f4410597-6996-40a0-b7d6-488564a2388b

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.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODY5Nn0.mn-SVLGxdUDbYT1AOT1pAW7PeuKY6JgR7Q60VQPIsDQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/jobs/f4410597-6996-40a0-b7d6-488564a2388b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODY5Nn0.mn-SVLGxdUDbYT1AOT1pAW7PeuKY6JgR7Q60VQPIsDQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f4410597-6996-40a0-b7d6-488564a2388b",
    "created_at": "2015-04-07T19:11:36Z",
    "url": "/v2/jobs/f4410597-6996-40a0-b7d6-488564a2388b"
  },
  "entity": {
    "guid": "f4410597-6996-40a0-b7d6-488564a2388b",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2737677b-13c5-43a3-af0a-5fce3fccd88c
Content-Length: 270
X-Content-Type-Options: nosniff