GET /v2/organizations/6e4e3412-02d0-427d-8f25-c398cbf0dab8/domains
| Name | Description | Valid Values | Example Values |
|---|---|---|---|
| guid | The guid of the Organization |
|
|
| 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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OCIsImVtYWlsIjoiZW1haWwtMTgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTV9.AQWAh6-j32wDsow8MFaiQz-Gh7LYpmjvInFvnVSnjwg Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/organizations/6e4e3412-02d0-427d-8f25-c398cbf0dab8/domains" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OCIsImVtYWlsIjoiZW1haWwtMTgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTV9.AQWAh6-j32wDsow8MFaiQz-Gh7LYpmjvInFvnVSnjwg" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{
"total_results": 2,
"total_pages": 1,
"prev_url": null,
"next_url": null,
"resources": [
{
"metadata": {
"guid": "fa1385de-55ba-41d3-beb2-f83919c634d6",
"url": "/v2/shared_domains/fa1385de-55ba-41d3-beb2-f83919c634d6",
"created_at": "2016-06-08T16:41:33Z",
"updated_at": "2016-06-08T16:41:26Z"
},
"entity": {
"name": "customer-app-domain1.com",
"router_group_guid": null,
"router_group_type": null
}
},
{
"metadata": {
"guid": "ca13b618-afb1-4ba4-b322-63b226b05d53",
"url": "/v2/shared_domains/ca13b618-afb1-4ba4-b322-63b226b05d53",
"created_at": "2016-06-08T16:41:33Z",
"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: 85fef7cd-91d8-4baa-824a-5e6c2aa2bb60 X-Cf-Warnings: Endpoint+deprecated Content-Length: 873 X-Content-Type-Options: nosniff