This function lists virtual host names for each domain.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --user=username WebVhosts list_domains
{- "apiversion": 3,
- "func": "list_domains",
- "module": "WebVhosts",
- "result": {
- "data": [
- {
- "domain": "example.com",
- "proxy_subdomains": [
- "cpanel",
- "webmail",
- "autodiscover",
- "whm",
- "webdisk"
], - "vhost_is_ssl": 1,
- "vhost_name": "hostname.example.com"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}