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/f6975d7b-c1f8-4a77-91fd-02b79b563afe

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTd9.79MULvZAhHOui-pEYNCRW29V-Lczpq4PvNsuqRaMdXg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/private_domains/f6975d7b-c1f8-4a77-91fd-02b79b563afe" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTd9.79MULvZAhHOui-pEYNCRW29V-Lczpq4PvNsuqRaMdXg" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f6975d7b-c1f8-4a77-91fd-02b79b563afe",
    "url": "/v2/private_domains/f6975d7b-c1f8-4a77-91fd-02b79b563afe",
    "created_at": "2015-07-06T23:23:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "vcap.me",
    "owning_organization_guid": "2bc6ed88-ddad-421b-b3e9-ca772e1f0e14",
    "owning_organization_url": "/v2/organizations/2bc6ed88-ddad-421b-b3e9-ca772e1f0e14",
    "shared_organizations_url": "/v2/private_domains/f6975d7b-c1f8-4a77-91fd-02b79b563afe/shared_organizations"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e85a510e-48a7-4653-aded-b23a4024e3f0
Content-Length: 526
X-Content-Type-Options: nosniff