Get App summary
GET /v2/apps/:guid/summary
Request
Route
GET /v2/apps/bdd3d4a9-af2a-474c-8591-e3c282fc7d28/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/bdd3d4a9-af2a-474c-8591-e3c282fc7d28/summary" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2Nzh9.NvEvpIkkiCASTbLI9kfOL_BKPjaxLTUxX9y3CRUAdus" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"guid": "bdd3d4a9-af2a-474c-8591-e3c282fc7d28",
"name": "name-1018",
"routes": [
{
"guid": "1435992f-fc81-40c9-bc56-71f844571458",
"host": "host-17",
"path": "",
"domain": {
"guid": "f79e7af5-5bc9-412a-85c4-ed90ed2fdab2",
"name": "domain-39.example.com"
}
}
],
"running_instances": 0,
"services": [
{
"guid": "d0652041-460b-4f6e-886a-beb4b338da3e",
"name": "name-1020",
"bound_app_count": 1,
"last_operation": null,
"dashboard_url": null,
"service_plan": {
"guid": "1abdb1b5-e15a-49c4-8a97-274e98844df9",
"name": "name-1021",
"service": {
"guid": "fe7fd566-8440-4f18-9ef7-ef8f23e94fed",
"label": "label-30",
"provider": null,
"version": null
}
}
}
],
"available_domains": [
{
"guid": "f79e7af5-5bc9-412a-85c4-ed90ed2fdab2",
"name": "domain-39.example.com",
"owning_organization_guid": "181135ba-5e1f-46d5-93ae-5e48a75c238f"
},
{
"guid": "d349f6c6-de4c-49d0-9c66-fc9adf2d320e",
"name": "customer-app-domain1.com",
"router_group_guid": null,
"router_group_types": null
},
{
"guid": "5babfc9b-2889-4745-b51f-cb67fbfd4b3b",
"name": "customer-app-domain2.com",
"router_group_guid": null,
"router_group_types": null
}
],
"production": false,
"space_guid": "e97c136b-55b8-4d87-888f-6e5320b73667",
"stack_guid": "1e93b24d-5faa-4a4c-8184-9d7370a8140a",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "ae4d3fe8-9150-40d7-80fd-587e639f3dc1",
"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-03-17T21:41:18Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null
}
Headers