GET /v2/apps
Name | Description | Valid Values | Example Values |
---|---|---|---|
q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: name, space_guid, organization_guid, diego, stack_guid |
|
|
page | Page of results to fetch |
|
|
results-per-page | Number of results per page |
|
|
order-direction | Order of the results: asc (default) or desc |
|
|
inline-relations-depth | 0 - don't inline any relations and return URLs. Otherwise, inline to depth N. |
|
|
orphan-relations | 0 - de-duplicate object entries in response |
|
|
exclude-relations | comma-delimited list of relations to drop from response |
|
|
include-relations | comma-delimited list of the only relations to include in response |
|
|
Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
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. To ensure optimal availability, ensure there are at least 2 instances. |
|
|
|
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 desired state of the app. One of STOPPED or STARTED. | STOPPED |
|
|
detected_start_command | The command detected by the buildpack during staging. |
|
|
|
command | The command to start an app after it is staged, maximum length: 4096 (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_type | Type of health check to perform. | port |
|
|
health_check_timeout | Timeout for health checking of an staged app when starting up |
|
|
|
diego | Use diego to stage and to run when available | false |
|
|
docker_image | Name of the Docker image containing the app |
|
|
|
docker_credentials_json | Docker credentials for pulling docker image. | {} |
|
|
environment_json | Key/value pairs of all the environment variables to run in your app. Does not include any system or service variables. |
|
|
|
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 |
|
|
staging_failed_reason | Reason for application staging failures |
|
|
|
staging_failed_description | Detailed description for the staging_failed_reason |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MDB9.XejgqMlBhfCnlJ_LXf6EO3snfxHq_r1_lnejNgvMx-k Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MDB9.XejgqMlBhfCnlJ_LXf6EO3snfxHq_r1_lnejNgvMx-k" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "3d294ed0-105c-4ccd-8f79-5605d6b7198c", "url": "/v2/apps/3d294ed0-105c-4ccd-8f79-5605d6b7198c", "created_at": "2015-07-27T22:43:20Z", "updated_at": "2015-07-27T22:43:20Z" }, "entity": { "name": "name-761", "production": false, "space_guid": "30d5165d-0bef-4103-97cd-72269b9d7a4c", "stack_guid": "d3476df6-534d-4140-b85b-401fa4923234", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "3ca77d11-93e0-4a60-bab5-30f38b8a8649", "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": "2015-07-27T22:43:20Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "space_url": "/v2/spaces/30d5165d-0bef-4103-97cd-72269b9d7a4c", "stack_url": "/v2/stacks/d3476df6-534d-4140-b85b-401fa4923234", "events_url": "/v2/apps/3d294ed0-105c-4ccd-8f79-5605d6b7198c/events", "service_bindings_url": "/v2/apps/3d294ed0-105c-4ccd-8f79-5605d6b7198c/service_bindings", "routes_url": "/v2/apps/3d294ed0-105c-4ccd-8f79-5605d6b7198c/routes" } }, { "metadata": { "guid": "522c5382-29e9-48aa-9db0-9f6cfa643ec1", "url": "/v2/apps/522c5382-29e9-48aa-9db0-9f6cfa643ec1", "created_at": "2015-07-27T22:43:20Z", "updated_at": "2015-07-27T22:43:20Z" }, "entity": { "name": "name-766", "production": false, "space_guid": "cf929611-97ab-4c42-93e5-9ec26e26f456", "stack_guid": "14b4a0b7-7c7b-4cf2-99f0-cc3ed1473f09", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "cddf0ec1-acf6-48e7-831b-884972cb7ac3", "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": "2015-07-27T22:43:20Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "space_url": "/v2/spaces/cf929611-97ab-4c42-93e5-9ec26e26f456", "stack_url": "/v2/stacks/14b4a0b7-7c7b-4cf2-99f0-cc3ed1473f09", "events_url": "/v2/apps/522c5382-29e9-48aa-9db0-9f6cfa643ec1/events", "service_bindings_url": "/v2/apps/522c5382-29e9-48aa-9db0-9f6cfa643ec1/service_bindings", "routes_url": "/v2/apps/522c5382-29e9-48aa-9db0-9f6cfa643ec1/routes" } }, { "metadata": { "guid": "ec31bfbd-ab5c-490d-8e83-3c1ea5d1bedf", "url": "/v2/apps/ec31bfbd-ab5c-490d-8e83-3c1ea5d1bedf", "created_at": "2015-07-27T22:43:20Z", "updated_at": "2015-07-27T22:43:20Z" }, "entity": { "name": "name-771", "production": false, "space_guid": "e438b2bf-17d6-4265-8813-18e0ab95c029", "stack_guid": "8d42ba27-60df-420e-9208-535e753b706a", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "8e74d312-1bc9-4953-b4fe-d2613ea4972a", "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": "2015-07-27T22:43:20Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "space_url": "/v2/spaces/e438b2bf-17d6-4265-8813-18e0ab95c029", "stack_url": "/v2/stacks/8d42ba27-60df-420e-9208-535e753b706a", "events_url": "/v2/apps/ec31bfbd-ab5c-490d-8e83-3c1ea5d1bedf/events", "service_bindings_url": "/v2/apps/ec31bfbd-ab5c-490d-8e83-3c1ea5d1bedf/service_bindings", "routes_url": "/v2/apps/ec31bfbd-ab5c-490d-8e83-3c1ea5d1bedf/routes" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 352621d7-a243-4aac-9dc8-6780eb8009ab Content-Length: 5187 X-Content-Type-Options: nosniff