Hosting Virtual Host

/hosting-virtual-host/{id}

GET

Get details about the virtual host.

JSON response

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

is_sub_domains_enabled 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.
error_document_400 string The location of the HTTP error 400 document
error_document_401 string The location of the HTTP error 401 document
error_document_403 string The location of the HTTP error 403 document
error_document_404 string The location of the HTTP error 404 document
error_document_500 string The location of the HTTP error 500 document

JSON response

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