Associate Private Domain with the Organization
PUT /v2/organizations/:guid/private_domains/:private_domain_guid
Request
Route
PUT /v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/private_domains/da23cb6d-9687-4f20-bdc6-48a38107450c
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
private_domain_guid
|
The guid of the private domain
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/private_domains/da23cb6d-9687-4f20-bdc6-48a38107450c" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MCIsImVtYWlsIjoiZW1haWwtMjUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.6TfLCM6xvhzkV9vYHXESD3_tvpI8LNwJYeVpbiyeJGQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "607eeabc-31d7-4822-adde-06c3f1850b3a",
"url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a",
"created_at": "2015-07-06T23:23:18Z",
"updated_at": null
},
"entity": {
"name": "name-2157",
"billing_enabled": false,
"quota_definition_guid": "acb2d835-850c-468d-b956-104ef5e2d716",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/acb2d835-850c-468d-b956-104ef5e2d716",
"spaces_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/spaces",
"domains_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/domains",
"private_domains_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/private_domains",
"users_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/users",
"managers_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/managers",
"billing_managers_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/billing_managers",
"auditors_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/auditors",
"app_events_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/app_events",
"space_quota_definitions_url": "/v2/organizations/607eeabc-31d7-4822-adde-06c3f1850b3a/space_quota_definitions"
}
}
Headers