GET /v2/shared_domains
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 |
|
|
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. |
|
|
|
name | The name of the domain. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY1N30.7hxDKaFZsf-WEOvqJqVGlr4jxEOCNJhiG2M01xWPXbE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/shared_domains" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY1N30.7hxDKaFZsf-WEOvqJqVGlr4jxEOCNJhiG2M01xWPXbE" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 5, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "0aab0c3f-21ef-412b-a4c4-09a5a4e5b65f", "url": "/v2/shared_domains/0aab0c3f-21ef-412b-a4c4-09a5a4e5b65f", "created_at": "2015-03-03T00:50:56Z", "updated_at": null }, "entity": { "name": "customer-app-domain1.com" } }, { "metadata": { "guid": "87c7d96a-48ad-4b01-8b0d-882125e41a6f", "url": "/v2/shared_domains/87c7d96a-48ad-4b01-8b0d-882125e41a6f", "created_at": "2015-03-03T00:50:56Z", "updated_at": null }, "entity": { "name": "customer-app-domain2.com" } }, { "metadata": { "guid": "6f70a287-9baa-4eb0-8c93-8920c1b01703", "url": "/v2/shared_domains/6f70a287-9baa-4eb0-8c93-8920c1b01703", "created_at": "2015-03-03T00:50:57Z", "updated_at": null }, "entity": { "name": "domain-4.example.com" } }, { "metadata": { "guid": "c4703fcc-759d-4a23-bafd-fc976638c34d", "url": "/v2/shared_domains/c4703fcc-759d-4a23-bafd-fc976638c34d", "created_at": "2015-03-03T00:50:57Z", "updated_at": null }, "entity": { "name": "domain-5.example.com" } }, { "metadata": { "guid": "3fc94157-b0e7-4ae1-bdbf-65575062969c", "url": "/v2/shared_domains/3fc94157-b0e7-4ae1-bdbf-65575062969c", "created_at": "2015-03-03T00:50:57Z", "updated_at": null }, "entity": { "name": "domain-6.example.com" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: f1ad1880-4777-4267-87de-ef50400ea29c Content-Length: 1663 X-Content-Type-Options: nosniff