Use the List Enduser ISO API to list the information about the ISOs added by the enduser. The API response contains the list of the ISOs information, which are listed according to the UUID of the ISOs. To filter or limit the size of the list, you can specify one or more query parameters.
HTTP Request
https://hostname:4085/index.php?act=euiso
Parameters
Name | Method | Value | Description | Required |
---|---|---|---|---|
act | GET | euiso | The action will return the list of enduser iso | Yes |
reslen | GET | Int | Number of records to be returned, default is 50 | No |
page | GET | Int | Page number, each page show 50 records | No |
uid | POST | Int | The user ID of the enduser who added the iso | No |
iso | POST | text | The name of the iso file | No |
Sample Code
<?php
require_once('/usr/local/virtualizor/sdk/admin.php');
$key = 'your_api_key';
$pass = 'your_api_pass';
$ip = 'your_server_ip';
$admin = new Virtualizor_Admin_API($ip, $key, $pass);
$page = 1;
$reslen = 20;
$post = array();
$post['uid'] = '';
$post['iso'] = '';
$output = $admin->list_euiso($page, $reslen, $post);
print_r(json_encode($output));
?>
Output
{
"title": "Enduser ISO(s)",
"euisos": {
"i8fmliku9zqwamze": {
"isoid": "2",
"uuid": "i8fmliku9zqwamze",
"uid": "55",
"pid": "0",
"iso": "ttrrr.com.iso",
"size": "67108864",
"downloaded": "67108864",
"download_time": "1537185743",
"deleted": "0",
"email": "tt@rrr.com"
}
},
"timenow": 1537186167,
"time_taken": "0.127"
}