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/767022a4-9669-4bce-ad4d-5e68061b03f4

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNjZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5OH0.WejZVRhd2Hlk2oanDjuNhWVbbhw9ilE6U_WnpMCMh7s
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/shared_domains/767022a4-9669-4bce-ad4d-5e68061b03f4" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNjZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5OH0.WejZVRhd2Hlk2oanDjuNhWVbbhw9ilE6U_WnpMCMh7s" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "767022a4-9669-4bce-ad4d-5e68061b03f4",
    "url": "/v2/shared_domains/767022a4-9669-4bce-ad4d-5e68061b03f4",
    "created_at": "2015-08-31T21:49:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "customer-app-domain1.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5cbe0a2d-f21b-4b20-8529-cea0b8762b9e
Content-Length: 268
X-Content-Type-Options: nosniff