GET /v2/domains/0f9a8767-7bb6-419a-bd2f-e0b8ff1ecee1/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mjh9.lSGPEut4qUYX04OYchrs6pA-69YUo3ShLMvOkfbMeiw Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/domains/0f9a8767-7bb6-419a-bd2f-e0b8ff1ecee1/spaces" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mjh9.lSGPEut4qUYX04OYchrs6pA-69YUo3ShLMvOkfbMeiw" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "99a6452f-60f3-4b6f-8cc6-fa903c3fea2c", "url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c", "created_at": "2015-11-30T23:38:48Z", "updated_at": null }, "entity": { "name": "name-2021", "organization_guid": "1110d340-75b3-49f0-8eda-5ef2fb8a6de8", "space_quota_definition_guid": null, "allow_ssh": true, "organization_url": "/v2/organizations/1110d340-75b3-49f0-8eda-5ef2fb8a6de8", "developers_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/developers", "managers_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/managers", "auditors_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/auditors", "apps_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/apps", "routes_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/routes", "domains_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/domains", "service_instances_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/service_instances", "app_events_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/app_events", "events_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/events", "security_groups_url": "/v2/spaces/99a6452f-60f3-4b6f-8cc6-fa903c3fea2c/security_groups" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: X-Cf-Warnings: Endpoint+deprecated Content-Length: 1485 X-Content-Type-Options: nosniff