Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-79efab8f-e0a4-4c2b-8018-768fce1df0e8

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC04MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM0fQ.YPkJ-ao6N-YGlr9HAqzSvE47U2nQRXECOccUD1gS-Z0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-79efab8f-e0a4-4c2b-8018-768fce1df0e8" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC04MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM0fQ.YPkJ-ao6N-YGlr9HAqzSvE47U2nQRXECOccUD1gS-Z0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-79efab8f-e0a4-4c2b-8018-768fce1df0e8",
  "type": "bits",
  "data": {
    "hash": {
      "type": "sha1",
      "value": null
    },
    "error": null
  },
  "state": "AWAITING_UPLOAD",
  "created_at": "2015-11-03T00:53:54Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-79efab8f-e0a4-4c2b-8018-768fce1df0e8"
    },
    "upload": {
      "href": "/v3/packages/guid-79efab8f-e0a4-4c2b-8018-768fce1df0e8/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-79efab8f-e0a4-4c2b-8018-768fce1df0e8/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-79efab8f-e0a4-4c2b-8018-768fce1df0e8/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-32f9387e-2cf6-4ce8-a793-fb4f03e7a47c"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3a4b50ad-878a-48a4-a06a-f5c576b8db6a
Content-Length: 840
X-Content-Type-Options: nosniff