Get App summary
GET /v2/apps/:guid/summary
Request
Route
GET /v2/apps/319cd5a3-09db-42b1-b71d-709bc570a3a7/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/319cd5a3-09db-42b1-b71d-709bc570a3a7/summary" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NSIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDJ9.fObmF7r39cMmI_Uazwqpge6oaf6CxjKQ5pS7UFxFpA0" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"guid": "319cd5a3-09db-42b1-b71d-709bc570a3a7",
"name": "name-2342",
"routes": [
{
"guid": "84a911b3-16f7-4f47-afa4-581c86018600",
"host": "host-20",
"path": "",
"domain": {
"guid": "bc102838-ebd6-448e-8ea1-63f9b490dc7c",
"name": "domain-48.example.com"
}
}
],
"running_instances": 0,
"services": [
{
"guid": "28aa8270-ab0e-480d-b9b6-ba4ec4f15015",
"name": "name-2344",
"bound_app_count": 1,
"last_operation": null,
"dashboard_url": null,
"service_plan": {
"guid": "d22b3754-d093-42a2-a294-5fda6c6db44c",
"name": "name-2345",
"service": {
"guid": "67229bc6-8fc9-4fe1-b8bc-8790cdae5334",
"label": "label-53",
"provider": null,
"version": null
}
}
}
],
"available_domains": [
{
"guid": "bc102838-ebd6-448e-8ea1-63f9b490dc7c",
"name": "domain-48.example.com",
"owning_organization_guid": "adee2ddb-8fa9-44cb-80f8-9c7f1589534c"
},
{
"guid": "e39933ad-2265-4d24-bf94-c962b2d60438",
"name": "customer-app-domain1.com",
"router_group_guid": null,
"router_group_types": null
},
{
"guid": "d664430b-1406-4d22-bc74-293581d36f0b",
"name": "customer-app-domain2.com",
"router_group_guid": null,
"router_group_types": null
}
],
"production": false,
"space_guid": "c79071fc-3e74-4d3e-912f-782b3433ccc3",
"stack_guid": "19fb9562-b371-44e5-b008-09d3e34c2041",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "9e3484a4-6228-41a7-a1f1-e2d16cb43876",
"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": "2016-02-19T02:04:02Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null
}
Headers