Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-e23c9834-9c4a-4397-be7d-e0fb686cb646

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MCIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTV9.SRJdD6LG3mflqGtqHyrk-JtClGTj_rHFrcBC2nM38Ro
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-e23c9834-9c4a-4397-be7d-e0fb686cb646" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MCIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTV9.SRJdD6LG3mflqGtqHyrk-JtClGTj_rHFrcBC2nM38Ro" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-e23c9834-9c4a-4397-be7d-e0fb686cb646",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "buildpack": "name-371",
  "created_at": "2015-07-27T22:43:15Z",
  "updated_at": null,
  "environment_variables": {
    "unicorn": "horn"
  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-e23c9834-9c4a-4397-be7d-e0fb686cb646"
    },
    "processes": {
      "href": "/v3/apps/guid-e23c9834-9c4a-4397-be7d-e0fb686cb646/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-e23c9834-9c4a-4397-be7d-e0fb686cb646/packages"
    },
    "space": {
      "href": "/v2/spaces/6776a2d8-ef86-4760-a51e-f2b24b27d019"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "start": {
      "href": "/v3/apps/guid-e23c9834-9c4a-4397-be7d-e0fb686cb646/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-e23c9834-9c4a-4397-be7d-e0fb686cb646/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-e23c9834-9c4a-4397-be7d-e0fb686cb646/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 55a9b16f-e62f-498c-86cb-16b3920737f9
Content-Length: 1127
X-Content-Type-Options: nosniff