Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNCIsImVtYWlsIjoiZW1haWwtMTg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDJ9.L3n2LWtxJ_urPZE33aO2BnWNAgaOpzKG4vSMjOqpOl4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNCIsImVtYWlsIjoiZW1haWwtMTg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDJ9.L3n2LWtxJ_urPZE33aO2BnWNAgaOpzKG4vSMjOqpOl4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2016-03-14T22:30:42Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2005",
      "stack": "name-2006"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06"
    },
    "space": {
      "href": "/v2/spaces/d82f6284-a9bc-4262-a9bf-913a72953454"
    },
    "processes": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06/processes"
    },
    "route_mappings": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06/route_mappings"
    },
    "packages": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06/droplets"
    },
    "tasks": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06/tasks"
    },
    "start": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-e4681b57-e9bb-447c-9af8-3b7e2b563b06/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.020858
Content-Length: 1534