List associated droplets
GET /v3/apps/:guid/droplets
Request
Route
GET /v3/apps/guid-8651d464-a529-483a-90dc-bc6eacaba64d/droplets?page=1&per_page=2&order_by=-created_at
Parameters
Name |
Description |
Valid Values |
Example Values |
states
|
Droplet state to filter by
|
- PENDING
- STAGING
- STAGED
- FAILED
- EXPIRED
|
|
page
|
Page to display
|
|
|
per_page
|
Number of results per page
|
|
|
order_by
|
Value to sort by. Prepend with "+" or "-" to change sort direction to ascending or descending, respectively.
|
|
|
page: 1
per_page: 2
order_by: -created_at
Headers
cURL
curl "https://api.[your-domain.com]/v3/apps/guid-8651d464-a529-483a-90dc-bc6eacaba64d/droplets?page=1&per_page=2&order_by=-created_at" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk3IiwiZW1haWwiOiJlbWFpbC05NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI5fQ.F6r6DNs8gyBGl9aA_MurShNXRqHVY3XokIr7Xfzj8sk" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"pagination": {
"total_results": 2,
"first": {
"href": "/v3/apps/guid-8651d464-a529-483a-90dc-bc6eacaba64d/droplets?order_by=-created_at&page=1&per_page=2"
},
"last": {
"href": "/v3/apps/guid-8651d464-a529-483a-90dc-bc6eacaba64d/droplets?order_by=-created_at&page=1&per_page=2"
},
"next": null,
"previous": null
},
"resources": [
{
"guid": "guid-f0b1c386-9b9e-4a83-bfde-5a36dc283c01",
"state": "STAGED",
"error": null,
"lifecycle": {
"type": "buildpack",
"data": {
"buildpack": "name-662",
"stack": "name-663"
}
},
"memory_limit": null,
"disk_limit": null,
"result": {
"execution_metadata": null,
"process_types": "{\"web\":\"started\"}",
"hash": {
"type": "sha1",
"value": "my-hash"
},
"buildpack": "https://github.com/cloudfoundry/my-buildpack.git",
"stack": null
},
"environment_variables": {
},
"created_at": "1970-01-01T00:00:02Z",
"updated_at": "2016-02-19T02:03:49Z",
"links": {
"self": {
"href": "/v3/droplets/guid-f0b1c386-9b9e-4a83-bfde-5a36dc283c01"
},
"package": {
"href": "/v3/packages/guid-8bc913cd-a5ec-4417-88c7-04daf4064101"
},
"app": {
"href": "/v3/apps/guid-8651d464-a529-483a-90dc-bc6eacaba64d"
},
"assign_current_droplet": {
"href": "/v3/apps/guid-8651d464-a529-483a-90dc-bc6eacaba64d/current_droplet",
"method": "PUT"
}
}
},
{
"guid": "guid-bcc21f08-e3a0-49d7-95e9-621fa9ef1bbf",
"state": "STAGING",
"error": null,
"lifecycle": {
"type": "buildpack",
"data": {
"buildpack": "name-660",
"stack": "name-661"
}
},
"memory_limit": null,
"disk_limit": null,
"result": null,
"environment_variables": {
"yuu": "huuu"
},
"created_at": "1970-01-01T00:00:01Z",
"updated_at": "2016-02-19T02:03:49Z",
"links": {
"self": {
"href": "/v3/droplets/guid-bcc21f08-e3a0-49d7-95e9-621fa9ef1bbf"
},
"package": {
"href": "/v3/packages/guid-8bc913cd-a5ec-4417-88c7-04daf4064101"
},
"app": {
"href": "/v3/apps/guid-8651d464-a529-483a-90dc-bc6eacaba64d"
},
"assign_current_droplet": {
"href": "/v3/apps/guid-8651d464-a529-483a-90dc-bc6eacaba64d/current_droplet",
"method": "PUT"
},
"buildpack": {
"href": "/v2/buildpacks/c03f841e-699b-46f9-b381-1397cfd64c71"
}
}
}
]
}
Headers