Home
Version 3
Droplets (Experimental) API

Droplets (Experimental) API

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
  • >= 1
per_page Number of results per page
  • 1-5000
page: 1
per_page: 2

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjV9.2CxvkeMwQVvd8O2u_7mD0FM4-_h_84Zw5kUzoLGZydM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/droplets?page=1&per_page=2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjV9.2CxvkeMwQVvd8O2u_7mD0FM4-_h_84Zw5kUzoLGZydM" \
	-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-62053ffd-f2d1-4d53-8e3b-41929467d1d7",
      "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-15T16:53:45Z",
      "updated_at": null,
      "_links": {
        "self": {
          "href": "/v3/droplets/guid-62053ffd-f2d1-4d53-8e3b-41929467d1d7"
        },
        "package": {
          "href": "/v3/packages/guid-2e365343-6e2a-4b24-890c-77181081f88f"
        },
        "app": {
          "href": "/v3/apps/guid-dbe7e96b-2b8f-4d06-aee4-95ccad587b5c"
        },
        "buildpack": {
          "href": "/v2/buildpacks/ee589f2e-8ff9-4f93-a364-12bd7f515b83"
        }
      }
    },
    {
      "guid": "guid-1b423263-6e0b-451d-b4bb-14ec485c5033",
      "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-15T16:53:45Z",
      "updated_at": null,
      "_links": {
        "self": {
          "href": "/v3/droplets/guid-1b423263-6e0b-451d-b4bb-14ec485c5033"
        },
        "package": {
          "href": "/v3/packages/guid-2e365343-6e2a-4b24-890c-77181081f88f"
        },
        "app": {
          "href": "/v3/apps/guid-dbe7e96b-2b8f-4d06-aee4-95ccad587b5c"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 13b2a50b-325a-419e-bd12-7b385a278032
Content-Length: 1805
X-Content-Type-Options: nosniff