hostingaccount::get_storage_utilisation
Description
Get current storage utilisation. This is the amount of storage used divided by the storage limit, expressed as a floating point number between 0 and 1.
Multiply by 100 to get the percentage of storage used.
Hosting accounts with no storage limit will always return zero utilisation.
Request details
-
Method
GET
-
URL
https://api.hostingreborn.com/hostingaccount/get_storage_utilisation/
Arguments
- key
- API key
- domain
- Hosting account domain name
Responses
<?xml version="1.0" encoding="utf-8"?>
<storageutilisation>0.188132667542</storageutilisation>
<?xml version="1.0" encoding="utf-8"?>
<storageutilisation>false</storageutilisation>
- storageutilisation
-
- false
- Unable to retrieve storage utilisation
- Any other value
- Current storage utilisation
Exceptions
Examples
GET /hostingaccount/get_storage_utilisation/?key=acbd18db4cc2f85cedef654fccc4a4d8&domain=test01.example.com
<?xml version="1.0" encoding="utf-8"?>
<storageutilisation>0.188132667542</storageutilisation>
See also
-
hostingaccount::get
Get summary details for a hosting account
-
hostingaccount::get_bandwidth_cost
Get bandwidth cost for any period
-
hostingaccount::get_bandwidth_limit
Get current monthly bandwidth limit
-
hostingaccount::get_bandwidth_usage
Get bandwidth usage for any period
-
hostingaccount::get_bandwidth_utilisation
Get current bandwidth utilisation
-
hostingaccount::get_storage_cost
Get storage cost for any period
-
hostingaccount::get_storage_limit
Get current storage limit
-
hostingaccount::get_storage_usage
Get storage usage for any period