Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNyIsImVtYWlsIjoiZW1haWwtMjEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5Mzl9.Z98x_zi5RTkh9hgSFzHNDClhLCOjfm4eNoK5-ZO_9do
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNyIsImVtYWlsIjoiZW1haWwtMjEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5Mzl9.Z98x_zi5RTkh9hgSFzHNDClhLCOjfm4eNoK5-ZO_9do" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-cf3247c0-f862-4e00-978c-84adde021dcb",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "buildpack": "name-2033",
  "created_at": "2015-10-07T00:35:39Z",
  "updated_at": null,
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb"
    },
    "space": {
      "href": "/v2/spaces/b53c6fa0-e45e-46a9-a84b-86b6588bfc1d"
    },
    "processes": {
      "href": "/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-cf3247c0-f862-4e00-978c-84adde021dcb/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 02fc25d9-7c3d-48cf-8db9-1e4fdf996e75
Content-Length: 1325
X-Content-Type-Options: nosniff