This function matches the server's hosting plans (packages) against your criteria.
Note:
If you do not include any input parameters, the function lists all of the server's packages.
_PACKAGE_EXTENSIONS | string A space-separated list of one or more of the hosting plan's package extensions. Example: _PACKAGE_EXTENSIONS='ext1 ext2 ext3' |
integer or string The hosting plan's bandwidth limit.
Example: BWLIMIT=unlimited | |
CGI | integer Whether CGI is enabled for the hosting plan.
Example: CGI=1 |
CPMOD | string The hosting plan's cPanel interface theme. Example: CPMOD=jupiter |
DIGESTAUTH | string Whether the hosting plan enables Digest Authentication.
Example: DIGESTAUTH=n |
FEATURELIST | |
HASSHELL | integer Whether shell access is enabled for the hosting plan.
Example: HASSHELL=1 |
IP | string Whether the hosting plan grants accounts a dedicated IP address.
Example: IP=n |
LANG | string <ISO-3166-1 (alpha-2)> The hosting plan's locale. Example: LANG=en |
integer or string The percentage of failed or deferred email messages that the hosting plan can send per hour before the system rate-limits outgoing mail.
Example: MAX_DEFER_FAIL_PERCENTAGE=unlimited | |
integer or string The maximum number of emails that the hosting plan can send in one hour.
Example: MAX_EMAIL_PER_HOUR=unlimited | |
integer or string The hosting plan's maximum email account quota size, in megabytes (MB).
Example: MAX_EMAILACCT_QUOTA=unlimited | |
MAX_TEAM_USERS | integer or null [ 0 .. 7 ] The hosting plan's maximum number of Team users. Example: MAX_TEAM_USERS=7 |
integer or string The hosting plan's maximum number of addon domains.
Example: MAXADDON=unlimited | |
integer or string The hosting plan's maximum number of FTP accounts.
Example: MAXFTP=2 | |
integer or string The hosting plan's maximum number of mailing lists.
Example: MAXLST=unlimited | |
integer or string The hosting plan's maximum number of parked domains (aliases).
Example: MAXPARK=unlimited | |
integer or string The hosing plan's maximum number of email accounts.
Example: MAXPOP=unlimited | |
integer or string The hosting plan's maximum number of SQL databases.
Example: MAXSQL=unlimited | |
integer or string The hosting plan's maximum number of subdomains.
Example: MAXSUB=unlimited | |
integer or string The hosting plan's disk space limit.
Example: QUOTA=unlimited |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ matchpkgs
{- "data": {
- "pkg": {
- "BWLIMIT": "unlimited",
- "CGI": 1,
- "CPMOD": "jupiter",
- "DIGESTAUTH": "y",
- "FEATURELIST": "myfeaturelist",
- "FRONTPAGE": 0,
- "HASSHELL": "n",
- "IP": "n",
- "LANG": "en",
- "MAXADDON": 1,
- "MAXFTP": "unlimited",
- "MAXLST": 5,
- "MAXPARK": 1,
- "MAXPOP": 20,
- "MAXSQL": 1,
- "MAXSUB": 5,
- "MAX_DEFER_FAIL_PERCENTAGE": 10,
- "MAX_EMAILACCT_QUOTA": "unlimited",
- "MAX_EMAIL_PER_HOUR": 100,
- "QUOTA": 100,
- "_PACKAGE_EXTENSIONS": "ext1 ext2 ext3"
}
}, - "metadata": {
- "command": "matchpkgs",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}