This function lists virtual host names for each domain.
uapi --output=jsonpretty \ --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
}
}