Home
Version 3
Shared Domains API

Shared Domains API

Retrieve a Particular Shared Domain

GET /v2/shared_domains/:guid

Request

Route

GET /v2/shared_domains/bd13a981-7d26-4ba6-9447-c204df595f38

Body

Name Description Default Valid Values Example Values
guid The guid of the domain.
router_group_guid The guid of the router group.
name The name of the domain.
  • example.com
  • foo.example.com

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MCIsImVtYWlsIjoiZW1haWwtMzI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDh9.TFkaMGX0XUHYJTIev0C6834TXa5Q1ymLvP_F-Q4aSJA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/shared_domains/bd13a981-7d26-4ba6-9447-c204df595f38" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MCIsImVtYWlsIjoiZW1haWwtMzI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDh9.TFkaMGX0XUHYJTIev0C6834TXa5Q1ymLvP_F-Q4aSJA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "bd13a981-7d26-4ba6-9447-c204df595f38",
    "url": "/v2/shared_domains/bd13a981-7d26-4ba6-9447-c204df595f38",
    "created_at": "2015-10-07T00:35:26Z",
    "updated_at": null
  },
  "entity": {
    "name": "customer-app-domain1.com",
    "router_group_guid": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cd56ab40-c28e-4a9b-acfd-89e14ffc2db7
Content-Length: 299
X-Content-Type-Options: nosniff