List ISO

Use the List ISO API to list information about the ISOs present on the server. These ISOs can used to create Virtual Private Servers. The API response contains the list of the information of the downloaded ISOs which are listed according to the UUIDs.

See also: Ready Made OS templates guide.

HTTP Request

https://hostname:4085/index.php?act=edittemplate&osid=OSID

Parameters

NameMethodValueDescriptionRequired
actGETisoThe action specified to perform operation and retrieve dataYes

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);

    $output = $admin->iso();

    print_r(json_encode($output));
?>

Output

{
    "title": "ISO",
    "isos": {
        "0chtrlip0ibj3y0a": {
            "uuid": "0chtrlip0ibj3y0a",
            "iso": "kali_linux3",
            "mg": null,
            "name": "kali_linux3",
            "filename": "kali_linux3.iso",
            "size": 25165824,
            "isuseriso": 0,
            "distro": "others"
        },
        "3lj93ipm8scufqea": {
            "uuid": "3lj93ipm8scufqea",
            "iso": "kali_linux4",
            "mg": null,
            "name": "kali_linux4",
            "filename": "kali_linux4.iso",
            "size": 25165824,
            "isuseriso": 0,
            "distro": "others"
        },
        "9j1gmmazc0tnd1j0": {
            "uuid": "9j1gmmazc0tnd1j0",
            "iso": "kali_linux5",
            "mg": null,
            "name": "kali_linux5",
            "filename": "kali_linux5.iso",
            "size": 25165824,
            "isuseriso": 0,
            "distro": "others"
        }
    },
    "mgs": {
        "1": {
            "mgid": "1",
            "mg_name": "testWindows",
            "mg_desc": "Test windows group for WHMCS",
            "mg_type": "kvm"
        },
    "timenow": 1540276624,
    "time_taken": "0.070"
}
Was this helpful to you?