GET /v2/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, owning_organization_guid, space_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. |
|
|
|
name | The name of the domain. |
|
|
|
wildcard | Allow routes with non-empty hosts |
|
|
|
owning_organization_guid | The organization that owns the domain. If not specified, the domain is shared. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MiIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDZ9.1YWOfaj6aw-Gz4Tz2KhJ1iBo8-TYnO2AGu0kf_8j2oI Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/domains" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MiIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDZ9.1YWOfaj6aw-Gz4Tz2KhJ1iBo8-TYnO2AGu0kf_8j2oI" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 4, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "067baf8c-4cfa-4566-8674-8a046edca93c", "url": "/v2/domains/067baf8c-4cfa-4566-8674-8a046edca93c", "created_at": "2015-05-07T23:37:26Z", "updated_at": null }, "entity": { "name": "customer-app-domain1.com" } }, { "metadata": { "guid": "c0a69db5-e0bf-4987-8806-815cabc7b2b7", "url": "/v2/domains/c0a69db5-e0bf-4987-8806-815cabc7b2b7", "created_at": "2015-05-07T23:37:26Z", "updated_at": null }, "entity": { "name": "customer-app-domain2.com" } }, { "metadata": { "guid": "e8c833aa-4c6e-4f44-8afa-298b508cc511", "url": "/v2/domains/e8c833aa-4c6e-4f44-8afa-298b508cc511", "created_at": "2015-05-07T23:37:26Z", "updated_at": null }, "entity": { "name": "vcap.me", "owning_organization_guid": "2007be53-7d68-4067-8cd2-7ce61a023c71", "owning_organization_url": "/v2/organizations/2007be53-7d68-4067-8cd2-7ce61a023c71", "spaces_url": "/v2/domains/e8c833aa-4c6e-4f44-8afa-298b508cc511/spaces" } }, { "metadata": { "guid": "0322447d-6341-4a82-8735-cbdc103693cb", "url": "/v2/domains/0322447d-6341-4a82-8735-cbdc103693cb", "created_at": "2015-05-07T23:37:26Z", "updated_at": null }, "entity": { "name": "domain-65.example.com" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: b8968446-7973-4881-9f51-d9b08fb895d8 X-Cf-Warnings: Endpoint+deprecated Content-Length: 1563 X-Content-Type-Options: nosniff