GET /v2/spaces/8d8f2bd1-4ef1-4bce-9304-f2f108392cd5/domains
| Name | Description | Valid Values | Example Values |
|---|---|---|---|
| guid | The guid of the Space |
|
|
| q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: name, owning_organization_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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MyIsImVtYWlsIjoiZW1haWwtMjY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.tl-ct96o7RegfzhwDPiut1AGMhsDvZa51sw4kOUiEVU Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/8d8f2bd1-4ef1-4bce-9304-f2f108392cd5/domains" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MyIsImVtYWlsIjoiZW1haWwtMjY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.tl-ct96o7RegfzhwDPiut1AGMhsDvZa51sw4kOUiEVU" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{
"total_results": 2,
"total_pages": 1,
"prev_url": null,
"next_url": null,
"resources": [
{
"metadata": {
"guid": "203c7a14-f660-42f5-b18c-45f0ef507448",
"url": "/v2/shared_domains/203c7a14-f660-42f5-b18c-45f0ef507448",
"created_at": "2016-06-08T16:41:39Z",
"updated_at": "2016-06-08T16:41:26Z"
},
"entity": {
"name": "customer-app-domain1.com",
"router_group_guid": null,
"router_group_type": null
}
},
{
"metadata": {
"guid": "4a63284a-9ca5-4cdf-94c3-f1aedd41d2e4",
"url": "/v2/shared_domains/4a63284a-9ca5-4cdf-94c3-f1aedd41d2e4",
"created_at": "2016-06-08T16:41:39Z",
"updated_at": "2016-06-08T16:41:26Z"
},
"entity": {
"name": "customer-app-domain2.com",
"router_group_guid": null,
"router_group_type": null
}
}
]
}
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: f2675fba-e0f1-4bb4-a991-547acc5e69cb X-Cf-Warnings: Endpoint+deprecated Content-Length: 873 X-Content-Type-Options: nosniff