Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC00MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc2fQ.66GbaY2fNB60zccvjk3USuL67qxivYSIk3zj6lxgqQw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC00MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc2fQ.66GbaY2fNB60zccvjk3USuL67qxivYSIk3zj6lxgqQw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "buildpack": "name-188",
  "created_at": "2015-07-06T23:22:55Z",
  "updated_at": null,
  "environment_variables": {
    "unicorn": "horn"
  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5"
    },
    "processes": {
      "href": "/v3/apps/guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5/packages"
    },
    "space": {
      "href": "/v2/spaces/d721dd58-444e-4bf3-875c-ab5612dfd022"
    },
    "desired_droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "start": {
      "href": "/v3/apps/guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-8b981ea9-8be3-49bd-a0c9-df8fc4d62fe5/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0adc3baf-c75b-4163-9545-fc1d5e8eea66
Content-Length: 1135
X-Content-Type-Options: nosniff