vserver_commands ()
Lists the list of tasks performed on that VPS. This is not an API call history, but acts that require communication with a VPS or changing its settings.
HTTP Method: | GET | |
---|
Parameters: | sid | session id* |
---|
| vserver_id | unique id of VPS* |
Returns: | HTTP code | 200 (OK) |
---|
| | Function call successful. Reply portion reply contains list of tasks. |
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 performed, because it is probably an attempt to manipulate VPS that is not in your administration. Reply portion reply is empty.
|
CURL
curl "https://admin.hosting90.eu/api/vserver_commands?sid=%sid%&vserver_id=%vserver_id%"
PHP Library
$api->vserver_commands(array(
'vserver_id' => %vserver_id%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
<sys_commands>
<sys_command>
<command>Creating an image</command>
<identifier>image_create</identifier>
<insert_time>17.9.2018 15:56:22</insert_time>
<complete_time />
<running>0</running>
<complete>0</complete>
<progress />
</sys_command>
<sys_command>
<command>Creation of server or change of parameters</command>
<identifier>create_or_param_change</identifier>
<insert_time>25.7.2018 09:45:06</insert_time>
<complete_time>25.7.2018 09:45:20</complete_time>
<running>0</running>
<complete>1</complete>
<progress />
</sys_command>
<sys_command>
<command>Creation of server or change of parameters</command>
<identifier>create_or_param_change</identifier>
<insert_time>23.7.2018 12:21:48</insert_time>
<complete_time>23.7.2018 12:22:03</complete_time>
<running>0</running>
<complete>1</complete>
<progress />
</sys_command>
<sys_command>
<command>Creation of server or change of parameters</command>
<identifier>create_or_param_change</identifier>
<insert_time>17.7.2018 12:16:16</insert_time>
<complete_time>17.7.2018 12:16:37</complete_time>
<running>0</running>
<complete>1</complete>
<progress />
</sys_command>
<sys_command>
<command>Creation of server or change of parameters</command>
<identifier>create_or_param_change</identifier>
<insert_time>17.7.2018 12:07:03</insert_time>
<complete_time>17.7.2018 12:07:17</complete_time>
<running>0</running>
<complete>1</complete>
<progress />
</sys_command>
<sys_command>
<command>Start of installation from CD</command>
<identifier>install_from_iso</identifier>
<insert_time>16.7.2018 09:14:09</insert_time>
<complete_time>16.7.2018 09:14:32</complete_time>
<running>0</running>
<complete>1</complete>
<progress />
</sys_command>
</sys_commands>
</reply>