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/d654eb3a-e21e-4b0c-a62a-9a7f8e4fe1c2/summary
cURL
curl "https://api.[your-domain.com]/v2/apps/d654eb3a-e21e-4b0c-a62a-9a7f8e4fe1c2/summary" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OCIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDJ9.O-BBOk21zvIR6EpJJ8edl-WeGw_Wza7eYC3gagyhS8Y" \
-H "Host: example.org" \
-H "Cookie: "
Response
Headers
Status
200 OK
Body
{"guid":"d654eb3a-e21e-4b0c-a62a-9a7f8e4fe1c2","name":"name-1368","routes":[{"guid":"b563066d-c6fd-401e-8a38-723040583472","host":"host-12","domain":{"guid":"72eb8972-570f-442d-b4cc-3a6bbdf5e26b","name":"domain-27.example.com"}}],"running_instances":0,"services":[{"guid":"bd1ae82a-a4a0-4dd1-92e8-b2237009ac1e","name":"name-1370","bound_app_count":1,"dashboard_url":null,"service_plan":{"guid":"aeb12059-8ce6-4e61-b6e8-c0edcd3ecb5e","name":"name-1371","service":{"guid":"d35f83f9-eeae-421b-9a89-92aab6a597f4","label":"label-31","provider":"provider-22","version":"version-22"}}}],"available_domains":[{"guid":"72eb8972-570f-442d-b4cc-3a6bbdf5e26b","name":"domain-27.example.com","owning_organization_guid":"0f45520c-e3b1-4ce1-aa3b-80721d8fb1b1"},{"guid":"626ae416-700c-4a54-81a8-961c8d86df24","name":"customer-app-domain1.com"},{"guid":"86159d7d-4806-44c8-99ba-866fdb507f86","name":"customer-app-domain2.com"}],"name":"name-1368","production":false,"space_guid":"e2d49b73-138d-4aeb-9f1a-f7a649b06e90","stack_guid":"cf94dde0-4be2-4471-bb30-d4a8665ca0fa","buildpack":null,"detected_buildpack":null,"environment_json":null,"memory":1024,"instances":1,"disk_quota":1024,"state":"STOPPED","version":"26a0f42d-3674-46f6-961c-f5346bef688d","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,"docker_image":null,"package_updated_at":"2015-01-20T01:52:22+00:00","detected_start_command":""}