Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-baba048b-df7a-4aaa-bbfe-c86fbdd09301

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NCIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTV9.AdcArjxVoRQ4yFFzynUTE5QerYHGrgPrGMlcEJeJKOQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-baba048b-df7a-4aaa-bbfe-c86fbdd09301" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NCIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTV9.AdcArjxVoRQ4yFFzynUTE5QerYHGrgPrGMlcEJeJKOQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-baba048b-df7a-4aaa-bbfe-c86fbdd09301",
  "type": "bits",
  "hash": {
    "type": "sha1",
    "value": null
  },
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-08-06T00:36:55Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-baba048b-df7a-4aaa-bbfe-c86fbdd09301"
    },
    "upload": {
      "href": "/v3/packages/guid-baba048b-df7a-4aaa-bbfe-c86fbdd09301/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-baba048b-df7a-4aaa-bbfe-c86fbdd09301/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-baba048b-df7a-4aaa-bbfe-c86fbdd09301/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-a2598bdc-3d65-4a85-9d37-28b0c6ad1a22"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: be0f1949-ba1b-46df-a381-bec716709ff1
Content-Length: 830
X-Content-Type-Options: nosniff