Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtODZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMn0.qzVBrmKli4Z0vbBugh2NZiE-BitNOjRb8AB2Jszcr3U
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtODZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMn0.qzVBrmKli4Z0vbBugh2NZiE-BitNOjRb8AB2Jszcr3U" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2015-05-07T23:37:12Z",
  "updated_at": null,
  "environment_variables": {
    "darkness": "ugly"
  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89"
    },
    "processes": {
      "href": "/v3/apps/guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89/packages"
    },
    "space": {
      "href": "/v2/spaces/cc901885-aec3-4a74-8338-87dae9124f9a"
    },
    "desired_droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "start": {
      "href": "/v3/apps/guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-36ca0381-2b3b-4a70-94f9-5c3b64092f89/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bc3e7855-405e-4830-ac92-cc0927f2ad23
Content-Length: 1109
X-Content-Type-Options: nosniff