Hi, To enable global maintenance using Python SDK you need to fetch hosted engine VM and then call maintenance method on it:
https://ovirt.github.io/python-ovirt-engine-sdk4/4.5/services.m.html#ovirtsdk4.services.VmService.maintenance Regards, Martin On Fri, Jan 20, 2023 at 6:27 AM <[email protected]> wrote: > Hi! > > I know how to set global maintenance mode using python SDK, something like > > vms_service.vm_service(vm.id).maintenance(maintenance_enabled=True) > > on HostedEngine. > > But now I try to find if global maintenance is enabled. > And I'm going to give up - I can't find how to do it in documentation... > > Is there a way to get this info? > > Regards! > _______________________________________________ > Users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/[email protected]/message/U4RVWMBDCWECKPTKFJY2XLJZ6AW2DY6P/ > -- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.
_______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected] Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/[email protected]/message/CNEBNRTMAA3T2REMGVWDEFCA2N6QYSHB/

