[ovirt-users] Re: Is there a way to tell whether a permission set for a VM is inherited using REST API?

2019-04-22 Thread Shani Leviim
Hi Anton, You can assign permissions to the VM by using the following syntax: POST /ovirt-engine/api/vms/ yyy/permissions username For further information, you can visit here: http://ovirt.github.io/ovirt-engine-api-model/master/#services/assigned_permissions/methods/add Hope it

[ovirt-users] Re: Is there a way to tell whether a permission set for a VM is inherited using REST API?

2019-04-22 Thread Tentaclius
Hi Shani, thanks for your reply. My question is not about assigning permissions, but rather about querying permissions assigned to a given VM. I need to get a list of permissions, assigned to the VM without the permissions this VM inherits from parent objects. Unluckily for me the /ovirt-engine/a

[ovirt-users] Re: Is there a way to tell whether a permission set for a VM is inherited using REST API?

2019-04-22 Thread Tentaclius
Hi Shani, I'm aware of this attribute, but my understanding is it only applies for a vm to template or template to vm operations. I don't see how it can be used in order to get the list of vm-specific permissions for an existing VM. Could you please provide an example of that? Thanks and regards,

[ovirt-users] Re: Is there a way to tell whether a permission set for a VM is inherited using REST API?

2019-04-23 Thread Ondra Machacek
Actually this is bug, as I see we fill the tag for all permissions, even for inherited permissions, but it should be set only for direct permissions, that's how you would distinguish it. Same as you say you can do it via following the specific permission id. So I am afraid there is no effectiv

[ovirt-users] Re: Is there a way to tell whether a permission set for a VM is inherited using REST API?

2019-04-23 Thread Tentaclius
Hi Ondra, thanks a lot! This info really helps. I will be using the direct link as a workaround for now and will check future versions for the fix. Best regards, Anton. On Tue, Apr 23, 2019 at 10:06 AM Ondra Machacek wrote: > Actually this is bug, as I see we fill the tag for all > permission

[ovirt-users] Re: Is there a way to tell whether a permission set for a VM is inherited using REST API?

2019-04-23 Thread Tentaclius
Hi Ondra, sorry, one more question. Do you know if the bug already exists for this issue? If so, could you please provide the link? Otherwise, should we open a bugzilla item for this? Thanks and regards, Anton. On Tue, Apr 23, 2019 at 10:25 AM Tentaclius wrote: > Hi Ondra, > > thanks a lot! Th