Get Virtualizor

List Enduser ISO

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

NameMethodValueDescriptionRequired
actGETeuisoThe action will return the list of enduser isoYes
reslenGETIntNumber of records to be returned, default is 50No
pageGETIntPage number, each page show 50 recordsNo
uidPOSTIntThe user ID of the enduser who added the isoNo
isoPOSTtextThe name of the iso fileNo

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"
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list