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/79489e1f-f804-42ba-8596-5980fa779f10

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNiIsImVtYWlsIjoiZW1haWwtMTQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDZ9.ISiMqL75eNiSZa--VXQjVOV4CQuIpfaPu7WJ_x6VLtA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/shared_domains/79489e1f-f804-42ba-8596-5980fa779f10" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNiIsImVtYWlsIjoiZW1haWwtMTQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDZ9.ISiMqL75eNiSZa--VXQjVOV4CQuIpfaPu7WJ_x6VLtA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "79489e1f-f804-42ba-8596-5980fa779f10",
    "url": "/v2/shared_domains/79489e1f-f804-42ba-8596-5980fa779f10",
    "created_at": "2015-04-07T19:11:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "customer-app-domain1.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7440bdcc-c2f5-49cb-80d4-1566c6b15b3e
Content-Length: 268
X-Content-Type-Options: nosniff