Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OSIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODN9.O9F1UqmtBcAVyo7k53cDXKX4fntm-dnbWv5UIVuXPeM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OSIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODN9.O9F1UqmtBcAVyo7k53cDXKX4fntm-dnbWv5UIVuXPeM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2016-01-19T19:41:23Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2401",
      "stack": "name-2402"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2"
    },
    "space": {
      "href": "/v2/spaces/c4f26f93-6da6-4cf6-83c9-fec597207c64"
    },
    "processes": {
      "href": "/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-2d62ec60-64bf-4dd7-a176-544a5b5ff7e2/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.017161
Content-Length: 1423