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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzV9.12nkH8YZy9i1j40ehPSGA5753mn9WlhrqnCW-p7XdOE
Host: example.org
Cookie: 

Route

GET /v3/packages/guid-375635d3-11f6-4623-9bd3-5e63a0fb30f1

cURL

curl "https://api.[your-domain.com]/v3/packages/guid-375635d3-11f6-4623-9bd3-5e63a0fb30f1" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzV9.12nkH8YZy9i1j40ehPSGA5753mn9WlhrqnCW-p7XdOE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3b17600b-cbfa-45cc-8199-ab23544f3056
Content-Length: 577
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "guid-375635d3-11f6-4623-9bd3-5e63a0fb30f1",
  "type": "bits",
  "hash": null,
  "url": null,
  "state": "AWAITING_UPLOAD",
  "error": null,
  "created_at": "2015-02-12T01:42:15Z",
  "_links": {
    "self": {
      "href": "/v3/packages/guid-375635d3-11f6-4623-9bd3-5e63a0fb30f1"
    },
    "upload": {
      "href": "/v3/packages/guid-375635d3-11f6-4623-9bd3-5e63a0fb30f1/upload"
    },
    "app": {
      "href": "/v3/apps/guid-cd107753-6bc8-4b17-9bbe-253f02db5d50"
    },
    "space": {
      "href": "/v2/spaces/6a2dcff1-138c-4235-a6b0-51c3ef2b1977"
    }
  }
}