List all Packages
GET /v3/packages
Request
Route
GET /v3/packages?page=1&per_page=2
Parameters
Name |
Description |
Valid Values |
Example Values |
page
|
Page to display
|
|
|
per_page
|
Number of results per page
|
|
|
page: 1
per_page: 2
Headers
cURL
curl "https://api.[your-domain.com]/v3/packages?page=1&per_page=2" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MyIsImVtYWlsIjoiZW1haWwtMzMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzZ9.dm37W4BDu-f9e3clcGuanh9lmaV8vncptXJbxYpKQsA" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"pagination": {
"total_results": 3,
"first": {
"href": "/v3/packages?page=1&per_page=2"
},
"last": {
"href": "/v3/packages?page=2&per_page=2"
},
"next": {
"href": "/v3/packages?page=2&per_page=2"
},
"previous": null
},
"resources": [
{
"guid": "guid-c7c3b552-28f0-42f9-9e1f-d231fcdd4a78",
"type": "bits",
"data": {
"hash": {
"type": "sha1",
"value": null
},
"error": null
},
"state": "AWAITING_UPLOAD",
"created_at": "2015-11-13T17:02:56Z",
"updated_at": null,
"links": {
"self": {
"href": "/v3/packages/guid-c7c3b552-28f0-42f9-9e1f-d231fcdd4a78"
},
"upload": {
"href": "/v3/packages/guid-c7c3b552-28f0-42f9-9e1f-d231fcdd4a78/upload",
"method": "POST"
},
"download": {
"href": "/v3/packages/guid-c7c3b552-28f0-42f9-9e1f-d231fcdd4a78/download",
"method": "GET"
},
"stage": {
"href": "/v3/packages/guid-c7c3b552-28f0-42f9-9e1f-d231fcdd4a78/droplets",
"method": "POST"
},
"app": {
"href": "/v3/apps/guid-459131aa-d1d2-4ce1-a5e7-c6a2a0429202"
}
}
},
{
"guid": "guid-c24fd786-9aad-4bd2-85de-511186485d21",
"type": "docker",
"data": {
"hash": {
"type": "sha1",
"value": null
},
"error": null,
"image": "http://location-of-image.com",
"credentials": {
},
"store_image": false
},
"state": "READY",
"created_at": "2015-11-13T17:02:56Z",
"updated_at": null,
"links": {
"self": {
"href": "/v3/packages/guid-c24fd786-9aad-4bd2-85de-511186485d21"
},
"app": {
"href": "/v3/apps/guid-459131aa-d1d2-4ce1-a5e7-c6a2a0429202"
}
}
}
]
}
Headers