Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMiIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0OTUzMTUxN30.PIn1fcBsDiMgpNAYek3qoTAn4GblCx4hqpkth11KNHM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMiIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0OTUzMTUxN30.PIn1fcBsDiMgpNAYek3qoTAn4GblCx4hqpkth11KNHM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-26e52407-4fdb-46ae-9423-81380cf63215",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2015-11-30T23:38:37Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-621",
      "stack": "name-622"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215"
    },
    "space": {
      "href": "/v2/spaces/ef75d752-75a3-476d-aa94-0fbc1153723b"
    },
    "processes": {
      "href": "/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-26e52407-4fdb-46ae-9423-81380cf63215/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.019913
Content-Length: 1421