Return hosting plan configuration

This function lists a hosting plan's (package's) settings.

SecurityBasicAuth
Request
query Parameters
pkg
required
string

The hosting plan's name.

Example: pkg=package1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/getpkginfo
Request samples
whmapi1 --output=jsonpretty \
  getpkginfo \
  pkg='package1'
Response samples
application/json
{
  • "data": {
    • "pkg": {
      • "BWLIMIT": "unlimited",
      • "CGI": 1,
      • "CPMOD": "jupiter",
      • "DIGESTAUTH": "n",
      • "FEATURELIST": "myfeaturelist",
      • "FRONTPAGE": 0,
      • "HASSHELL": 1,
      • "IP": 1,
      • "LANG": "en",
      • "MAXADDON": 1,
      • "MAXFTP": 2,
      • "MAXLST": "unlimited",
      • "MAXPARK": 1,
      • "MAXPOP": 20,
      • "MAXSQL": 1,
      • "MAXSUB": 5,
      • "MAX_DEFER_FAIL_PERCENTAGE": 10,
      • "MAX_EMAILACCT_QUOTA": "unlimited",
      • "MAX_EMAIL_PER_HOUR": 100,
      • "MAX_TEAM_USERS": 7,
      • "QUOTA": 100,
      • "_PACKAGE_EXTENSIONS": ""
      }
    },
  • "metadata": {
    • "command": "getpkginfo",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}