GET /v2/domains/530a7025-e1b6-4b79-9ec6-50f2f0f73f5b/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MiIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMzk4MTEwNX0.O9BAOQqJ0eQWfLb3io9eeaosEybzgagc8IiMV506FdA Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/domains/530a7025-e1b6-4b79-9ec6-50f2f0f73f5b/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MiIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMzk4MTEwNX0.O9BAOQqJ0eQWfLb3io9eeaosEybzgagc8IiMV506FdA" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "1e9f71e1-3f84-4a24-89d6-065e3efe830f", "url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f", "created_at": "2015-06-04T00:05:05Z", "updated_at": null }, "entity": { "name": "name-1310", "organization_guid": "802ed981-8aaa-45a1-bade-2bf8188c6d15", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/802ed981-8aaa-45a1-bade-2bf8188c6d15", "developers_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/developers", "managers_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/managers", "auditors_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/auditors", "apps_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/apps", "routes_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/routes", "domains_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/domains", "service_instances_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/service_instances", "app_events_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/app_events", "events_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/events", "security_groups_url": "/v2/spaces/1e9f71e1-3f84-4a24-89d6-065e3efe830f/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 0ffd6492-6e90-43ad-8fb4-8f5f4725d3fa X-Cf-Warnings: Endpoint+deprecated Content-Length: 1485 X-Content-Type-Options: nosniff