vserver_subnet_usage ()
Lists information about all client subnets.
HTTP Method: | GET | |
---|
Parameters: | sid | session id* |
---|
Returns: | HTTP code | 200 (OK) |
---|
| | Function call successful. Reply portion reply contains a list of available programs. |
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.
|
CURL
curl "https://admin.hosting90.eu/api/vserver_subnet_usage?sid=%sid%"
PHP Library
$api->vserver_subnet_usage(array());
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<subnets>
<subnet>
<subnet_id>subnet_id</subnet_id>
<ipv4_subnet>ipv4_subnet</ipv4_subnet>
<ipv6_subnet>ipv6_subnet</ipv6_subnet>
<vlan>vlan</vlan>
<netsize>netsize</netsize>
<free>free</free>
<reserved>reserved</reserved>
<assigned_vserver>assigned_vserver</assigned_vserver>
<assigned_secondary>assigned_secondary</assigned_secondary>
<quarantine>quarantine</quarantine>
</subnet>
</subnets>
</reply>