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.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC03NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA4fQ.YBOYI70UlyOzTb412nspgf1__HiHrQzg3adYgdAZcBQ Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/shared_domains" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC03NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA4fQ.YBOYI70UlyOzTb412nspgf1__HiHrQzg3adYgdAZcBQ" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 5, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "1240771a-1406-4da8-9eae-a0547a82d0fd", "url": "/v2/shared_domains/1240771a-1406-4da8-9eae-a0547a82d0fd", "created_at": "2015-05-15T16:53:22Z", "updated_at": null }, "entity": { "name": "customer-app-domain1.com" } }, { "metadata": { "guid": "743b1a7d-c955-4bbe-87ff-d34f0dd18b04", "url": "/v2/shared_domains/743b1a7d-c955-4bbe-87ff-d34f0dd18b04", "created_at": "2015-05-15T16:53:22Z", "updated_at": null }, "entity": { "name": "customer-app-domain2.com" } }, { "metadata": { "guid": "d05e7423-3064-4f81-927a-df54122c47b7", "url": "/v2/shared_domains/d05e7423-3064-4f81-927a-df54122c47b7", "created_at": "2015-05-15T16:53:28Z", "updated_at": null }, "entity": { "name": "domain-43.example.com" } }, { "metadata": { "guid": "e014773c-6889-4669-b3bb-f2df71564145", "url": "/v2/shared_domains/e014773c-6889-4669-b3bb-f2df71564145", "created_at": "2015-05-15T16:53:28Z", "updated_at": null }, "entity": { "name": "domain-44.example.com" } }, { "metadata": { "guid": "2927d2d9-bed1-488c-ab0a-b5dc762683a8", "url": "/v2/shared_domains/2927d2d9-bed1-488c-ab0a-b5dc762683a8", "created_at": "2015-05-15T16:53:28Z", "updated_at": null }, "entity": { "name": "domain-45.example.com" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: dd7c1698-4ac0-437e-8eae-2e6b728acb12 Content-Length: 1666 X-Content-Type-Options: nosniff