Home
Version 3
Packages (Experimental) API

Packages (Experimental) API

Get a Package

GET /v3/packages/:guid

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtOTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg3Mn0.Sh8VdwUaitUhV2aNlaHNkdbrlbcC672PwyY7zZ9pZeA
Host: example.org
Cookie: 

Route

GET /v3/packages/guid-63156074-3a57-4a82-a496-fcd595202e62

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-63156074-3a57-4a82-a496-fcd595202e62" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtOTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyMjk5MDg3Mn0.Sh8VdwUaitUhV2aNlaHNkdbrlbcC672PwyY7zZ9pZeA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c6afddea-7564-4d08-a744-f842eb0e54fb
Content-Length: 577
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-63156074-3a57-4a82-a496-fcd595202e62",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-01-27T19:14:31Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-63156074-3a57-4a82-a496-fcd595202e62"
    },
    "upload": {
      "href": "/v3/packages/guid-63156074-3a57-4a82-a496-fcd595202e62/upload"
    },
    "app": {
      "href": "/v3/apps/guid-6d99bdee-95d2-4527-abd7-27d4143fa2d4"
    },
    "space": {
      "href": "/v2/spaces/1d8c6b29-95d1-4ba4-aba2-bffad920fe2f"
    }
  }
}