Name | Description | Default | Valid Values | Example Values |
---|
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Space |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.sPZm3MXSU_kGwj5ipUorF-eIXK_BK3eFgi6-zMxuc4I Host: example.org Cookie:
GET /v2/spaces/cfb458e5-b9c3-4eef-a5b4-3a50c0c11306/apps
curl "https://api.[your-domain.com]/v2/spaces/cfb458e5-b9c3-4eef-a5b4-3a50c0c11306/apps" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.sPZm3MXSU_kGwj5ipUorF-eIXK_BK3eFgi6-zMxuc4I" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: fb075a3f-831b-421c-8cee-26be3d5fbb98 Content-Length: 1579 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "d7dee5f1-76a7-475f-9e84-e7cd2369a3e5", "url": "/v2/apps/d7dee5f1-76a7-475f-9e84-e7cd2369a3e5", "created_at": "2014-11-24T19:32:47+00:00", "updated_at": "2014-11-24T19:32:47+00:00" }, "entity": { "name": "name-967", "production": false, "space_guid": "cfb458e5-b9c3-4eef-a5b4-3a50c0c11306", "stack_guid": "cf3bc111-5f32-4a69-8cf8-0d0efbb5eeec", "buildpack": null, "detected_buildpack": null, "environment_json": null, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STOPPED", "version": "4ef41556-7e13-4559-b417-e1c61e818982", "command": null, "console": false, "debug": null, "staging_task_id": null, "package_state": "PENDING", "health_check_timeout": null, "staging_failed_reason": null, "docker_image": null, "package_updated_at": "2014-11-24T19:32:47+00:00", "detected_start_command": "", "space_url": "/v2/spaces/cfb458e5-b9c3-4eef-a5b4-3a50c0c11306", "stack_url": "/v2/stacks/cf3bc111-5f32-4a69-8cf8-0d0efbb5eeec", "events_url": "/v2/apps/d7dee5f1-76a7-475f-9e84-e7cd2369a3e5/events", "service_bindings_url": "/v2/apps/d7dee5f1-76a7-475f-9e84-e7cd2369a3e5/service_bindings", "routes_url": "/v2/apps/d7dee5f1-76a7-475f-9e84-e7cd2369a3e5/routes" } } ] }