<div dir="ltr"><div><div><div><div><div><div><div><font size="2">Hi,<br></font></div><font size="2">to get a reference for users and roles for a specific quota you can use:<br><br>.../ovirt-engine/api/datacenters/{datacenter: id}/quotas/{quota: id}/permissions<br><br></font></div><font size="2"><br></font></div><font size="2">for example:<br><br></font></div><font size="2">GET  <a href="http://localhost:8080/ovirt-engine/api/datacenters/59746a95-0352-0329-02fd-00000000026f/quotas/a86e8efd-7650-412d-8e3d-5d9729e891d6/permissions">http://localhost:8080/ovirt-engine/api/datacenters/59746a95-0352-0329-02fd-00000000026f/quotas/a86e8efd-7650-412d-8e3d-5d9729e891d6/permissions</a><br><br></font></div><font size="2">result: <br><span style="color:rgb(0,0,0)"><br></span></font><div class="gmail-node" style="margin:1px 0px;font-family:monospace;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div class="gmail-processing"><span style="color:rgb(0,0,0)"><font size="2">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot; ?&gt;</font></span></div></div><div class="gmail-node" style="margin:1px 0px;font-family:monospace;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="color:rgb(0,0,0)"><font size="2"><span style="cursor: pointer;"></span><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">permissions</span><span class="gmail-punctuation">&gt;</span></font></span><div class="gmail-nodeMargin" style="margin-left:44px"><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span style="cursor: pointer;"></span><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">permission</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/groups/eee00000-0000-0000-0000-123456789eee/permissions/58ca605c-010d-0307-0224-0000000001a9&quot;</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;58ca605c-010d-0307-0224-0000000001a9&quot;</span><span class="gmail-punctuation">&gt;</span></font></span><div class="gmail-nodeMargin" style="margin-left:44px"><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">group</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/groups/eee00000-0000-0000-0000-123456789eee&quot;</span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;eee00000-0000-0000-0000-123456789eee&quot;</span><span class="gmail-punctuation"><span class="gmail-Apple-converted-space"> </span>/&gt;</span></font></span></div><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">role</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/roles/def00021-0000-0000-0000-def000000015&quot;</span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;def00021-0000-0000-0000-def000000015&quot;</span><span class="gmail-punctuation"><span class="gmail-Apple-converted-space"> </span>/&gt;</span></font></span></div></div><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-arrowEmpty" style="display:inline-block;width:24px;height:18px"> </span><span class="gmail-punctuation end">&lt;/</span><span class="gmail-tagname end">permission</span><span class="gmail-punctuation">&gt;</span></font></span></div><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span style="cursor: pointer;"></span><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">permission</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/users/59746ab4-033f-0194-0334-000000000214/permissions/59746ab4-019c-0034-010f-000000000206&quot;</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;59746ab4-019c-0034-010f-000000000206&quot;</span><span class="gmail-punctuation">&gt;</span></font></span><div class="gmail-nodeMargin" style="margin-left:44px"><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">role</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/roles/00000000-0000-0000-0000-000000000001&quot;</span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;00000000-0000-0000-0000-000000000001&quot;</span><span class="gmail-punctuation"><span class="gmail-Apple-converted-space"> </span>/&gt;</span></font></span></div><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">user</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/users/59746ab4-033f-0194-0334-000000000214&quot;</span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;59746ab4-033f-0194-0334-000000000214&quot;</span><span class="gmail-punctuation"><span class="gmail-Apple-converted-space"> </span>/&gt;</span></font></span></div></div><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-arrowEmpty" style="display:inline-block;width:24px;height:18px"> </span><span class="gmail-punctuation end">&lt;/</span><span class="gmail-tagname end">permission</span><span class="gmail-punctuation">&gt;</span></font></span></div><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span style="cursor: pointer;"></span><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">permission</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/users/59746ab4-033f-0194-0334-000000000214/permissions/f19ee089-9c64-435c-92cc-83a7027cae51&quot;</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;f19ee089-9c64-435c-92cc-83a7027cae51&quot;</span><span class="gmail-punctuation">&gt;</span></font></span><div class="gmail-nodeMargin" style="margin-left:44px"><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">role</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/roles/def0000a-0000-0000-0000-def00000000a&quot;</span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;def0000a-0000-0000-0000-def00000000a&quot;</span><span class="gmail-punctuation"><span class="gmail-Apple-converted-space"> </span>/&gt;</span></font></span></div><div class="gmail-node" style="margin:1px 0px"><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-punctuation">&lt;</span><span class="gmail-tagname">user</span><span class="gmail-Apple-converted-space"> </span><span class="gmail-attname">href</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;/ovirt-engine/api/users/59746ab4-033f-0194-0334-000000000214&quot;</span><span class="gmail-attname">id</span><span class="gmail-punctuation">=</span><span class="gmail-attribute">&quot;59746ab4-033f-0194-0334-000000000214&quot;</span><span class="gmail-punctuation"><span class="gmail-Apple-converted-space"> </span>/&gt;</span></font></span></div></div><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-arrowEmpty" style="display:inline-block;width:24px;height:18px"> </span><span class="gmail-punctuation end">&lt;/</span><span class="gmail-tagname end">permission</span><span class="gmail-punctuation">&gt;</span></font></span></div></div><span style="color:rgb(0,0,0)"><font size="2"><span class="gmail-arrowEmpty" style="display:inline-block;width:24px;height:18px"> </span><span class="gmail-punctuation end">&lt;/</span><span class="gmail-tagname end">permissions</span><span class="gmail-punctuation">&gt;</span></font></span></div><font size="2"><br></font></div><font size="2">Regards,<br></font></div><font size="2">Yanir Quinn<br></font><div><div><div><div><div><div><div><font size="2"><br><br><br></font><div><font size="2"><br></font><br></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 4, 2017 at 1:01 PM, Staniforth, Paul <span dir="ltr">&lt;<a href="mailto:P.Staniforth@leedsbeckett.ac.uk" target="_blank">P.Staniforth@leedsbeckett.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Soumya,<br>
                    You can copy  quotas, what I can&#39;t figure out is how to set a consumer from the API.<br>
