@put('/:hypervisor/:host/guests/:guest_id/reboot')
def reboot_guest(hypervisor, host, guest_id):
    response.content_type = "application/json"
    manager = create_manager(hypervisor, host)

    data = request.body.readline()
    force = False

    if data:
        data = json.loads(data)
        force = data.get('force')

    manager.guest_reboot(guest_id, force=force)
    manager.logout()

    return json.dumps({"action": "reboot", "message": "ok"})
Reboot a guest based on the given guest_id
dataset/ETHPy150Open locaweb/simplestack/src/simplestack/server.py/reboot_guest