List associated droplets
GET /v3/apps/:guid/droplets
Request
Route
GET /v3/apps/guid-88bc00ad-85a9-4712-918a-25e4f6b6c5ba/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-88bc00ad-85a9-4712-918a-25e4f6b6c5ba/droplets?page=1&per_page=2&order_by=-created_at" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MyIsImVtYWlsIjoiZW1haWwtMzE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODZ9.Gj_-0CD61jeSWLTpPm8EdN254zdMQtSGAAAGz2Ux1_k" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"pagination": {
"total_results": 2,
"first": {
"href": "/v3/apps/guid-88bc00ad-85a9-4712-918a-25e4f6b6c5ba/droplets?order_by=-created_at&page=1&per_page=2"
},
"last": {
"href": "/v3/apps/guid-88bc00ad-85a9-4712-918a-25e4f6b6c5ba/droplets?order_by=-created_at&page=1&per_page=2"
},
"next": null,
"previous": null
},
"resources": [
{
"guid": "guid-b0e64b84-0395-45bd-bfd9-b6d39f800f46",
"state": "STAGED",
"error": null,
"lifecycle": {
"type": "buildpack",
"data": {
"buildpack": "name-2536",
"stack": "name-2537"
}
},
"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-01-19T19:41:26Z",
"links": {
"self": {
"href": "/v3/droplets/guid-b0e64b84-0395-45bd-bfd9-b6d39f800f46"
},
"package": {
"href": "/v3/packages/guid-4c424a0d-4529-42df-b495-3a182825cdfb"
},
"app": {
"href": "/v3/apps/guid-88bc00ad-85a9-4712-918a-25e4f6b6c5ba"
},
"assign_current_droplet": {
"href": "/v3/apps/guid-88bc00ad-85a9-4712-918a-25e4f6b6c5ba/current_droplet",
"method": "PUT"
}
}
},
{
"guid": "guid-f36da25c-4f48-4de4-b138-df3a9f398959",
"state": "STAGING",
"error": null,
"lifecycle": {
"type": "buildpack",
"data": {
"buildpack": "name-2534",
"stack": "name-2535"
}
},
"memory_limit": null,
"disk_limit": null,
"result": null,
"environment_variables": {
"yuu": "huuu"
},
"created_at": "1970-01-01T00:00:01Z",
"updated_at": "2016-01-19T19:41:26Z",
"links": {
"self": {
"href": "/v3/droplets/guid-f36da25c-4f48-4de4-b138-df3a9f398959"
},
"package": {
"href": "/v3/packages/guid-4c424a0d-4529-42df-b495-3a182825cdfb"
},
"app": {
"href": "/v3/apps/guid-88bc00ad-85a9-4712-918a-25e4f6b6c5ba"
},
"assign_current_droplet": {
"href": "/v3/apps/guid-88bc00ad-85a9-4712-918a-25e4f6b6c5ba/current_droplet",
"method": "PUT"
},
"buildpack": {
"href": "/v2/buildpacks/9c491e1f-fcbe-405d-a961-7407363706d1"
}
}
}
]
}
Headers