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/80bd274b-0f34-4124-8022-f87a1900d6f9

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OSIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njd9.VtNGlGN33grDKZ45Fe80ZKZCcxuRyd87IVmoghYD9rw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/private_domains/80bd274b-0f34-4124-8022-f87a1900d6f9" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OSIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njd9.VtNGlGN33grDKZ45Fe80ZKZCcxuRyd87IVmoghYD9rw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "80bd274b-0f34-4124-8022-f87a1900d6f9",
    "url": "/v2/private_domains/80bd274b-0f34-4124-8022-f87a1900d6f9",
    "created_at": "2015-03-03T00:51:04Z",
    "updated_at": null
  },
  "entity": {
    "name": "vcap.me",
    "owning_organization_guid": "0b02a01b-f3fd-4fd4-ba4a-c3978ddb99d8",
    "owning_organization_url": "/v2/organizations/0b02a01b-f3fd-4fd4-ba4a-c3978ddb99d8",
    "shared_organizations_url": "/v2/private_domains/80bd274b-0f34-4124-8022-f87a1900d6f9/shared_organizations"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: afff966f-d640-45b4-b1bd-cb03bb44bbf7
Content-Length: 526
X-Content-Type-Options: nosniff