Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Request

Route

GET /v3/packages/guid-8850031a-4be7-4441-aafb-f6e83db2dc90

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OCIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDN9.Z6pM7iByy4-imdiI0lZ8cMfOCdhGNVOTED2oQDvZ2Uc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-8850031a-4be7-4441-aafb-f6e83db2dc90" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OCIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDN9.Z6pM7iByy4-imdiI0lZ8cMfOCdhGNVOTED2oQDvZ2Uc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-8850031a-4be7-4441-aafb-f6e83db2dc90",
  "type": "bits",
  "data": {
    "hash": {
      "type": "sha1",
      "value": null
    },
    "error": null
  },
  "url": null,
  "state": "AWAITING_UPLOAD",
  "created_at": "2015-10-13T17:31:43Z",
  "updated_at": null,
  "links": {
    "self": {
      "href": "/v3/packages/guid-8850031a-4be7-4441-aafb-f6e83db2dc90"
    },
    "upload": {
      "href": "/v3/packages/guid-8850031a-4be7-4441-aafb-f6e83db2dc90/upload",
      "method": "POST"
    },
    "download": {
      "href": "/v3/packages/guid-8850031a-4be7-4441-aafb-f6e83db2dc90/download",
      "method": "GET"
    },
    "stage": {
      "href": "/v3/packages/guid-8850031a-4be7-4441-aafb-f6e83db2dc90/droplets",
      "method": "POST"
    },
    "app": {
      "href": "/v3/apps/guid-d9ed3123-aca5-4b6f-9fc2-45e2e3d460a8"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 24227cc4-2918-436e-9d72-e969374d0a10
Content-Length: 855
X-Content-Type-Options: nosniff