GET /v2/domains/298e6a4e-997f-4ee0-aa1b-5f26630a8d95/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NyIsImVtYWlsIjoiZW1haWwtMjc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzl9.mHvf6dN8TcwQYNT1Wb0tZvLJJMJ1wWqwOAKEG0iR4i0 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/domains/298e6a4e-997f-4ee0-aa1b-5f26630a8d95/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NyIsImVtYWlsIjoiZW1haWwtMjc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Nzl9.mHvf6dN8TcwQYNT1Wb0tZvLJJMJ1wWqwOAKEG0iR4i0" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "1e2a6a3b-002b-4264-93eb-735819f3152b", "url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b", "created_at": "2015-03-03T00:51:19Z", "updated_at": null }, "entity": { "name": "name-2054", "organization_guid": "71d7af24-f5a7-4b61-9bff-cb032aee99c9", "space_quota_definition_guid": null, "organization_url": "/v2/organizations/71d7af24-f5a7-4b61-9bff-cb032aee99c9", "developers_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/developers", "managers_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/managers", "auditors_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/auditors", "apps_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/apps", "routes_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/routes", "domains_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/domains", "service_instances_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/service_instances", "app_events_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/app_events", "events_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/events", "security_groups_url": "/v2/spaces/1e2a6a3b-002b-4264-93eb-735819f3152b/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: f051f0c2-1276-44d8-9736-2c8d5259a3bd X-Cf-Warnings: Endpoint+deprecated Content-Length: 1458 X-Content-Type-Options: nosniff