api.vm.qga

/vm/(hostname_or_uuid)/qga/(command)

api.vm.qga.views.vm_qga(*args, **kwargs)

Run (PUT) a command via Qemu Guest Agent.

PUT /vm/(hostname_or_uuid)/qga/(command)
DC-bound?:
Permissions:
Asynchronous?:
Parameters:
  • hostname_or_uuid (string) – required - Server hostname or uuid
  • command (string) –

    required - QGA command. Available commands are:

    • fsfreeze <status|freeze|thaw>
    • info
    • ping
    • sync
    • reboot
    • poweroff
    • get-time
    • set-time [epoch time in nanoseconds]
  • data.params (array) – List of command parameters
Status Codes:

es example:

es set /vm/example.cust.erigones.com/qga/get-time
{
    "url": "https://my.erigones.com/api/vm/example.cust.erigones.com/qga/get-time",
    "status": 200,
    "method": "PUT",
    "text": {
        "status": "SUCCESS",
        "result": {
            "message": "1470161967939841000",
            "returncode": 0
        },
        "task_id": "0-a2327793-2600-423d-8f07"
    }
}