Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-8624bbe5-6349-4c98-8f6f-4ec026bc0752

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNyIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDZ9.2KTq3Db85JURFyDJNlxmfgkTSZjYSrzxz_heFnJegN0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-8624bbe5-6349-4c98-8f6f-4ec026bc0752" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNyIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDZ9.2KTq3Db85JURFyDJNlxmfgkTSZjYSrzxz_heFnJegN0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-8624bbe5-6349-4c98-8f6f-4ec026bc0752",
  "type": "bits",
  "hash": {
    "type": "sha1",
    "value": null
  },
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-10-07T00:35:46Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-8624bbe5-6349-4c98-8f6f-4ec026bc0752"
    },
    "upload": {
      "href": "/v3/packages/guid-8624bbe5-6349-4c98-8f6f-4ec026bc0752/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-8624bbe5-6349-4c98-8f6f-4ec026bc0752/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-8624bbe5-6349-4c98-8f6f-4ec026bc0752/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-08107446-c3b3-42b2-89d1-7b1b6f263949"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 55edba08-af59-4720-8551-efe6d22a716d
Content-Length: 829
X-Content-Type-Options: nosniff