vserver_vlan_list ()
This function lists all existing VLANs.
HTTP Method: | GET | |
---|
Parameters: | sid | session id* |
---|
| vserver_id | unique id of VPS. Lists only the VLANs that the VPS is a member of |
Returns: | HTTP code | 200 (OK) |
---|
| | Function call successful. Reply portion reply contains list of existing VLANs. |
Return errors
Error code | HTTP response code | Description |
---|
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_vlan_list?sid=%sid%"
PHP Library
$api->vserver_vlan_list(array());
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
<vlans>
<vlan>
<vlan_id>5670</vlan_id>
<name>TEST</name>
<internal_name>vlan5671</internal_name>
<mac_base>10:00:00:5E</mac_base>
<member_count>0</member_count>
<type>default</type>
</vlan>
</vlans>
</reply>