Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get an App

GET /v3/apps/:guid

Request

Route

GET /v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2OTB9.y4PVPF9Qw_TZsS3zbkfV765XJQjYfOge6SU66CfO9gE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2OTB9.y4PVPF9Qw_TZsS3zbkfV765XJQjYfOge6SU66CfO9gE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-e9627412-85ef-459d-bb28-809a1386b04c",
  "name": "my_app",
  "desired_state": "STOPPED",
  "total_desired_instances": 3,
  "created_at": "2016-03-17T21:41:30Z",
  "updated_at": null,
  "lifecycle": {
    "type": "buildpack",
    "data": {
      "buildpack": "name-2441",
      "stack": "name-2442"
    }
  },
  "environment_variables": {
    "unicorn": "horn"
  },
  "links": {
    "self": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c"
    },
    "space": {
      "href": "/v2/spaces/3c9df48a-06d5-4d00-9c2e-067cded7ed38"
    },
    "processes": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c/processes"
    },
    "route_mappings": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c/route_mappings"
    },
    "packages": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c/packages"
    },
    "droplet": {
      "href": "/v3/droplets/a-droplet-guid"
    },
    "droplets": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c/droplets"
    },
    "tasks": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c/tasks"
    },
    "start": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c/start",
      "method": "PUT"
    },
    "stop": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c/stop",
      "method": "PUT"
    },
    "assign_current_droplet": {
      "href": "/v3/apps/guid-e9627412-85ef-459d-bb28-809a1386b04c/current_droplet",
      "method": "PUT"
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.015413
Content-Length: 1534