Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-f0604bf9-af4c-4fdb-b615-cf7a8e04a02c

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MiIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDh9.kKhMGOR0Ebzh8fmSypPRAy-zA3E57yqn5BtWHIS9VkQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-f0604bf9-af4c-4fdb-b615-cf7a8e04a02c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MiIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDh9.kKhMGOR0Ebzh8fmSypPRAy-zA3E57yqn5BtWHIS9VkQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-f0604bf9-af4c-4fdb-b615-cf7a8e04a02c",
  "type": "bits",
  "hash": {
    "type": "sha1",
    "value": null
  },
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-09-11T18:39:08Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/packages/guid-f0604bf9-af4c-4fdb-b615-cf7a8e04a02c"
    },
    "upload": {
      "href": "/v3/packages/guid-f0604bf9-af4c-4fdb-b615-cf7a8e04a02c/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-f0604bf9-af4c-4fdb-b615-cf7a8e04a02c/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-f0604bf9-af4c-4fdb-b615-cf7a8e04a02c/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-3915cd68-5fe1-49f3-8662-fc6ad3f2f01e"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 04602463-5b3b-4061-9c08-253bcfb08e10
Content-Length: 830
X-Content-Type-Options: nosniff