vserver_software_iso_mount ()
The function is used to connect the given ISO image with additional software, to the specified VPS.
HTTP Method: | GET | |
---|
Parameters: | sid | session id* |
---|
| vserver_id | unique id of VPS* |
| iso_id | unique ISO id* |
Returns: | HTTP code | 200 (OK) |
---|
| | Function call was successful, an ISO image was attached to the VPS. 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.
|
5 | 403 (Forbidden) |
Function has not been done because it's either manipulating a VPS that is not under your account management, or trying to attach a non-existing ISO image. Reply portion reply is empty.
|
CURL
curl "https://admin.hosting90.eu/api/vserver_software_iso_mount?sid=%sid%&vserver_id=%vserver_id%&iso_id=%iso_id%"
PHP Library
$api->vserver_software_iso_mount(array(
'vserver_id' => %vserver_id%,
'iso_id' => %iso_id%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
</reply>