Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMiIsImVtYWlsIjoiZW1haWwtMzAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzV9.SC6GVHg2akjTi5GotF1dMD16W94mddMx_KTKGEN1UHM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMiIsImVtYWlsIjoiZW1haWwtMzAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzV9.SC6GVHg2akjTi5GotF1dMD16W94mddMx_KTKGEN1UHM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2016-01-26T22:20:35Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2431",
      "stack": "name-2432"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6"
    },
    "space": {
      "href": "/v2/spaces/d6a87ffd-2655-4655-b5f1-e64627a419fc"
    },
    "processes": {
      "href": "/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-cad6a8b6-a0dc-4bb1-a5a8-095dd29cb6d6/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.018149
Content-Length: 1423