Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-a9aedcbd-d595-468a-87bd-a8626123cc64

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMCIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk4MDB9.oBTiC9N2-aS-P7LNrOZdNlwyTOtSxK-5ZukBPU3vwRI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-a9aedcbd-d595-468a-87bd-a8626123cc64" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMCIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk4MDB9.oBTiC9N2-aS-P7LNrOZdNlwyTOtSxK-5ZukBPU3vwRI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-a9aedcbd-d595-468a-87bd-a8626123cc64",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-07-06T23:23:20Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-a9aedcbd-d595-468a-87bd-a8626123cc64"
    },
    "upload": {
      "href": "/v3/packages/guid-a9aedcbd-d595-468a-87bd-a8626123cc64/upload",
      "method": "POST"
    },
    "stage": {
      "href": "/v3/packages/guid-a9aedcbd-d595-468a-87bd-a8626123cc64/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-29fab3f8-8212-4533-a689-87428c26645c"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2bc86bbb-6ce3-4290-ac9b-7866f3939084
Content-Length: 663
X-Content-Type-Options: nosniff