Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OCIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODV9.et2yrcZwPWlYc6CxPY1-03xY5RWUTgJmKkF0lSWKj4c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OCIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODV9.et2yrcZwPWlYc6CxPY1-03xY5RWUTgJmKkF0lSWKj4c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2015-12-22T18:28:04Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-593",
      "stack": "name-594"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef"
    },
    "space": {
      "href": "/v2/spaces/9227c628-8a93-4bfa-82b2-ee8bfbc90b20"
    },
    "processes": {
      "href": "/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-ea9d954f-4d54-4c75-b8e4-61c6e98209ef/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.014419
Content-Length: 1421