Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-68f784a1-50cf-4222-a1a7-84738d834a60

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MiIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDR9.B-vNH1zHJnujtJrbpPMNzTYyzZBQ-ewGIr1U2cefrxs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-68f784a1-50cf-4222-a1a7-84738d834a60" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MiIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDR9.B-vNH1zHJnujtJrbpPMNzTYyzZBQ-ewGIr1U2cefrxs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-68f784a1-50cf-4222-a1a7-84738d834a60",
  "type": "bits",
  "hash": {
    "type": "sha1",
    "value": null
  },
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-08-31T21:50:04Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-68f784a1-50cf-4222-a1a7-84738d834a60"
    },
    "upload": {
      "href": "/v3/packages/guid-68f784a1-50cf-4222-a1a7-84738d834a60/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-68f784a1-50cf-4222-a1a7-84738d834a60/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-68f784a1-50cf-4222-a1a7-84738d834a60/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-f5df6209-7b29-4489-a647-cc776defba21"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 97a34988-acd3-4fa2-87da-6c3864e98d24
Content-Length: 830
X-Content-Type-Options: nosniff