/users/{name}/limits
0.2.0Unchanged since publicationGet a customer's resource counts and package limits
usersreadallThe response includes the customer name, the package name, and used and limit values for domains, mail accounts, databases, FTP accounts, and cron jobs. For a reseller, it also includes the number of customers they own and the corresponding limit. If UrbeStack set aside the customer's crontab because the account is suspended or the package disallows cron, the cron job count comes from the saved crontab.
The response gives disk and bandwidth limits in bytes and reports whether the package allows shell access, on-demand backups, cron, and BotMail (botmail). A limit of 0 means unlimited. For an account without a package, package is null, every limit is 0, and all four feature flags are true.
Customers can request their own limits, resellers can request limits for their customers, and administrators can request limits for any customer. Returns 400 if the requested account is an administrator.
As a command
Run as root on the serverParameters
namepath ·UsernameRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/users/alice/limits" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"limits": {
"backups": true,
"bandwidth_limit_bytes": 1,
"cron": true,
"cron_jobs": {
"limit": 1,
"used": 1
},
"customers": {
"limit": 1,
"used": 1
},
"databases": {
"limit": 1,
"used": 1
},
"disk_limit_bytes": 1,
"domains": {
"limit": 1,
"used": 1
},
"ftp_accounts": {
"limit": 1,
"used": 1
},
"mail_accounts": {
"limit": 1,
"used": 1
},
"name": "alice",
"package": "basic",
"shell": true
}
}Errors
8 errors, each a status and a sentence400--user is required400<name> is an administrator: administrators have no package400Invalid setting key400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication required404Setting '<key>' not found404User '<user>' not foundurbestack.com/docs/api/get-users-name-limits/