Development Guides Home >> Guide to Standardized Hooks >> Hookable Events
The DiskQuota category's events occur during disk quota processing.
This event triggers whenever a cPanel account approaches its disk quota.
- Action code runs as:
root - Blocking attribute: Unavailable.
- Escalate privileges attribute: N/A
pre- The hook's action code runs when an account's disk usage reachescriticalstatus.
| Return | Type | Description | Possible values | Example |
|---|---|---|---|---|
blocks_limit | integer | The cPanel account's disk quota, measured in bytes. | A positive integer. | 1000000 |
blocks_used | integer | The cPanel account's amount of disk space used, measured in bytes. | A positive integer. | 999999 |
contact_info | hash | A hash that contains information about the cPanel account's contact settings. | ||
cpuser | hash | A hash that contains information about the cPanel user account. | ||
inodes_used | integer | The cPanel account's amount of inodes used. | A positive integer. | 12345678 |
inodes_limit | integer | The cPanel account's inodes quota. | A positive integer. | 123456789 |
This event triggers whenever a cPanel account exceeds its disk quota.
- Action code runs as:
root - Blocking attribute: Unavailable.
- Escalate privileges attribute: N/A
pre- The hook's action code runs when an account exceeds its disk quota.
| Return | Type | Description | Possible values | Example |
|---|---|---|---|---|
blocks_limit | integer | The cPanel account's disk quota, measured in bytes. | A positive integer. | 1000000 |
blocks_used | integer | The cPanel account's amount of disk space used, measured in bytes. | A positive integer. | 999999 |
contact_info | hash | A hash that contains information about the cPanel account's contact settings. | ||
cpuser | hash | A hash that contains information about the cPanel user account. | ||
inodes_used | integer | The cPanel account's amount of inodes used. | A positive integer. | 12345678 |
inodes_limit | integer | The cPanel account's inodes quota. | A positive integer. | 123456789 |
- Action code runs as:
root - Blocking attribute: Unavailable.
- Escalate privileges attribute: N/A
pre- The hook's action code runs when an account's disk usage reacheswarnstatus.
| Return | Type | Description | Possible values | Example |
|---|---|---|---|---|
blocks_limit | integer | The cPanel account's disk quota, measured in bytes. | A positive integer. | 1000000 |
blocks_used | integer | The cPanel account's amount of disk space used, measured in bytes. | A positive integer. | 999999 |
contact_info | hash | A hash that contains information about the cPanel account's contact settings. | ||
cpuser | hash | A hash that contains information about the cPanel user account. | ||
inodes_used | integer | The cPanel account's amount of inodes used. | A positive integer. | 12345678 |
inodes_limit | integer | The cPanel account's inodes quota. | A positive integer. | 123456789 |