AddonDomain
3 functions, invoked through the cpanel_uapi tool.
List, add or remove addon domains (each backed by a subdomain) → SubDomain, DomainInfo
cpanel_uapi(service_id, module="AddonDomain", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.addaddondomain POST mutating#
Create an addon domain
This function creates an addon domain, backed by a new subdomain of the account's main domain.
JetHost note: ALWAYS pass dir, e.g. public_html/<newdomain>. When dir is omitted the document root is /home/<user>/<subdomain>, outside public_html. The domain does not need to exist in WHMCS; cPanel rejects a domain that is already hosted on another account, and a repeated add fails because the backing subdomain already exists.
deladdondomain POST mutating#
Delete an addon domain
This function deletes an addon domain together with its backing subdomain.
JetHost note: subdomain MUST be the domainkey form label_maindomain.tld returned by listaddondomains; cPanel refuses a value that does not correspond to domain.
listaddondomains GET#
List addon domains
This function lists the account's addon domains. Each row carries domain, domainkey, subdomain, rootdomain, dir, basedir, fullsubdomain and status.
JetHost note: status is a redirect description string (e.g. not redirected), not a success flag. domainkey (label_maindomain.tld) is the value deladdondomain expects for its subdomain parameter.
No parameters.