Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjV9.OoOOlvidDHeIqo5CZeGKhkIILfgPCxYtpPMpXGKGVNM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjV9.OoOOlvidDHeIqo5CZeGKhkIILfgPCxYtpPMpXGKGVNM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2015-06-16T23:41:05Z",
  "updated_at": null,
  "environment_variables": {
    "darkness": "ugly"
  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a"
    },
    "processes": {
      "href": "/v3/apps/guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a/packages"
    },
    "space": {
      "href": "/v2/spaces/ccecdb03-2ece-42fc-a755-8917ed2a61c3"
    },
    "desired_droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "start": {
      "href": "/v3/apps/guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-2bcdb308-c46c-423a-a5ef-e43bd676d57a/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ef613f2d-210a-45fb-90c5-bea6e506ee32
Content-Length: 1109
X-Content-Type-Options: nosniff