vserver_list_license ()
This function lists all available licenses for a VPS.
HTTP Method: | GET | |
---|
Parameters: | sid | session id* |
---|
Returns: | HTTP code | 200 (OK) |
---|
| | Function call successful. Reply portion reply contains list of available licenses. |
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_list_license?sid=%sid%&vserver_id=%vserver_id%"
PHP Library
$api->vserver_list_license(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>
<licenses>
<license>
<license_name>win2008r2web</license_name>
<description>Microsoft Windows Server Standard Edition - P73-04837</description>
<price>520.00</price>
</license>
</licenses>
</reply>