Home
Version 3
Private Domains API

Private Domains API

Retrieve a Particular Private Domain

GET /v2/private_domains/:guid

Request

Route

GET /v2/private_domains/9083cf20-d8a0-4d41-ae96-e2e568338a9a

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNiIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzJ9.4IZAiVhzObgzWHhb8IzzSEVhwdjUBBvkQv2jVcNc8AM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/private_domains/9083cf20-d8a0-4d41-ae96-e2e568338a9a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNiIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzJ9.4IZAiVhzObgzWHhb8IzzSEVhwdjUBBvkQv2jVcNc8AM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "9083cf20-d8a0-4d41-ae96-e2e568338a9a",
    "url": "/v2/private_domains/9083cf20-d8a0-4d41-ae96-e2e568338a9a",
    "created_at": "2016-01-19T19:41:01Z",
    "updated_at": null
  },
  "entity": {
    "name": "vcap.me",
    "owning_organization_guid": "a1c935f8-7bc0-4ad8-b8de-840bc89f5171",
    "owning_organization_url": "/v2/organizations/a1c935f8-7bc0-4ad8-b8de-840bc89f5171",
    "shared_organizations_url": "/v2/private_domains/9083cf20-d8a0-4d41-ae96-e2e568338a9a/shared_organizations"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 526
X-Content-Type-Options: nosniff