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.eyJ1c2VyX2lkIjoidWFhLWlkLTgwIiwiZW1haWwiOiJlbWFpbC03OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODM0fQ.uFg_L2PmTN9LnRDzKqOhCHZqdCYJhiuLt9z2mV0cy9E" \
-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-a57fd932-85db-483a-a27e-b00efbb3b0a4",
"type": "bits",
"data": {
"hash": {
"type": "sha1",
"value": null
},
"error": null
},
"state": "AWAITING_UPLOAD",
"created_at": "2015-11-03T00:53:54Z",
"updated_at": null,
"links": {
"self": {
"href": "/v3/packages/guid-a57fd932-85db-483a-a27e-b00efbb3b0a4"
},
"upload": {
"href": "/v3/packages/guid-a57fd932-85db-483a-a27e-b00efbb3b0a4/upload",
"method": "POST"
},
"download": {
"href": "/v3/packages/guid-a57fd932-85db-483a-a27e-b00efbb3b0a4/download",
"method": "GET"
},
"stage": {
"href": "/v3/packages/guid-a57fd932-85db-483a-a27e-b00efbb3b0a4/droplets",
"method": "POST"
},
"app": {
"href": "/v3/apps/guid-fa3558ce-1c4d-46fc-9776-54b9c8021745"
}
}
},
{
"guid": "guid-8f1f294d-cef8-4c11-9f0b-3bcdc0bd2691",
"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-03T00:53:54Z",
"updated_at": null,
"links": {
"self": {
"href": "/v3/packages/guid-8f1f294d-cef8-4c11-9f0b-3bcdc0bd2691"
},
"app": {
"href": "/v3/apps/guid-fa3558ce-1c4d-46fc-9776-54b9c8021745"
}
}
}
]
}
Headers