Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NzExNjgyNH0.Prj_MNMSdA_A-T64rPYEaAu3c5Y8dTSI_Af7giy4q5s
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NzExNjgyNH0.Prj_MNMSdA_A-T64rPYEaAu3c5Y8dTSI_Af7giy4q5s" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-903be630-6fb3-4a59-bb00-a3408036f399",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2015-11-03T00:53:44Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-48",
      "stack": "name-49"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399"
    },
    "space": {
      "href": "/v2/spaces/002721ea-527e-4335-9656-6f040edcabe3"
    },
    "processes": {
      "href": "/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-903be630-6fb3-4a59-bb00-a3408036f399/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 39cee766-981d-43ed-b25f-1e368e4b67b9
Content-Length: 1419
X-Content-Type-Options: nosniff