curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/labs/User1/Lab%201.unl/nodes
or
curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/labs/User1/Lab%201.unl/nodes/1
Code: Select all
{
    "code": 200,
    "status": "success",
    "message": "Successfully listed node (60025).",
    "data": {
        "console": "telnet",
        "config": "1",
        "delay": 0,
        "left": 561,
        "icon": "JuniperSRX.png",
        "image": "vsrxng-21.R41.12",
        "name": "NAME",
        "status": 0,
        "template": "vsrxng",
        "type": "qemu",
        "sat": 0,
        "top": 312,
        "url": "html5/#/client/unknowntoken",
        "cpulimit": 0,
        "cpu": 2,
        "ethernet": 3,
        "ram": 4096,
        "uuid": "1938dacd-6cf0-4130-9cf3-2b5d60e2ed53",
        "rdp_user": "",
        "rdp_password": "",
        "firstmac": "50:01:00:02:00:00",
        "qemu_options": "-machine type=pc,accel=kvm -cpu host -serial mon:stdio -nographic -no-user-config -nodefaults -rtc base=utc",
        "qemu_version": "4.1.0",
        "qemu_arch": "x86_64",
        "qemu_nic": "virtio-net-pci"
    }
}