Home
Version 3
Droplets (Experimental) API

Droplets (Experimental) API

Get a Droplet

GET /v3/droplets/:guid

Request

Route

GET /v3/droplets/guid-c2e7780a-62e9-44ec-8e44-1d7005c54e2b

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NCIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1MzV9.EVVNUNykkdc23Is_4TmEJ92FMBOIvLt4ciKYZlzjBos
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/droplets/guid-c2e7780a-62e9-44ec-8e44-1d7005c54e2b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NCIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1MzV9.EVVNUNykkdc23Is_4TmEJ92FMBOIvLt4ciKYZlzjBos" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-c2e7780a-62e9-44ec-8e44-1d7005c54e2b",
  "state": "STAGED",
  "hash": {
    "type": "sha1",
    "value": null
  },
  "buildpack": "http://buildpack.git.url.com",
  "error": "example error",
  "procfile": null,
  "environment_variables": {
    "cloud": "foundry"
  },
  "created_at": "2015-09-11T18:38:55Z",
  "updated_at": null,
  "_links": {
    "self": {
      "href": "/v3/droplets/guid-c2e7780a-62e9-44ec-8e44-1d7005c54e2b"
    },
    "package": {
      "href": "/v3/packages/guid-4840954b-5fb6-4328-adf6-d267e9acaad3"
    },
    "app": {
      "href": "/v3/apps/guid-9f056210-7bd5-4587-92cd-ed4b2f8e5b44"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-9f056210-7bd5-4587-92cd-ed4b2f8e5b44/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 47690a07-6bd9-4253-9641-e5f161b276a9
Content-Length: 784
X-Content-Type-Options: nosniff