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/3e8ca2ca-04cd-4de0-b001-15cb8a4c4984

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTJ9.Tbocrw7mQl6us5nvqBCvcuGSPeE_TTXhD6VmIqEZXf0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/shared_domains/3e8ca2ca-04cd-4de0-b001-15cb8a4c4984" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTJ9.Tbocrw7mQl6us5nvqBCvcuGSPeE_TTXhD6VmIqEZXf0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "3e8ca2ca-04cd-4de0-b001-15cb8a4c4984",
    "url": "/v2/shared_domains/3e8ca2ca-04cd-4de0-b001-15cb8a4c4984",
    "created_at": "2015-05-21T01:03:00Z",
    "updated_at": null
  },
  "entity": {
    "name": "customer-app-domain1.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ad9da22c-3500-4d77-aef0-9939ac3a964f
Content-Length: 268
X-Content-Type-Options: nosniff