hostingaccount::set_bandwidth_limit
Description
Set hosting account's monthly bandwidth limit.
Request details
-
Method
POST
-
URL
https://api.hostingreborn.com/hostingaccount/set_bandwidth_limit/
Arguments
- key
- API key
- domain
- Hosting account domain name
- limit
- Monthly bandwidth limit in megabytes. A limit of zero will remove the bandwidth limit.
Responses
<?xml version="1.0" encoding="utf-8"?>
<success>true</success>
Exceptions
Examples
Setting a bandwidth limit to 100 megabytes per month
POST /hostingaccount/set_bandwidth_limit/
key=acbd18db4cc2f85cedef654fccc4a4d8
&domain=test01.example.com
&limit=100
<?xml version="1.0" encoding="utf-8"?>
<success>true</success>
Removing a bandwidth limit
POST /hostingaccount/set_bandwidth_limit/
key=acbd18db4cc2f85cedef654fccc4a4d8
&domain=test01.example.com
&limit=0
<?xml version="1.0" encoding="utf-8"?>
<success>true</success>
See also
-
hostingaccount::get_bandwidth_limit
Get a hosting account's monthly bandwidth limit