[ovirt-devel] Setting Migration Mode via SDK

2019-08-09 Thread donagh . moran
Hi In the VM Host settings, I need to set Migration mode ( Migration Options ) to "Do not allow migration" from the SDK but I do not see any functionality that would allow me to preform this task. Is there any method available that would let me achieve this from my Java code? Any help would be

[ovirt-devel] donagh.mo...@oracle.com

2019-08-09 Thread donagh . moran
Email address in subject Best Regards Donagh ___ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/co

[ovirt-devel] Re: Setting Migration Mode via SDK

2019-08-12 Thread donagh . moran
Hi Fred Yes this is exactly what I was looking for. Thanks for the help much appreciated. Best Regards Donagh ___ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/

[ovirt-devel] Setting Start Running On Specific host radio button via the SDK

2019-08-12 Thread donagh . moran
Hi I'm looking to target the radio button for Specific host, Does anyone have info on what SDK object controls this feature? Even better if anyone can point me towards some documentation that maps oVirt UI functionality to the SDK endpoints? Best Regards Donagh __

[ovirt-devel] Re: Setting Start Running On Specific host radio button via the SDK

2019-08-12 Thread donagh . moran
FYI I can set the specific host value with this REST command, but this doesn't set the radio button vms.update() .vm(vm().placementPolicy( vmPlacementPolicy() .hosts(host() .name(vdsmH

[ovirt-devel] Ovirt SDK: Problems retrieving the storage domain, status null when not in active or unattached state

2019-09-27 Thread donagh . moran
Hi as the subject suggests I'm having problems reading the state of the Storage Domain when not in one of two states active or unattached. I am developing in Java an reading the state with the piece of code below StorageDomain sd = sysService.storageDomainsService().list() .search(storag

[ovirt-devel] Re: Ovirt SDK: Problems retrieving the storage domain, status null when not in active or unattached state

2019-10-11 Thread donagh . moran
Hi Ondra Thanks for the info, much appreciated. We were able to retrieve the status using the method you suggested. It does seem a bit strange that some of the states are available via the storagedomains endpoint while others are not. I'll keep an eye on this issue to see what your colleague T

[ovirt-devel] SDK: Editing VM memory size and max memory attribute

2019-11-20 Thread donagh . moran
Ovirt version 4.2.8 Hi I'm attempting to set the memory size or the max memory attributes of a VM via the Vmbuilder. Both of the following rest calls result in the same error on both vmStatic.memSizeMb and vmStatic.maxMemorySizeMb VmService vms = sysService.vmsService().list().search(vmName).