Get App summary
GET /v2/apps/:guid/summary
Fields
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
|
|
|
|
Request
Headers
Route
GET /v2/apps/d4643f02-cf12-4429-8d3b-1492ed65b699/summary
cURL
curl "https://api.[your-domain.com]/v2/apps/d4643f02-cf12-4429-8d3b-1492ed65b699/summary" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OSIsImVtYWlsIjoiZW1haWwtMjYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDh9.473rOX7hvCXOXUomtScQi4GXotOdeFRr5QvPEr88lKk" \
-H "Host: example.org" \
-H "Cookie: "
Response
Headers
Status
200 OK
Body
{"guid":"d4643f02-cf12-4429-8d3b-1492ed65b699","name":"name-1957","routes":[{"guid":"f4474bea-b019-448c-94d1-fc2f08ae14ec","host":"host-10","domain":{"guid":"700d88ce-340f-41bc-a0e5-077a18485ae6","name":"domain-47.example.com"}}],"running_instances":0,"services":[{"guid":"a68ec5a6-6801-4540-9fad-5048b555b672","name":"name-1959","bound_app_count":1,"last_operation":null,"dashboard_url":null,"service_plan":{"guid":"440205e2-eb5c-434d-b308-dacde12190f9","name":"name-1960","service":{"guid":"b62e44ee-b193-440f-9ec4-30f221160aac","label":"label-76","provider":null,"version":null}}}],"available_domains":[{"guid":"700d88ce-340f-41bc-a0e5-077a18485ae6","name":"domain-47.example.com","owning_organization_guid":"40cdc16d-a721-448c-956b-3b003048c5ac"},{"guid":"22c877fe-017b-4379-b32e-425c5a7ceece","name":"customer-app-domain1.com"},{"guid":"53fc975f-5bac-405a-bed6-d7c60d1a2be5","name":"customer-app-domain2.com"}],"name":"name-1957","production":false,"space_guid":"eb01f9b1-054b-41c8-84a5-3aa1cbac6f6d","stack_guid":"07e032ec-c650-4a23-ad61-f325e3832dab","buildpack":null,"detected_buildpack":null,"environment_json":null,"memory":1024,"instances":1,"disk_quota":1024,"state":"STOPPED","version":"85bb5a5f-eed0-4a17-81e7-267a7e44458a","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,"diego":false,"docker_image":null,"package_updated_at":"2015-02-13T22:35:08Z","detected_start_command":""}