Home
Version 3
Private Domains API

Private Domains API

Retrieve a Particular Private Domain

GET /v2/private_domains/:guid

Fields

Name Description Default Valid Values Example Values
guid The guid of the domain.
name The name of the domain.
  • example.com
  • foo.example.com
owning_organization_guid The organization that owns the domain. If not specified, the domain is shared.

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYzIiwiZW1haWwiOiJlbWFpbC01NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk4fQ.k7MFTPrIwF3JAwBeG_grK3VFXsz35HKLs4TwQA9lW8o
Host: example.org
Cookie: 

Route

GET /v2/private_domains/b118450b-5ee6-479c-a9bc-0c3207529d18

cURL

curl "https://api.[your-domain.com]/v2/private_domains/b118450b-5ee6-479c-a9bc-0c3207529d18" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYzIiwiZW1haWwiOiJlbWFpbC01NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk4fQ.k7MFTPrIwF3JAwBeG_grK3VFXsz35HKLs4TwQA9lW8o" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4cb56503-bebb-4a93-bf78-1f5442f22dd1
Content-Length: 418
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "b118450b-5ee6-479c-a9bc-0c3207529d18",
    "url": "/v2/private_domains/b118450b-5ee6-479c-a9bc-0c3207529d18",
    "created_at": "2014-11-13T23:38:13+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "vcap.me",
    "owning_organization_guid": "e9b1224d-58da-40b9-85ed-15c05d6684c2",
    "owning_organization_url": "/v2/organizations/e9b1224d-58da-40b9-85ed-15c05d6684c2"
  }
}