I was trying to use both the rest api to view a user's vm information. I found that
the REST APIs always returned an authentication error if the account I had logged into was
not an ovirt administrator. I am guessing that either (a) I am using the wrong URL in the
REST api or (b) you must be some kind of admin to access the REST APIs. I noticed the same
behavior when I was using the ovirt-shell tool.
For example, I was trying to follow the instructions in
http://wiki.ovirt.org/wiki/How_to_Connect_to_SPICE_Console_Without_Portal to get the list
of VMs (presumably for the user that is logging in), I get an unauthorized error. If the
user account I login with in the curl or ovirt-shell connect statement is an admin, I get
the list of VMs.
So my question here is does the REST-API need admin privileges or am I using a url that
requires admin privileges whereas some others don't. And if it is the latter, is there
somewhere that documents the various rest api resources? For example, to go back to the
"How to connect to Spice console ..." article, how would one use the REST API to
fetch one's virtual machines, their status, and connection info for them?
Thanks,
Brian