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 |
|
|
|
ports | Ports on which application may listen. Supported for applications pushed to Diego only. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMiIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzF9.4hqbt0fgr6_n1hhic7vVCQnEVSD5Q0FxCA4Z73Xgmuo Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMiIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzF9.4hqbt0fgr6_n1hhic7vVCQnEVSD5Q0FxCA4Z73Xgmuo" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "20f38f79-6c33-4cd5-b648-99dbcf6d5149", "url": "/v2/apps/20f38f79-6c33-4cd5-b648-99dbcf6d5149", "created_at": "2015-11-13T17:02:50Z", "updated_at": "2015-11-13T17:02:50Z" }, "entity": { "name": "name-2231", "production": false, "space_guid": "ae720099-0b88-4cad-8935-06236468dd34", "stack_guid": "fd4183c7-1091-4699-aef6-939a82e090cf", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "cc427b26-8f69-43ff-a91e-d35e696066c8", "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-11-13T17:02:51Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "ports": null, "space_url": "/v2/spaces/ae720099-0b88-4cad-8935-06236468dd34", "stack_url": "/v2/stacks/fd4183c7-1091-4699-aef6-939a82e090cf", "events_url": "/v2/apps/20f38f79-6c33-4cd5-b648-99dbcf6d5149/events", "service_bindings_url": "/v2/apps/20f38f79-6c33-4cd5-b648-99dbcf6d5149/service_bindings", "routes_url": "/v2/apps/20f38f79-6c33-4cd5-b648-99dbcf6d5149/routes" } }, { "metadata": { "guid": "6f1105f7-db4f-4fe1-8d18-98b7d53b3b2e", "url": "/v2/apps/6f1105f7-db4f-4fe1-8d18-98b7d53b3b2e", "created_at": "2015-11-13T17:02:50Z", "updated_at": "2015-11-13T17:02:50Z" }, "entity": { "name": "name-2221", "production": false, "space_guid": "dbf60417-7893-426f-846f-b9eb3183ab56", "stack_guid": "0b706dc5-e78b-4b93-9bb9-1191cc59ffae", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "c2009c60-40a1-4670-bc25-ab49f101aaa2", "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-11-13T17:02:50Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "ports": null, "space_url": "/v2/spaces/dbf60417-7893-426f-846f-b9eb3183ab56", "stack_url": "/v2/stacks/0b706dc5-e78b-4b93-9bb9-1191cc59ffae", "events_url": "/v2/apps/6f1105f7-db4f-4fe1-8d18-98b7d53b3b2e/events", "service_bindings_url": "/v2/apps/6f1105f7-db4f-4fe1-8d18-98b7d53b3b2e/service_bindings", "routes_url": "/v2/apps/6f1105f7-db4f-4fe1-8d18-98b7d53b3b2e/routes" } }, { "metadata": { "guid": "d1fe57cd-ce6a-441e-91f9-2e71ada33783", "url": "/v2/apps/d1fe57cd-ce6a-441e-91f9-2e71ada33783", "created_at": "2015-11-13T17:02:50Z", "updated_at": "2015-11-13T17:02:50Z" }, "entity": { "name": "name-2226", "production": false, "space_guid": "d70720e8-750f-48d4-975d-56924212ec99", "stack_guid": "75ffde8e-370f-4275-b63d-bbb5d28953de", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "d71fae6f-6949-4f93-88c9-e9e2d2828e4b", "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-11-13T17:02:50Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "ports": null, "space_url": "/v2/spaces/d70720e8-750f-48d4-975d-56924212ec99", "stack_url": "/v2/stacks/75ffde8e-370f-4275-b63d-bbb5d28953de", "events_url": "/v2/apps/d1fe57cd-ce6a-441e-91f9-2e71ada33783/events", "service_bindings_url": "/v2/apps/d1fe57cd-ce6a-441e-91f9-2e71ada33783/service_bindings", "routes_url": "/v2/apps/d1fe57cd-ce6a-441e-91f9-2e71ada33783/routes" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 5259 X-Content-Type-Options: nosniff