Get App summary
GET /v2/apps/:guid/summary
Request
Route
GET /v2/apps/7fbddef2-172d-4c8c-be4a-50c74dd974fb/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/7fbddef2-172d-4c8c-be4a-50c74dd974fb/summary" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTl9.PDAru6TGcjfowr9bW_cimswVARwlGOGKsLYw4BKB46g" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{"guid":"7fbddef2-172d-4c8c-be4a-50c74dd974fb","name":"name-1962","routes":[{"guid":"f3d4e0d1-30f8-44ef-bc8e-63848c400de0","host":"host-25","domain":{"guid":"61e893ca-585c-4936-82ee-9a530e48a1ca","name":"domain-51.example.com"}}],"running_instances":0,"services":[{"guid":"328d4e44-8189-47df-8365-5b45b50860ee","name":"name-1964","bound_app_count":1,"last_operation":null,"dashboard_url":null,"service_plan":{"guid":"f087d46b-1907-4417-904a-e7fd2d1543c0","name":"name-1965","service":{"guid":"a5724ba2-7af3-479f-8437-685e18c66d47","label":"label-67","provider":null,"version":null}}}],"available_domains":[{"guid":"61e893ca-585c-4936-82ee-9a530e48a1ca","name":"domain-51.example.com","owning_organization_guid":"9297f2a5-ce73-4367-892c-1b6449420517"},{"guid":"dfb840ac-a693-4ba5-b573-e248b96c649f","name":"customer-app-domain1.com"},{"guid":"4f071d9b-6670-4397-92a1-093fe0281b36","name":"customer-app-domain2.com"}],"name":"name-1962","production":false,"space_guid":"ae668b37-9df3-417a-9c06-1f2de6bcda52","stack_guid":"d056add5-172b-42a5-b57b-f65b259f013d","buildpack":null,"detected_buildpack":null,"environment_json":null,"memory":1024,"instances":1,"disk_quota":1024,"state":"STOPPED","version":"1d5f2a2a-9f12-4f55-b538-4b86debe57d9","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-04-07T19:11:59Z","detected_start_command":""}
Headers