<br>
In table 7.263 Attributes Summary at<br>
<a href="https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/rest_api_guide/types#types-quota" rel="noreferrer" target="_blank">https://access.redhat.com/<wbr>documentation/en-us/red_hat_<wbr>virtualization/4.1/html/rest_<wbr>api_guide/types#types-quota</a><br>
<br>
it show a users attribute but I only get<br>
<br>
&lt;quota href=&quot;/ovirt-engine/api/<wbr>datacenters/00000001-0001-<wbr>0001-0001-00000000012f/quotas/<wbr>7e3f074f-9911-40b8-a8ed-<wbr>a52f7e933fff&quot; id=&quot;7e3f074f-9911-40b8-a8ed-<wbr>a52f7e933fff&quot;&gt;<br>
&lt;name&gt;testcli&lt;/name&gt;<br>
&lt;link href=&quot;/ovirt-engine/api/<wbr>datacenters/00000001-0001-<wbr>0001-0001-00000000012f/quotas/<wbr>7e3f074f-9911-40b8-a8ed-<wbr>a52f7e933fff/permissions&quot; rel=&quot;permissions&quot;/&gt;<br>
&lt;link href=&quot;/ovirt-engine/api/<wbr>datacenters/00000001-0001-<wbr>0001-0001-00000000012f/quotas/<wbr>7e3f074f-9911-40b8-a8ed-<wbr>a52f7e933fff/<wbr>quotastoragelimits&quot; rel=&quot;quotastoragelimits&quot;/&gt;<br>
&lt;link href=&quot;/ovirt-engine/api/<wbr>datacenters/00000001-0001-<wbr>0001-0001-00000000012f/quotas/<wbr>7e3f074f-9911-40b8-a8ed-<wbr>a52f7e933fff/<wbr>quotaclusterlimits&quot; rel=&quot;quotaclusterlimits&quot;/&gt;<br>
&lt;cluster_hard_limit_pct&gt;20&lt;/<wbr>cluster_hard_limit_pct&gt;<br>
&lt;cluster_soft_limit_pct&gt;80&lt;/<wbr>cluster_soft_limit_pct&gt;<br>
&lt;data_center href=&quot;/ovirt-engine/api/<wbr>datacenters/00000001-0001-<wbr>0001-0001-00000000012f&quot; id=&quot;00000001-0001-0001-0001-<wbr>00000000012f&quot;/&gt;<br>
&lt;storage_hard_limit_pct&gt;20&lt;/<wbr>storage_hard_limit_pct&gt;<br>
&lt;storage_soft_limit_pct&gt;80&lt;/<wbr>storage_soft_limit_pct&gt;<br>
&lt;/quota&gt;<br>
<br>
Regards,<br>
               Paul S.<br>
