Get App summary
GET /v2/apps/:guid/summary
Request
Route
GET /v2/apps/34143cb2-d8cd-42f5-9f80-d2858976a9e4/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
|
|
|
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
|
|
|
console
|
Open the console port for the app (at $CONSOLE_PORT).
|
false
|
|
|
debug
|
Open the debug port for the app (at $DEBUG_PORT).
|
false
|
|
|
package_state
|
The current state of the package. One of PENDING, STAGED or 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
cURL
curl "https://api.[your-domain.com]/v2/apps/34143cb2-d8cd-42f5-9f80-d2858976a9e4/summary" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDB9.bVEJMJZbos0ucYhMd2vOAO0oe4LVyyG9uiEw0FzE3oc" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"guid": "34143cb2-d8cd-42f5-9f80-d2858976a9e4",
"name": "name-2051",
"routes": [
{
"guid": "953e34c7-7754-4c19-b8f7-ccf4027b583e",
"host": "host-19",
"domain": {
"guid": "c41cb062-43c8-4fd7-8156-d48dfed7f004",
"name": "domain-43.example.com"
}
}
],
"running_instances": 0,
"services": [
{
"guid": "429fb835-a35b-43b9-aaf8-b24829df01b2",
"name": "name-2053",
"bound_app_count": 1,
"last_operation": null,
"dashboard_url": null,
"service_plan": {
"guid": "7f630d47-bc4c-4b64-a2d6-27d3ff970ae6",
"name": "name-2054",
"service": {
"guid": "282b4719-0d3c-4a69-896a-fcbdc4a91b1b",
"label": "label-58",
"provider": null,
"version": null
}
}
}
],
"available_domains": [
{
"guid": "c41cb062-43c8-4fd7-8156-d48dfed7f004",
"name": "domain-43.example.com",
"owning_organization_guid": "f5169971-77a9-4038-97c2-d6f68616759f"
},
{
"guid": "bd13a981-7d26-4ba6-9447-c204df595f38",
"name": "customer-app-domain1.com",
"router_group_guid": null
},
{
"guid": "fc08231c-3ac7-499f-b15c-97641a8ff7c6",
"name": "customer-app-domain2.com",
"router_group_guid": null
}
],
"production": false,
"space_guid": "8c502c28-c662-4a1e-839d-578a9b18a4e5",
"stack_guid": "b62183c0-86e1-494a-ad30-1e76ad138e11",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "b951297f-9f6a-4716-9141-5cbc5c08e407",
"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-10-07T00:35:40Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
}
}
Headers