vserver_vlan_edit ()
This function rename specific existing VLANs.
HTTP Method: | GET | |
---|---|---|
Parameters: | sid | session id* |
vlan_id | unique id of VLAN* | |
name | new VLAN name* | |
Returns: | HTTP code | 200 (OK) |
Function call successful. Reply portion reply is empty. |
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. |
4 | 400 (Bad request) | Function call failed, some parameter(s) have invalid value (e.g. contains invalid characters. Reply portion reply specifies invalid parameters. |
5 | 403 (Forbidden) | Function call failed, you are probably trying to manipulate VLAN that is not under your account. Reply portion reply is empty. |
CURL
curl "https://admin.systems90.cz/api/vserver_vlan_edit?sid=%sid%&vlan_id=%vlan_id%&name=%name%
PHP Library
$api->vserver_vlan_edit(array(
'vlan_id' => %vlan_id%,
'name' => %name%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
</reply>