Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDR9.ntiTHYlcNbELy2pTsFUFP9pIsH0LWO3x6MMpPF0Uo-E
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDR9.ntiTHYlcNbELy2pTsFUFP9pIsH0LWO3x6MMpPF0Uo-E" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "buildpack": "name-1397",
  "created_at": "2015-09-30T23:30:44Z",
  "updated_at": null,
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b"
    },
    "space": {
      "href": "/v2/spaces/251e2608-7a34-49bf-b678-414d5f60e9ea"
    },
    "processes": {
      "href": "/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b/processes"
    },
    "routes": {
      "href": "/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b/routes"
    },
    "packages": {
      "href": "/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b/droplets"
    },
    "start": {
      "href": "/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-4c6003cc-91d4-47ed-8ab5-dca72e17051b/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 24331723-afdf-484a-84ec-30beecd5b75b
Content-Length: 1325
X-Content-Type-Options: nosniff