vserver_vhosts_usage ()
Returns description and uses virtualization nodes.
HTTP Method: | GET | |
---|
Parameters: | sid | session id* |
---|
Returns: | HTTP code | 200 (OK) |
---|
| | Function call successful. Reply portion reply contains description and use of virtualization nodes. |
Return errors
Error code | HTTP response code | Description |
---|
1 | 400 (Bad request) |
Function was not performed, because all required parameters were not entered. Reply portion reply is empty.
|
3 | 403 (Forbidden) |
Function call failed, invalid sid parameter. Create new sid using /api/login function. Reply portion reply is empty.
|
12 | 400 (Bad request) | Function was not performed, because the virtualization node is not purchased under that account. |
CURL
curl "https://admin.systems90.cz/api/vserver_vhosts_usage?sid=%sid%%"
PHP Library
$api->vserver_vhosts_usage(array());
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<vhosts>
<vhost>
<name>name</name>
<ipv4>ipv4</ipv4>
<system_version>system_version</system_version>
<hw_configuration>
<cores>cores</cores>
<ram>ram</ram>
<disk>disk</disk>
</hw_configuration>
<plan>
<plan_id>plan_id</plan_id>
<description>description</description>
</plan>
<slot_usage>
<usage>usage</usage>
<limit>limit</limit>
</slot_usage>
<maintenance>maintenance</maintenance>
<empty>empty</empty>
</vhost>
</vhosts>
</reply>