Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjIwfQ.JfluA2oz3hDG2UWL7r2fJhjXa4O4nDJ6APyQSHZ_ZDg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjIwfQ.JfluA2oz3hDG2UWL7r2fJhjXa4O4nDJ6APyQSHZ_ZDg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2016-02-19T02:03:40Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-88",
      "stack": "name-89"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb"
    },
    "space": {
      "href": "/v2/spaces/5aab270e-7ce5-4917-b683-73e64da602b3"
    },
    "processes": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb/processes"
    },
    "route_mappings": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb/route_mappings"
    },
    "packages": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb/droplets"
    },
    "tasks": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb/tasks"
    },
    "start": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-1aca5e3a-6331-4d7e-b8eb-ca6834bb6feb/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.013686
Content-Length: 1530