List all Droplets
GET /v3/droplets
Request
Route
GET /v3/droplets?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
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v3/droplets?page=1&per_page=2" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMSIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzR9.p_8uiwpA19qDDL11l9EsyFZ5TWG-daPQTcedo_e0-vk" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"pagination": {
"total_results": 2,
"first": {
"href": "/v3/droplets?page=1&per_page=2"
},
"last": {
"href": "/v3/droplets?page=1&per_page=2"
},
"next": null,
"previous": null
},
"resources": [
{
"guid": "guid-94f468c7-22d6-4179-baa9-efb8a3481a86",
"state": "STAGING",
"hash": null,
"buildpack_git_url": null,
"failure_reason": null,
"detected_start_command": null,
"procfile": null,
"environment_variables": {
"yuu": "huuu"
},
"created_at": "2015-05-07T23:37:14Z",
"updated_at": null,
"_links": {
"self": {
"href": "/v3/droplets/guid-94f468c7-22d6-4179-baa9-efb8a3481a86"
},
"package": {
"href": "/v3/packages/guid-111d4e3c-d691-4701-8e16-856b4e82a873"
},
"app": {
"href": "/v3/apps/guid-ef17f181-9310-4f77-b905-fd33d3de4190"
},
"buildpack": {
"href": "/v2/buildpacks/7333ceb0-f7c1-4329-8405-a9013826021a"
}
}
},
{
"guid": "guid-3da148f4-db60-44c7-8f7f-5b90404aa1de",
"state": "STAGED",
"hash": "my-hash",
"buildpack_git_url": "https://github.com/cloudfoundry/my-buildpack.git",
"failure_reason": null,
"detected_start_command": null,
"procfile": null,
"environment_variables": {
},
"created_at": "2015-05-07T23:37:14Z",
"updated_at": null,
"_links": {
"self": {
"href": "/v3/droplets/guid-3da148f4-db60-44c7-8f7f-5b90404aa1de"
},
"package": {
"href": "/v3/packages/guid-111d4e3c-d691-4701-8e16-856b4e82a873"
},
"app": {
"href": "/v3/apps/guid-ef17f181-9310-4f77-b905-fd33d3de4190"
}
}
}
]
}
Headers