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/1240771a-1406-4da8-9eae-a0547a82d0fd

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc2IiwiZW1haWwiOiJlbWFpbC03NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA4fQ.pOghMtqtXBMTmf4HWtPnbGcbr7BBEdr9LOUMAdJv1cs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/shared_domains/1240771a-1406-4da8-9eae-a0547a82d0fd" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc2IiwiZW1haWwiOiJlbWFpbC03NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA4fQ.pOghMtqtXBMTmf4HWtPnbGcbr7BBEdr9LOUMAdJv1cs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "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"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0e648a3a-7b9a-472b-922a-25a77f8fec4b
Content-Length: 268
X-Content-Type-Options: nosniff