Home
Version 3
Apps API

Apps API

Get App summary

GET /v2/apps/:guid/summary

Request

Route

GET /v2/apps/0aa44697-6a32-475d-91cf-95ff99a5e50b/summary

Body

Name Description Default Valid Values Example Values
guid The guid of the app for which summary is requested
name The name of the app.
memory The amount of memory each instance should have. In megabytes.
instances The number of instances of the app to run.
disk_quota The maximum amount of disk available to an instance of an app. In megabytes.
space_guid The guid of the associated space.
stack_guid The guid of the associated stack. Uses the default system stack.
state The current state of the app. One of STOPPED or STARTED. STOPPED
  • STOPPED
  • STARTED
command The command to start an app after it is staged (e.g. 'rails s -p $PORT' or 'java com.org.Server $PORT').
buildpack Buildpack to build the app. 3 options: a) Blank means autodetection; b) A Git Url pointing to a buildpack; c) Name of an installed buildpack.
health_check_timeout Timeout for health checking of an staged app when starting up
environment_json Key/value pairs of all the environment variables to run in your app. Does not include any system or service variables.
detected_buildpack The autodetected buildpack that staged the app.
detected_buildpack_guid The guid of the autodetected admin buildpack that staged the app.
production Deprecated. true
  • true
  • false
console Open the console port for the app (at $CONSOLE_PORT). false
  • true
  • false
debug Open the debug port for the app (at $DEBUG_PORT). false
  • true
  • false
package_state The current state of the package. One of PENDING, STAGED or FAILED.
  • PENDING
  • STAGED
  • FAILED
package_updated_at Time when the package was last updated
system_env_json environment_json for system variables, contains vcap_services by default, a hash containing key/value pairs of the names and information of the services associated with your app.
staging_task_id Staging task id
running_instances The number of instances of the app that are currently running.
available_domain List of available domains configured for the app
routes List of routes configured for the app
version Version guid of the app
services List of services that are bound to the app

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODR9.7A0pPYvPhOEZYiilNzDlTEoC-p1uAV1d0IVX1fSXzhY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/0aa44697-6a32-475d-91cf-95ff99a5e50b/summary" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODR9.7A0pPYvPhOEZYiilNzDlTEoC-p1uAV1d0IVX1fSXzhY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "0aa44697-6a32-475d-91cf-95ff99a5e50b",
  "name": "name-545",
  "routes": [
    {
      "guid": "47196d70-346f-46b9-a60e-073c2bf565b3",
      "host": "host-16",
      "domain": {
        "guid": "d173e663-540f-4dc8-9b9f-e9e3fae007d9",
        "name": "domain-16.example.com"
      }
    }
  ],
  "running_instances": 0,
  "services": [
    {
      "guid": "6183d14d-f3a6-4929-85d2-fb1cfd1231bd",
      "name": "name-547",
      "bound_app_count": 1,
      "last_operation": null,
      "dashboard_url": null,
      "service_plan": {
        "guid": "7ad32b34-0d54-41c3-9274-eb8aec33f4cb",
        "name": "name-548",
        "service": {
          "guid": "4b5ecb69-3f36-435b-9b23-84b9d1b9a751",
          "label": "label-28",
          "provider": null,
          "version": null
        }
      }
    }
  ],
  "available_domains": [
    {
      "guid": "d173e663-540f-4dc8-9b9f-e9e3fae007d9",
      "name": "domain-16.example.com",
      "owning_organization_guid": "a368ac2c-be68-4c26-a6b7-a2b557b1dcb3"
    },
    {
      "guid": "ebcd406e-33bf-4071-bbad-e57826789410",
      "name": "customer-app-domain1.com",
      "router_group_guid": null
    },
    {
      "guid": "7fa49dbd-29f5-48b3-ad8d-9c3d6da2c403",
      "name": "customer-app-domain2.com",
      "router_group_guid": null
    }
  ],
  "production": false,
  "space_guid": "183021d2-6c59-4f78-82c3-2a79c29dc1b7",
  "stack_guid": "76a39d36-f950-48ae-b407-7050206c3527",
  "buildpack": null,
  "detected_buildpack": null,
  "environment_json": null,
  "memory": 1024,
  "instances": 1,
  "disk_quota": 1024,
  "state": "STOPPED",
  "version": "a589238d-4c7b-4fc3-9a94-2096790b66d9",
  "command": null,
  "console": false,
  "debug": null,
  "staging_task_id": null,
  "package_state": "PENDING",
  "health_check_type": "port",
  "health_check_timeout": null,
  "staging_failed_reason": null,
  "staging_failed_description": null,
  "diego": false,
  "docker_image": null,
  "package_updated_at": "2015-12-22T18:28:04Z",
  "detected_start_command": "",
  "enable_ssh": true,
  "docker_credentials_json": {
    "redacted_message": "[PRIVATE DATA HIDDEN]"
  },
  "ports": null
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1703
X-Content-Type-Options: nosniff