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/0aab0c3f-21ef-412b-a4c4-09a5a4e5b65f

Parameters

Name Description Valid Values Example Values
guid The guid of the Shared Domain

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIiLCJlbWFpbCI6ImVtYWlsLTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY1N30.z-9d-duV834tYahApNu36VujndMfUzwaC4s5lTLVdaA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/shared_domains/0aab0c3f-21ef-412b-a4c4-09a5a4e5b65f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIiLCJlbWFpbCI6ImVtYWlsLTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY1N30.z-9d-duV834tYahApNu36VujndMfUzwaC4s5lTLVdaA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0aab0c3f-21ef-412b-a4c4-09a5a4e5b65f",
    "url": "/v2/shared_domains/0aab0c3f-21ef-412b-a4c4-09a5a4e5b65f",
    "created_at": "2015-03-03T00:50:56Z",
    "updated_at": null
  },
  "entity": {
    "name": "customer-app-domain1.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cb79db7c-e95e-4ce3-8b7e-f34369324867
Content-Length: 268
X-Content-Type-Options: nosniff