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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MCIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTgzOTh9.kw8ELQG5iQMxn3ZQxENOrUmnaUNTX_SSgNxabb3kaf0 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MCIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTgzOTh9.kw8ELQG5iQMxn3ZQxENOrUmnaUNTX_SSgNxabb3kaf0" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
Name | Description | 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. |
|
|
state | The current desired state of the app. One of STOPPED or STARTED. |
|
|
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. 'none' is deprecated and an alias to 'process'. |
|
|
health_check_timeout | Timeout for health checking of an staged app when starting up |
|
|
diego | Use diego to stage and to run when available |
|
|
enable_ssh | Enable SSHing into the app. Supported for Diego only. |
|
|
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. |
|
|
console | Open the console port for the app (at $CONSOLE_PORT). |
|
|
debug | Open the debug port for the app (at $DEBUG_PORT). |
|
|
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. Overwrites previously configured ports. Ports must be in range 1024-65535. Supported for Diego only. |
|
|
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "238e491f-7ba9-468c-a136-f6f07b9c188a", "url": "/v2/apps/238e491f-7ba9-468c-a136-f6f07b9c188a", "created_at": "2016-04-22T19:33:18Z", "updated_at": "2016-04-22T19:33:18Z" }, "entity": { "name": "name-449", "production": false, "space_guid": "76307dd9-ae66-4e48-96dd-ac2879869398", "stack_guid": "ea2ebc96-7399-4ba8-beb7-1344a1591888", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "3255855e-3997-4969-9c22-4b2d8c834088", "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": "2016-04-22T19:33:18Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "ports": null, "space_url": "/v2/spaces/76307dd9-ae66-4e48-96dd-ac2879869398", "stack_url": "/v2/stacks/ea2ebc96-7399-4ba8-beb7-1344a1591888", "routes_url": "/v2/apps/238e491f-7ba9-468c-a136-f6f07b9c188a/routes", "events_url": "/v2/apps/238e491f-7ba9-468c-a136-f6f07b9c188a/events", "service_bindings_url": "/v2/apps/238e491f-7ba9-468c-a136-f6f07b9c188a/service_bindings", "route_mappings_url": "/v2/apps/238e491f-7ba9-468c-a136-f6f07b9c188a/route_mappings" } }, { "metadata": { "guid": "3ff00539-9695-4741-bf28-5deb798f8b81", "url": "/v2/apps/3ff00539-9695-4741-bf28-5deb798f8b81", "created_at": "2016-04-22T19:33:18Z", "updated_at": "2016-04-22T19:33:18Z" }, "entity": { "name": "name-439", "production": false, "space_guid": "0d08a010-a641-41f0-9619-8b68bc773b93", "stack_guid": "1481f571-8825-4689-8a41-821038e5ec01", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "b7875284-30cd-48b4-94e0-2f1a04978098", "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": "2016-04-22T19:33:18Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "ports": null, "space_url": "/v2/spaces/0d08a010-a641-41f0-9619-8b68bc773b93", "stack_url": "/v2/stacks/1481f571-8825-4689-8a41-821038e5ec01", "routes_url": "/v2/apps/3ff00539-9695-4741-bf28-5deb798f8b81/routes", "events_url": "/v2/apps/3ff00539-9695-4741-bf28-5deb798f8b81/events", "service_bindings_url": "/v2/apps/3ff00539-9695-4741-bf28-5deb798f8b81/service_bindings", "route_mappings_url": "/v2/apps/3ff00539-9695-4741-bf28-5deb798f8b81/route_mappings" } }, { "metadata": { "guid": "f114051b-bbd8-4f6c-b7e0-7da49571027f", "url": "/v2/apps/f114051b-bbd8-4f6c-b7e0-7da49571027f", "created_at": "2016-04-22T19:33:18Z", "updated_at": "2016-04-22T19:33:18Z" }, "entity": { "name": "name-444", "production": false, "space_guid": "60e8a1a9-c2e6-4fc6-a099-55bc022e4853", "stack_guid": "691f1649-f4fa-4aec-bb41-d7cc9e763de7", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "a571b081-d42d-472b-937c-3c0855eafc64", "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": "2016-04-22T19:33:18Z", "detected_start_command": "", "enable_ssh": true, "docker_credentials_json": { "redacted_message": "[PRIVATE DATA HIDDEN]" }, "ports": null, "space_url": "/v2/spaces/60e8a1a9-c2e6-4fc6-a099-55bc022e4853", "stack_url": "/v2/stacks/691f1649-f4fa-4aec-bb41-d7cc9e763de7", "routes_url": "/v2/apps/f114051b-bbd8-4f6c-b7e0-7da49571027f/routes", "events_url": "/v2/apps/f114051b-bbd8-4f6c-b7e0-7da49571027f/events", "service_bindings_url": "/v2/apps/f114051b-bbd8-4f6c-b7e0-7da49571027f/service_bindings", "route_mappings_url": "/v2/apps/f114051b-bbd8-4f6c-b7e0-7da49571027f/route_mappings" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 8ba447a5-b93b-4bdc-a7a8-a9bb481a8163 Content-Length: 5538 X-Content-Type-Options: nosniff