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-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec&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-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec
states: STAGED,FAILED
page: 1
per_page: 2
order_by: -created_at

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTF9.vpg6ufxSZZdt0e791KljXE_O6JPiNdCa90H1Ny-YPkI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/droplets?app_guids=guid-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec&states=STAGED%2CFAILED&page=1&per_page=2&order_by=-created_at" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTF9.vpg6ufxSZZdt0e791KljXE_O6JPiNdCa90H1Ny-YPkI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/droplets?app_guids=guid-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec&order_by=-created_at&page=1&per_page=2&states=STAGED%2CFAILED"
    },
    "last": {
      "href": "/v3/droplets?app_guids=guid-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec&order_by=-created_at&page=1&per_page=2&states=STAGED%2CFAILED"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-3c9b3ec3-0ff9-4c66-9bba-23c172354b96",
      "state": "FAILED",
      "error": null,
      "lifecycle": null,
      "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": null,
      "links": {
        "self": {
          "href": "/v3/droplets/guid-3c9b3ec3-0ff9-4c66-9bba-23c172354b96"
        },
        "package": {
          "href": "/v3/packages/guid-6e1dfc81-0091-47a4-9231-88f4dcd81b21"
        },
        "app": {
          "href": "/v3/apps/guid-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec"
        },
        "assign_current_droplet": {
          "href": "/v3/apps/guid-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec/current_droplet",
          "method": "PUT"
        }
      }
    },
    {
      "guid": "guid-74c24be7-ed4c-45e3-abba-4dd1362fb4b2",
      "state": "STAGED",
      "error": null,
      "lifecycle": {
        "type": "buildpack",
        "data": {
          "buildpack": "https://github.com/cloudfoundry/requested-buildpack.git",
          "stack": null
        }
      },
      "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": null,
      "links": {
        "self": {
          "href": "/v3/droplets/guid-74c24be7-ed4c-45e3-abba-4dd1362fb4b2"
        },
        "package": {
          "href": "/v3/packages/guid-6e1dfc81-0091-47a4-9231-88f4dcd81b21"
        },
        "app": {
          "href": "/v3/apps/guid-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec"
        },
        "assign_current_droplet": {
          "href": "/v3/apps/guid-ab6a873e-8e3d-4c15-adc1-17f5a0c3feec/current_droplet",
          "method": "PUT"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6d4ddfd0-da46-4151-b368-55b564d28c22
Content-Length: 2815
X-Content-Type-Options: nosniff