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/aa0a6dd6-f855-4a0c-9268-fb6d13b01cce

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDh9.p7SA3T0v2LuFNZQuJbZSsq-DazyCRArzhM4Smka8hiE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/shared_domains/aa0a6dd6-f855-4a0c-9268-fb6d13b01cce" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDh9.p7SA3T0v2LuFNZQuJbZSsq-DazyCRArzhM4Smka8hiE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "aa0a6dd6-f855-4a0c-9268-fb6d13b01cce",
    "url": "/v2/shared_domains/aa0a6dd6-f855-4a0c-9268-fb6d13b01cce",
    "created_at": "2015-04-15T00:55:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "customer-app-domain1.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 87597bd9-689b-4d0e-8037-23d9e34b45f1
Content-Length: 268
X-Content-Type-Options: nosniff