Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MCIsImVtYWlsIjoiZW1haWwtMzI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTR9.ZD6o7B_2kztgVs8Y9CYgWuv91USufsYUjVBhJgF1QYA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MCIsImVtYWlsIjoiZW1haWwtMzI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTR9.ZD6o7B_2kztgVs8Y9CYgWuv91USufsYUjVBhJgF1QYA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-b838891d-2bbd-442c-a1e7-f187b927d075",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "buildpack": "name-2482",
  "created_at": "2015-09-11T18:39:14Z",
  "updated_at": null,
  "environment_variables": {
    "unicorn": "horn"
  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075"
    },
    "space": {
      "href": "/v2/spaces/8698494e-0a9c-4ff5-bcb8-b25ee82e46e9"
    },
    "processes": {
      "href": "/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-b838891d-2bbd-442c-a1e7-f187b927d075/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 564b002b-00f1-4e6b-867b-b3e8db58c74e
Content-Length: 1326
X-Content-Type-Options: nosniff