Associate Private Domain with the Organization
PUT /v2/organizations/:guid/private_domains/:private_domain_guid
Request
Route
PUT /v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/private_domains/a0fbe2f7-bdbe-4097-bfb6-b432daeb7cbe
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/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/private_domains/a0fbe2f7-bdbe-4097-bfb6-b432daeb7cbe" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NiIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDB9.58oY6sT0L3-vCH0gXKkx_PdHkkJSSesDbwo-iWzDlsA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8dbcfb5e-a523-4c43-ac42-e43ad86b248a",
"url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a",
"created_at": "2016-02-19T02:04:00Z",
"updated_at": null
},
"entity": {
"name": "name-2277",
"billing_enabled": false,
"quota_definition_guid": "a05118db-51ca-497b-bbbe-3b29aa3cf37d",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/a05118db-51ca-497b-bbbe-3b29aa3cf37d",
"spaces_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/spaces",
"domains_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/domains",
"private_domains_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/private_domains",
"users_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/users",
"managers_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/managers",
"billing_managers_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/billing_managers",
"auditors_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/auditors",
"app_events_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/app_events",
"space_quota_definitions_url": "/v2/organizations/8dbcfb5e-a523-4c43-ac42-e43ad86b248a/space_quota_definitions"
}
}
Headers