List associated packages
GET /v3/apps/:guid/packages
Request
Route
GET /v3/apps/guid-e6ee32d9-013f-4184-84c4-f6528c3ce7e8/packages
Parameters
Name |
Description |
Valid Values |
Example Values |
page
|
Page to display
|
|
|
per_page
|
Number of results per page
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v3/apps/guid-e6ee32d9-013f-4184-84c4-f6528c3ce7e8/packages" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNiIsImVtYWlsIjoiZW1haWwtMjk2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTR9.B8iKLmw3FSMYKkLwaGAgv6EDXATv7-2bZLD20I5SU-0" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"pagination": {
"total_results": 1,
"first": {
"href": "/v3/apps/guid-e6ee32d9-013f-4184-84c4-f6528c3ce7e8/packages?page=1&per_page=50"
},
"last": {
"href": "/v3/apps/guid-e6ee32d9-013f-4184-84c4-f6528c3ce7e8/packages?page=1&per_page=50"
},
"next": null,
"previous": null
},
"resources": [
{
"guid": "guid-3d792a08-e415-4f9e-912b-2a8485db781a",
"type": "bits",
"hash": {
"type": "sha1",
"value": null
},
"url": null,
"state": "AWAITING_UPLOAD",
"error": null,
"created_at": "2015-07-27T22:43:34Z",
"updated_at": null,
"_links": {
"self": {
"href": "/v3/packages/guid-3d792a08-e415-4f9e-912b-2a8485db781a"
},
"upload": {
"href": "/v3/packages/guid-3d792a08-e415-4f9e-912b-2a8485db781a/upload",
"method": "POST"
},
"download": {
"href": "/v3/packages/guid-3d792a08-e415-4f9e-912b-2a8485db781a/download",
"method": "GET"
},
"stage": {
"href": "/v3/packages/guid-3d792a08-e415-4f9e-912b-2a8485db781a/droplets",
"method": "POST"
},
"app": {
"href": "/v3/apps/guid-e6ee32d9-013f-4184-84c4-f6528c3ce7e8"
}
}
}
]
}
Headers