Update reseller's bandwidth and disk quotas
This function sets a reseller's bandwidth and disk quotas.
Query parameters
The reseller's username.
The reseller's maximum total number of accounts.
Important:
The system only enforces this maximum if you set the enable_account_limit value to 1.
The reseller's total bandwidth limit.
Important:
The system only enforces this limit if you set the enable_resource_limits value to 1.
The reseller's total disk space usage limit.
Important:
The system only enforces this limit if you set the enable_resource_limits value to 1.
Whether to limit the reseller's total number of accounts.
- 1 — Limit.
- 0 — Do not limit.
Note:
Use this parameter with the account_limit parameter.
Whether the reseller can oversell accounts.
- 1 — The reseller can oversell accounts.
- 0 — The reseller cannot oversell accounts.
Important:
The system only enforces this limit if you set the enable_resource_limits value to 1.
Whether the reseller can oversell bandwidth.
- 1 — The reseller can oversell bandwidth.
- 0 — The reseller cannot oversell bandwidth.
Important:
The system only enforces this limit if you set the enable_resource_limits and the enable_overselling values to 1.
Whether the reseller can oversell disk space.
- 1 — The reseller can oversell disk space.
- 0 — The reseller cannot oversell disk space.
Important:
The system only enforces this limit if you set the enable_resource_limits and the enable_oversellng values to 1.
Whether to apply package limit numbers to the reseller.
- 1 — Enable package limit numbers.
- 0 — Disable package limit numbers.
Whether to apply package limits to the reseller.
- 1 — Enable package limits.
- 0 — Disable package limits.
Whether to limit the reseller's resources.
- 1 — Limit resources.
- 0 — Do not limit resources.
Note:
Use this parameter with the bandwidthlimit, diskspace_limit, enable_overselling, enable_overselling_bandwidth, enable_overselling_diskspace, enable_overselling, enable_package_limits, and enable_package_limit_numbers parameters.
Response
HTTP Request was successful.
Example response
{
"metadata": {
"command": "setresellerlimits",
"reason": "OK",
"result": 1,
"version": 1
}
}