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.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzN9.4N-gFFivybr41YmrOrIkRUsp7-7sQwzQZ6WFBt4g2Yk
Host: example.org
Cookie: 

Route

GET /v2/private_domains/62ba2eca-a653-4c6f-b513-6ed03f3cca31

cURL

curl "https://api.[your-domain.com]/v2/private_domains/62ba2eca-a653-4c6f-b513-6ed03f3cca31" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5OCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzN9.4N-gFFivybr41YmrOrIkRUsp7-7sQwzQZ6WFBt4g2Yk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8047e899-f0a0-4ae4-9776-f53b272aac9c
Content-Length: 413
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "62ba2eca-a653-4c6f-b513-6ed03f3cca31",
    "url": "/v2/private_domains/62ba2eca-a653-4c6f-b513-6ed03f3cca31",
    "created_at": "2015-02-10T01:42:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "vcap.me",
    "owning_organization_guid": "5898818d-1720-436f-af1c-5ccda838a249",
    "owning_organization_url": "/v2/organizations/5898818d-1720-436f-af1c-5ccda838a249"
  }
}