<br>
______________________________<wbr>__________<br>
From: <a href="mailto:users-bounces@ovirt.org">users-bounces@ovirt.org</a> &lt;<a href="mailto:users-bounces@ovirt.org">users-bounces@ovirt.org</a>&gt; on behalf of Soumya Koduri &lt;<a href="mailto:skoduri@redhat.com">skoduri@redhat.com</a>&gt;<br>
Sent: 03 August 2017 15:16<br>
To: Artyom Lukianov<br>
Cc: users<br>
Subject: Re: [ovirt-users] Cannot set a quota to limit resources for each       user<br>
<div><div class="h5"><br>
Hi Artyom,<br>
<br>
On 08/03/2017 04:07 PM, Artyom Lukianov wrote:<br>
&gt; Hi Soumya,<br>
&gt;<br>
&gt;  1. Yes, you correct a quota is shared among all quota consumers.<br>
&gt;  2. No, it not possible, the single possibility as you said is to create<br>
&gt;     a separate quota for each user. I believe it was designed to make<br>
&gt;     quota for group of users at first place, but I think it can be a<br>
&gt;     good RFE :)<br>
<br>
Thanks for confirming. I shall file a RFE then.<br>
<br>
Regards,<br>
Soumya<br>
<br>
&gt;<br>
&gt; Best Regards<br>
&gt;<br>
&gt; On Thu, Aug 3, 2017 at 10:54 AM, Soumya Koduri &lt;<a href="mailto:skoduri@redhat.com">skoduri@redhat.com</a><br>
&gt; &lt;mailto:<a href="mailto:skoduri@redhat.com">skoduri@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi,<br>
&gt;<br>
&gt;     We have a use-case to limit VM resources for each user and were<br>
&gt;     following guidelines specified in the admin guide to set quota and<br>
&gt;     limit resources for each user [section:  16.8. Using Quota to Limit<br>
&gt;     Resources by User]. However looks like that quota is shared by all<br>
&gt;     the users added as consumers.<br>
&gt;<br>
&gt;     Suppose I have created a quota (say quota1) to limit the storage<br>
&gt;     capacity to 100GB for each user. Once I add user1 and user2 as<br>
&gt;     consumers to that quota, seems like both users combined are entitled<br>
&gt;     to 100GB. Is my understanding correct?<br>
&gt;<br>
&gt;     Please let me know if there is any way to configure a single quota<br>
&gt;     which could be applied for each user individually (i.e, in the above<br>
&gt;     eg., each user should be limited to 100GB storage capacity).<br>
&gt;<br>
&gt;     Or is the only way this can be done is by creating separate quota<br>
&gt;     for each user [which seems like tedious process and cannot scale]?<br>
&gt;<br>
&gt;<br>
&gt;     Thanks,<br>
&gt;     Soumya<br>
&gt;     ______________________________<wbr>_________________<br>
&gt;     Users mailing list<br>
&gt;     <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt;<br>
&gt;     <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;<br>
&gt;<br>
&gt;<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</div></div>To view the terms under which this email is distributed, please go to:-<br>
<a href="http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html" rel="noreferrer" target="_blank">http://disclaimer.<wbr>leedsbeckett.ac.uk/disclaimer/<wbr>disclaimer.html</a><br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>