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/fb7cda2a-dc41-4490-863e-d7a0bdfa301f

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5Nn0.BMPoXDIuMiAgGWkqoGBATUHTyZLBVOZehGkR10vdN9k
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/private_domains/fb7cda2a-dc41-4490-863e-d7a0bdfa301f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5Nn0.BMPoXDIuMiAgGWkqoGBATUHTyZLBVOZehGkR10vdN9k" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "fb7cda2a-dc41-4490-863e-d7a0bdfa301f",
    "url": "/v2/private_domains/fb7cda2a-dc41-4490-863e-d7a0bdfa301f",
    "created_at": "2016-04-22T19:33:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "vcap.me",
    "owning_organization_guid": "7d946631-d25b-4c5a-ac58-ccea1490666c",
    "owning_organization_url": "/v2/organizations/7d946631-d25b-4c5a-ac58-ccea1490666c",
    "shared_organizations_url": "/v2/private_domains/fb7cda2a-dc41-4490-863e-d7a0bdfa301f/shared_organizations"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 57722c2e-035d-49a6-ae31-f678ef4dab4d
Content-Length: 526
X-Content-Type-Options: nosniff