Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-848d7c5f-f40b-482a-905e-d4b539b99822

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTF9.Dcrd8fK-6s5m4QWGbQCLOS4fEqdy3DZoTSLpCJJmrcQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-848d7c5f-f40b-482a-905e-d4b539b99822" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTF9.Dcrd8fK-6s5m4QWGbQCLOS4fEqdy3DZoTSLpCJJmrcQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-848d7c5f-f40b-482a-905e-d4b539b99822",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2015-06-04T00:05:11Z",
  "updated_at": null,
  "environment_variables": {
    "darkness": "ugly"
  },
  "_links": {
    "self": {
      "href": "/v3/apps/guid-848d7c5f-f40b-482a-905e-d4b539b99822"
    },
    "processes": {
      "href": "/v3/apps/guid-848d7c5f-f40b-482a-905e-d4b539b99822/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-848d7c5f-f40b-482a-905e-d4b539b99822/packages"
    },
    "space": {
      "href": "/v2/spaces/7928101b-6518-486f-bee7-fb561588aa25"
    },
    "desired_droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "start": {
      "href": "/v3/apps/guid-848d7c5f-f40b-482a-905e-d4b539b99822/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-848d7c5f-f40b-482a-905e-d4b539b99822/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-848d7c5f-f40b-482a-905e-d4b539b99822/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4aebb9c0-e61a-4e7f-8ca5-eab8ae963ca5
Content-Length: 1109
X-Content-Type-Options: nosniff