Hosting Virtual Host¶
/hosting-virtual-host/{id}¶
GET¶
Get details about the virtual host.
JSON response
object: Hosting Virtual Host
Sample
curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-virtual-host/{id}" | python -m json.tool
PUT¶
Update details for the virtual host.
JSON request
|
boolean |
If true, sub-domain management based on created folders is enabled. If the customer would create a folder ‘test’ in his public_html folder, the hostname ‘test.<domain>.<tld>’ would point directly to this folder. |
|
string |
The location of the HTTP error 400 document |
|
string |
The location of the HTTP error 401 document |
|
string |
The location of the HTTP error 403 document |
|
string |
The location of the HTTP error 404 document |
|
string |
The location of the HTTP error 500 document |
JSON response
object: Hosting Virtual Host
Possible errors
Sample
curl \
--request PUT \
--user "{{api_username}}:{{api_key}}" \
--data '
{
"is_sub_domains_enabled": 1,
"error_document_400": "/errors/400.html",
"error_document_401": "/errors/401.html",
"error_document_403": "/errors/403.html",
"error_document_404": "/errors/404.html",
"error_document_500": "/errors/500.html",
}
' \
"{{api_base_url}}/hosting-virtual-host/{id}" | python -m json.tool