Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-9067cc41-b832-4de9-89a2-0987dab65e8e

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NyIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTV9.Pfwe1vJMmKyJi6BGGlOl8RVBSIGwhJwmUMRfSDcM3AU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-9067cc41-b832-4de9-89a2-0987dab65e8e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NyIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTV9.Pfwe1vJMmKyJi6BGGlOl8RVBSIGwhJwmUMRfSDcM3AU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-9067cc41-b832-4de9-89a2-0987dab65e8e",
  "type": "bits",
  "hash": {
    "type": "sha1",
    "value": null
  },
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-07-27T22:43:15Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-9067cc41-b832-4de9-89a2-0987dab65e8e"
    },
    "upload": {
      "href": "/v3/packages/guid-9067cc41-b832-4de9-89a2-0987dab65e8e/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-9067cc41-b832-4de9-89a2-0987dab65e8e/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-9067cc41-b832-4de9-89a2-0987dab65e8e/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-1eb7b328-4769-45c9-8c61-3d2e7b69541a"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4bf83450-ac3e-49c7-ae20-abbdc0693ed2
Content-Length: 830
X-Content-Type-Options: nosniff