Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-4c56d9d4-fb41-4a45-bf75-aa3e9e1745f7

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NiIsImVtYWlsIjoiZW1haWwtMTczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDh9.hVMd3y8MztxrTwMA47eAVaIeDX1YfsNhxcAUcWpDkoU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-4c56d9d4-fb41-4a45-bf75-aa3e9e1745f7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NiIsImVtYWlsIjoiZW1haWwtMTczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDh9.hVMd3y8MztxrTwMA47eAVaIeDX1YfsNhxcAUcWpDkoU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-4c56d9d4-fb41-4a45-bf75-aa3e9e1745f7",
  "type": "bits",
  "hash": {
    "type": "sha1",
    "value": null
  },
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-09-30T23:30:47Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-4c56d9d4-fb41-4a45-bf75-aa3e9e1745f7"
    },
    "upload": {
      "href": "/v3/packages/guid-4c56d9d4-fb41-4a45-bf75-aa3e9e1745f7/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-4c56d9d4-fb41-4a45-bf75-aa3e9e1745f7/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-4c56d9d4-fb41-4a45-bf75-aa3e9e1745f7/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-1dfa72b0-ae1a-4eaa-8835-bc431eb6abcd"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3e3d8a9d-a2a6-48ee-ac83-b7d0ab225337
Content-Length: 829
X-Content-Type-Options: nosniff