Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-b21dc5c9-99e9-4a8a-8988-0ab4ad21fdf1

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NTh9.bAmq0BKpuVc-10_z3POSv1sk6Kj5qhd9gn8xCIhzpIU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-b21dc5c9-99e9-4a8a-8988-0ab4ad21fdf1" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NTh9.bAmq0BKpuVc-10_z3POSv1sk6Kj5qhd9gn8xCIhzpIU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-b21dc5c9-99e9-4a8a-8988-0ab4ad21fdf1",
  "type": "bits",
  "data": {
    "hash": {
      "type": "sha1",
      "value": null
    },
    "error": null
  },
  "url": null,
  "state": "AWAITING_UPLOAD",
  "created_at": "2015-10-15T23:52:38Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-b21dc5c9-99e9-4a8a-8988-0ab4ad21fdf1"
    },
    "upload": {
      "href": "/v3/packages/guid-b21dc5c9-99e9-4a8a-8988-0ab4ad21fdf1/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-b21dc5c9-99e9-4a8a-8988-0ab4ad21fdf1/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-b21dc5c9-99e9-4a8a-8988-0ab4ad21fdf1/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-f085c0a2-2666-4016-a3af-da30e84b7320"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 046f4267-b5bc-4009-a598-ae5650817981
Content-Length: 855
X-Content-Type-Options: nosniff