Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMyIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5OH0.TWgVX7U9gs9haLDAoelu1JRssjgI-1H3EP-JwXqwnaI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMyIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5OH0.TWgVX7U9gs9haLDAoelu1JRssjgI-1H3EP-JwXqwnaI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-fcfb555c-3825-4c43-a52e-6562fdf3c097",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "buildpack": "name-363",
  "created_at": "2015-08-31T21:49:58Z",
  "updated_at": null,
  "environment_variables": {
    "unicorn": "horn"
  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097"
    },
    "space": {
      "href": "/v2/spaces/083b9130-583f-4d2e-84e6-58c409266fde"
    },
    "processes": {
      "href": "/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-fcfb555c-3825-4c43-a52e-6562fdf3c097/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0655c11f-58c3-4bb7-994b-236aca66ae27
Content-Length: 1325
X-Content-Type-Options: nosniff