Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
guid | The guid of the route. |
|
|
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 |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTk0IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyOTkwODY5fQ.4tspH7PhYAzZ-J81zMozqFSjmGwB4pbiZ_HzlJvzqnw Host: example.org Cookie:
GET /v2/routes/bd5170da-07b2-4f82-b612-ebe56faa393e/apps
curl "https://api.[your-domain.com]/v2/routes/bd5170da-07b2-4f82-b612-ebe56faa393e/apps" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk0IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyOTkwODY5fQ.4tspH7PhYAzZ-J81zMozqFSjmGwB4pbiZ_HzlJvzqnw" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 362c813c-4327-48c2-8ab8-12659ba833a8 Content-Length: 1602 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "175611b1-6625-4f30-a54e-a049f5579a7d", "url": "/v2/apps/175611b1-6625-4f30-a54e-a049f5579a7d", "created_at": "2015-01-27T19:14:29Z", "updated_at": "2015-01-27T19:14:29Z" }, "entity": { "name": "name-1044", "production": false, "space_guid": "adfe9824-a154-4a03-8173-81eee95e5f08", "stack_guid": "e14517a7-76e1-458e-9148-d9cb9e1ec84f", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "b88af66f-c094-427e-b855-78451c4ef00d", "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-27T19:14:29Z", "detected_start_command": "", "space_url": "/v2/spaces/adfe9824-a154-4a03-8173-81eee95e5f08", "stack_url": "/v2/stacks/e14517a7-76e1-458e-9148-d9cb9e1ec84f", "events_url": "/v2/apps/175611b1-6625-4f30-a54e-a049f5579a7d/events", "service_bindings_url": "/v2/apps/175611b1-6625-4f30-a54e-a049f5579a7d/service_bindings", "routes_url": "/v2/apps/175611b1-6625-4f30-a54e-a049f5579a7d/routes" } } ] }