Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMiIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5ODB9.C1BTc40GyjGKcZL2AD10UgT9ca-TDMSkV-ICgRQU-6o
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMiIsImVtYWlsIjoiZW1haWwtMTM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5ODB9.C1BTc40GyjGKcZL2AD10UgT9ca-TDMSkV-ICgRQU-6o" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-447f042e-a086-4bac-b96b-ff65a6194f0c",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2016-01-13T17:29:40Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-600",
      "stack": "name-601"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c"
    },
    "space": {
      "href": "/v2/spaces/2cdfaf78-aae1-4797-a937-299f8dc876a0"
    },
    "processes": {
      "href": "/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-447f042e-a086-4bac-b96b-ff65a6194f0c/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.014141
Content-Length: 1421