cPanel API 2 Modules - SubDomain
Warning:
The cPanel API 2 system is deprecated. We strongly recommend that you use UAPI instead of cPanel API 2.
Introduction
The SubDomain module manages subdomains.
Important:
When you enable a non-Standard Node server profile, the system disables API calls associated with that profile's disabled roles.
Available functions
-
cPanel API 2 Functions -
SubDomain::addsubdomain
— This function creates a subdomain. -
cPanel API 2 Functions -
SubDomain::changedocroot
— This function changes a subdomain's document root. -
cPanel API 2 Functions -
SubDomain::delsubdomain
— This function deletes a subdomain. -
cPanel API 2 Functions -
SubDomain::getreservedsubdomains
— This function returns a list of reserved subdomains. -
cPanel API 2 Functions -
SubDomain::listsubdomains
— This function lists the cPanel account's subdomains. -
cPanel API 2 Functions -
SubDomain::validregex
— This function returns a regular expression to use to validate a subdomain.