Return virtual host names for domains

This function lists virtual host names for each domain.

Authorizations:

Responses

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object

Request samples

uapi --output=jsonpretty \
  --user=username \
  WebVhosts \
  list_domains

Response samples

Content type
application/json
{
  • "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
    }
}