Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NCIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTJ9.iL1khHjRRtNdf2z9p9sI7eOnO_X-iSVFgMCfMFSmxsg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NCIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTJ9.iL1khHjRRtNdf2z9p9sI7eOnO_X-iSVFgMCfMFSmxsg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "buildpack": "name-2068",
  "created_at": "2015-08-06T00:36:52Z",
  "updated_at": null,
  "environment_variables": {
    "unicorn": "horn"
  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20"
    },
    "space": {
      "href": "/v2/spaces/ac9ba292-9412-486a-b680-5deae6871f9e"
    },
    "processes": {
      "href": "/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-a2ea0b27-971f-4f59-a9e4-d299e96c3f20/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6b06f72b-985d-48dc-a0c3-a9200a0c01fb
Content-Length: 1326
X-Content-Type-Options: nosniff