GET /v2/spaces
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, organization_guid, developer_guid, app_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 |
---|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQzfQ.kupy94fu4WjqF_WTjs4D7u8tw90DU0F7__ti_LaQczE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQzfQ.kupy94fu4WjqF_WTjs4D7u8tw90DU0F7__ti_LaQczE" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "78ee6bdc-67ef-40e4-bc51-23d8567c5da7", "url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7", "created_at": "2015-03-20T18:27:23Z", "updated_at": null }, "entity": { "name": "name-199", "organization_guid": "f2e30cb4-5b0e-4f95-bf4c-591f71e08e5c", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/f2e30cb4-5b0e-4f95-bf4c-591f71e08e5c", "developers_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/developers", "managers_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/managers", "auditors_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/auditors", "apps_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/apps", "routes_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/routes", "domains_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/domains", "service_instances_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/service_instances", "app_events_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/app_events", "events_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/events", "security_groups_url": "/v2/spaces/78ee6bdc-67ef-40e4-bc51-23d8567c5da7/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: ba597034-1cfe-45b6-9ae3-1055da11dca8 Content-Length: 1457 X-Content-Type-Options: nosniff