[ovirt-users] OVirt API question

Костя Климук katch.pr at gmail.com
Mon Jul 25 06:43:11 UTC 2016


Hello, OVirt community!

I have some problems in understanding with OVirt (v 3.6.0) API.
I'm trying to create user with specifying his roles, by using such
signature in POST call:

<user>
>
    <user_name>testuser at saml-auth</user_name>
>
    <roles>
>
        <role id="some_role_id1"/>
>
        <role id="some_role_id2"/>
>
        <role id="some_role_id3"/>
>
    </roles>
>
</user>
>

The user is created but without the roles.
The next issues, that I encountered is associated with updating of existing
user (adding the roles to him). I am trying to do PUT call on
.../ovirt-engine/api/users/long_user_id/roles :

<role id="some_role_id1"/>


But this doesn't work.
Please, give we insight in what I am doing wrong.


-------------
Sincerely,
Konstantin Klymuk.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160725/b58947aa/attachment-0001.html>


More information about the Users mailing list