GET /v2/domains/7a2d13a1-ed7f-467f-a04c-0bf92f442917/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 |
---|---|---|---|---|
guid | The guid of the Domain |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0zMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ2fQ.cWxCp_jpf8FtQtPelNxMKRZeln1-EIzquSO-mREE3I0 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/domains/7a2d13a1-ed7f-467f-a04c-0bf92f442917/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0zMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ2fQ.cWxCp_jpf8FtQtPelNxMKRZeln1-EIzquSO-mREE3I0" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "fcc650d9-2aa1-4f82-81cb-5631ddc26737", "url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737", "created_at": "2015-06-16T23:40:46Z", "updated_at": null }, "entity": { "name": "name-284", "organization_guid": "66afd0b5-3681-4fe0-b688-5a2c1a9ba839", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/66afd0b5-3681-4fe0-b688-5a2c1a9ba839", "developers_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/developers", "managers_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/managers", "auditors_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/auditors", "apps_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/apps", "routes_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/routes", "domains_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/domains", "service_instances_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/service_instances", "app_events_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/app_events", "events_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/events", "security_groups_url": "/v2/spaces/fcc650d9-2aa1-4f82-81cb-5631ddc26737/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 297f02f7-bf08-41db-8dcc-9639693f2445 X-Cf-Warnings: Endpoint+deprecated Content-Length: 1484 X-Content-Type-Options: nosniff