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.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDB9.PeHXYTVVK5-39lKa8AFiHTN-VBxWCRZW9hhXJ3423VM
Host: example.org
Cookie: 

Route

GET /v2/private_domains/78ba0d29-c944-4708-b511-271f121f26d1

cURL

curl "https://api.[your-domain.com]/v2/private_domains/78ba0d29-c944-4708-b511-271f121f26d1" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDB9.PeHXYTVVK5-39lKa8AFiHTN-VBxWCRZW9hhXJ3423VM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 05ab8d88-2908-4987-a1b1-455b3e087455
Content-Length: 413
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "78ba0d29-c944-4708-b511-271f121f26d1",
    "url": "/v2/private_domains/78ba0d29-c944-4708-b511-271f121f26d1",
    "created_at": "2015-02-12T01:42:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "vcap.me",
    "owning_organization_guid": "038d0095-d2f6-4a72-a9e2-bf75e790df1c",
    "owning_organization_url": "/v2/organizations/038d0095-d2f6-4a72-a9e2-bf75e790df1c"
  }
}