Home
Version 3
Droplets (Experimental) API

Droplets (Experimental) API

Filters Droplets by states, app_guids

GET /v3/droplets

Request

Route

GET /v3/droplets?app_guids=guid-15d3b873-c812-4855-8628-b773c64e6503&states=STAGED%2CFAILED&page=1&per_page=2&order_by=-created_at

Parameters

Name Description Valid Values Example Values
app_guids Apps to filter by
  • app guids
  • app_guids=app_guid1,app_guid2
states Droplet state to filter by
  • PENDING
  • STAGING
  • STAGED
  • FAILED
  • states=PENDING,STAGING
page Page to display
  • >= 1
per_page Number of results per page
  • 1-5000
order_by Value to sort by. Prepend with "+" or "-" to change sort direction to ascending or descending, respectively.
  • created_at
  • updated_at
app_guids: guid-15d3b873-c812-4855-8628-b773c64e6503
states: STAGED,FAILED
page: 1
per_page: 2
order_by: -created_at

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MSIsImVtYWlsIjoiZW1haWwtMjQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NjZ9.XLkPwdMg-1KH19nnFwmcygcRoIS6R8bBwGC4NR7GsI4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/droplets?app_guids=guid-15d3b873-c812-4855-8628-b773c64e6503&states=STAGED%2CFAILED&page=1&per_page=2&order_by=-created_at" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MSIsImVtYWlsIjoiZW1haWwtMjQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NjZ9.XLkPwdMg-1KH19nnFwmcygcRoIS6R8bBwGC4NR7GsI4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/droplets?app_guids=guid-15d3b873-c812-4855-8628-b773c64e6503&order_by=-created_at&page=1&per_page=2&states=STAGED%2CFAILED"
    },
    "last": {
      "href": "/v3/droplets?app_guids=guid-15d3b873-c812-4855-8628-b773c64e6503&order_by=-created_at&page=1&per_page=2&states=STAGED%2CFAILED"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-3077c426-0d6c-4775-bbc0-e9a24cf94913",
      "state": "FAILED",
      "error": null,
      "lifecycle": {
        "type": "buildpack",
        "data": {
          "buildpack": "name-1914",
          "stack": "name-1915"
        }
      },
      "memory_limit": null,
      "disk_limit": null,
      "result": {
        "buildpack": "https://github.com/cloudfoundry/my-buildpack.git",
        "stack": null,
        "process_types": null,
        "hash": {
          "type": "sha1",
          "value": "my-hash"
        },
        "execution_metadata": null
      },
      "environment_variables": {

      },
      "created_at": "1970-01-01T00:00:02Z",
      "updated_at": "2015-11-13T17:02:46Z",
      "links": {
        "self": {
          "href": "/v3/droplets/guid-3077c426-0d6c-4775-bbc0-e9a24cf94913"
        },
        "package": {
          "href": "/v3/packages/guid-c2f9a00b-7fe0-4578-b611-b645b44491cd"
        },
        "app": {
          "href": "/v3/apps/guid-15d3b873-c812-4855-8628-b773c64e6503"
        },
        "assign_current_droplet": {
          "href": "/v3/apps/guid-15d3b873-c812-4855-8628-b773c64e6503/current_droplet",
          "method": "PUT"
        }
      }
    },
    {
      "guid": "guid-dbde1583-4fe5-4659-b4cf-8043eacd76be",
      "state": "STAGED",
      "error": null,
      "lifecycle": {
        "type": "buildpack",
        "data": {
          "buildpack": "name-1908",
          "stack": "name-1909"
        }
      },
      "memory_limit": 123,
      "disk_limit": 456,
      "result": {
        "buildpack": "https://github.com/cloudfoundry/detected-buildpack.git",
        "stack": null,
        "process_types": {
          "web": "started"
        },
        "hash": {
          "type": "sha1",
          "value": "my-hash"
        },
        "execution_metadata": "black-box-secrets"
      },
      "environment_variables": {

      },
      "created_at": "1970-01-01T00:00:02Z",
      "updated_at": "2015-11-13T17:02:46Z",
      "links": {
        "self": {
          "href": "/v3/droplets/guid-dbde1583-4fe5-4659-b4cf-8043eacd76be"
        },
        "package": {
          "href": "/v3/packages/guid-c2f9a00b-7fe0-4578-b611-b645b44491cd"
        },
        "app": {
          "href": "/v3/apps/guid-15d3b873-c812-4855-8628-b773c64e6503"
        },
        "assign_current_droplet": {
          "href": "/v3/apps/guid-15d3b873-c812-4855-8628-b773c64e6503/current_droplet",
          "method": "PUT"
        }
      }
    }
  ]
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.015070
Content-Length: 2941