Shared Domains API

List all Shared Domains

GET /v2/shared_domains

Request

Route

GET /v2/shared_domains

Parameters

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
  • q=filter:value
  • q=filter>value
  • q=filter IN a,b,c
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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMyIsImVtYWlsIjoiZW1haWwtMjE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTd9.vMwt4OLpuX32nV7tBN5O726A3L91fsdmCdlZzkyweZE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/shared_domains" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMyIsImVtYWlsIjoiZW1haWwtMjE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTd9.vMwt4OLpuX32nV7tBN5O726A3L91fsdmCdlZzkyweZE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "total_results": 6,
  "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",
        "internal": false,
        "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",
        "internal": false,
        "router_group_guid": null,
        "router_group_type": null
      }
    },
    {
      "metadata": {
        "guid": "9c7b4711-1eb1-4459-a6ca-d179ea5711ba",
        "url": "/v2/shared_domains/9c7b4711-1eb1-4459-a6ca-d179ea5711ba",
        "created_at": "2016-06-08T16:41:37Z",
        "updated_at": "2016-06-08T16:41:26Z"
      },
      "entity": {
        "name": "domain-46.example.com",
        "internal": false,
        "router_group_guid": null,
        "router_group_type": null
      }
    },
    {
      "metadata": {
        "guid": "2ed278b1-58e6-4f46-9e28-a721c507d3e9",
        "url": "/v2/shared_domains/2ed278b1-58e6-4f46-9e28-a721c507d3e9",
        "created_at": "2016-06-08T16:41:37Z",
        "updated_at": "2016-06-08T16:41:26Z"
      },
      "entity": {
        "name": "domain-47.example.com",
        "internal": false,
        "router_group_guid": null,
        "router_group_type": null
      }
    },
    {
      "metadata": {
        "guid": "77727c01-6f91-4478-a535-7f0a7049fff3",
        "url": "/v2/shared_domains/77727c01-6f91-4478-a535-7f0a7049fff3",
        "created_at": "2016-06-08T16:41:37Z",
        "updated_at": "2016-06-08T16:41:26Z"
      },
      "entity": {
        "name": "domain-48.example.com",
        "internal": false,
        "router_group_guid": null,
        "router_group_type": null
      }
    },
    {
      "metadata": {
        "guid": "91977695-8ad9-40db-858f-4df782603ec3",
        "url": "/v2/shared_domains/91977695-8ad9-40db-858f-4df782603ec3",
        "created_at": "2016-06-08T16:41:37Z",
        "updated_at": "2016-06-08T16:41:26Z"
      },
      "entity": {
        "name": "domain-49.example.com",
        "internal": false,
        "router_group_guid": "my-random-guid",
        "router_group_type": "tcp"
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 275ca422-1371-402b-ae16-6610966e93f8
Content-Length: 2410
X-Content-Type-Options: nosniff