cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Account → Get upgrade opportunities

AI-generated

Summary

Retrieve a list of cPanel accounts that are eligible for upgrades based on their disk usage thresholds and usage nearness criteria.

Inputs

  • Disk Threshold Blocks — Specify a fixed number of disk blocks to use as an alternative threshold for disk usage to trigger upgrade opportunities. Defaults to 2097152 blocks if not provided.
  • Nearness Fraction — Set the fraction (between 0 and 1) representing how close an account's usage must be to the threshold to consider it "near" and thus eligible for upgrade opportunities. Defaults to 0.8.

Output shape

a single JSON object containing the list of accounts that meet the upgrade criteria based on disk usage thresholds and nearness fraction parameters.

The output includes all accounts whose disk usage meets or exceeds the specified threshold or nearness fraction criteria. If no parameters are specified, default values are applied. The response strictly represents upgrade candidates without pagination.

Links

Discussion