<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" >Hi Deimar,</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >quotas are a bit specialm because you have to take the context into account. USR and GRP quotas may exist in either a filesystem or fileset context depending of the setting of perFilesetQuota. FILESET quotas exist only in a filesystem context.</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >Your first query below targets the fileset context (.../filesystems/fs1/filesets/sicredi/quotas). To see FILESET quotas you need to target the filesystem what you did in the second query&nbsp;(.../filesystems/fs1/quotas). This is exactly what you experience.</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font face="Arial" size="2" >Mit freundlichen Grüßen / Kind regards</font> </font> </font>
<p><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><img height="23" src="cid:152411877729038" width="605" ></font></font></p><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" > <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" > </font> </font>
<table border="0" cellpadding="0" cellspacing="0" >        <tbody>                <tr valign="top" >                        <td valign="middle" width="202" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><img align="bottom" alt="IBM Spectrum Scale" height="51" src="cid:152411877729039" width="201" > </font> </font>
                        <ul style="padding-left: 0pt; margin-left: 0px; list-style-type: none;" >                                <li><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" >&nbsp;</font></li>                        </ul>                        <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" > <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" > </font></font></td>                        <td valign="middle" width="31" >                        <ul style="padding-left: 0pt; margin-left: 0px; list-style-type: none;" >                                <li><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font size="3" >&nbsp; &nbsp; &nbsp;</font></font></font></li>                        </ul>                        </td>                        <td valign="middle" width="464" >                        <ul style="padding-left: 0pt; margin-left: 0px; list-style-type: none;" >                                <li><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><b><font face="Arial" size="3" >Dr. Alexander Wolf-Reber</font></b><br>                                <font face="Arial" size="1" >Spectrum Scale Release Lead Architect<br>                                Department M069 / Spectrum Scale Software Development<br>                                <br>                                +49-7034-2745404<br>                                a.wolf-reber@de.ibm.com</font></font></font></li>                        </ul>                        </td>                </tr>        </tbody></table><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" > <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" > <img height="23" src="cid:152411877729040" width="605" > </font> </font>
<p><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" ><font color="#999999" face="Arial" size="1" >IBM Deutschland Research &amp; Development GmbH / Vorsitzende des Aufsichtsrats: Martina Koederitz / Geschäftsführung: Dirk Wittkopp<br>Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294</font></font></font></p><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" > <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" > </font></font></div></div></div></div></div></div></div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >&nbsp;</div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: "Delmar Demarchi" &lt;delmard@br.ibm.com&gt;<br>Sent by: gpfsug-discuss-bounces@spectrumscale.org<br>To: gpfsug-discuss@spectrumscale.org<br>Cc:<br>Subject: [gpfsug-discuss] API - listing quotas<br>Date: Thu, Apr 19, 2018 3:37 PM<br>&nbsp;<br><font face="sans-serif" size="2" >Hello Experts.</font><br><br><font face="sans-serif" size="2" >I'm trying to collect information from Fileset Quotas, using the API.</font><br><br><font face="sans-serif" size="2" >I'm using this link as reference: </font><a href="https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.0/com.ibm.spectrum.scale.v5r00.doc/bl1adm_apiv2version2.htm" target="_blank" ><font color="blue" face="sans-serif" size="2" >https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.0/com.ibm.spectrum.scale.v5r00.doc/bl1adm_apiv2version2.htm</font></a><br><br><font face="sans-serif" size="2" >Do you know about any issue with Scale 5.0.x and API? Or what I have change in my command to collect this infos?</font><br><br><font face="sans-serif" size="2" >Following the instruction on knowledge Center, we tried to list, using GET, the FILESET Quota but only USR and GRP were reported. Listing all quotas (using GET also), I found my quota there.</font><br><br><font face="sans-serif" size="2" >See my sample:</font><br><font face="sans-serif" size="2" >curl -k -u admin:passw0rd -XGET -H content-type:application/json "</font><a href="https://9.11.235.154:443/scalemgmt/v2/filesystems/fs1/filesets/sicredi/quotas" target="_blank" ><font color="blue" face="sans-serif" size="2" ><b>https://xx.xx.xx.xx:443/scalemgmt/v2/filesystems/fs1/filesets/sicredi/quotas</b></font></a><font face="sans-serif" size="2" >"</font><br><font face="sans-serif" size="2" >{</font><br><font face="sans-serif" size="2" >&nbsp; "quotas" : [ {</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockGrace" : "none",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockLimit" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockQuota" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesGrace" : "none",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesLimit" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesQuota" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesetName" : "sicredi",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesystemName" : "fs1",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "isDefaultQuota" : true,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "objectId" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "quotaId" : 454,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "quotaType" : "<b>GRP</b>"</font><br><font face="sans-serif" size="2" >&nbsp; }, {</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockGrace" : "none",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockLimit" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockQuota" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesGrace" : "none",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesLimit" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesQuota" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesetName" : "sicredi",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesystemName" : "fs1",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "isDefaultQuota" : true,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "objectId" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "quotaId" : 501,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "quotaType" : "<b>USR</b>"</font><br><font face="sans-serif" size="2" >&nbsp; } ],</font><br><font face="sans-serif" size="2" >&nbsp; "status" : {</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "code" : 200,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "message" : "The request finished successfully."</font><br><font face="sans-serif" size="2" >&nbsp; }</font><br><font face="sans-serif" size="2" >}[root@lbsgpfs05 ~]# curl -k -u admin:passw0rd -XGET -H content-type:application/json "</font><a href="https://9.11.235.154:443/scalemgmt/v2/filesystems/fs1/quotas" target="_blank" ><font color="blue" face="sans-serif" size="2" >https://xx.xx.xx.xx:443/scalemgmt/v2/filesystems/fs1/quotas</font></a><font face="sans-serif" size="2" >"</font><br><font face="sans-serif" size="2" >{</font><br><font face="sans-serif" size="2" >&nbsp; "quotas" : [ {</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockGrace" : "none",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockInDoubt" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockLimit" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockQuota" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "blockUsage" : 512,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesGrace" : "none",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesInDoubt" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesLimit" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesQuota" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesUsage" : 1,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "filesystemName" : "fs1",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "isDefaultQuota" : false,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "objectId" : 0,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "objectName" : "root",</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "quotaId" : 366,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "quotaType" : "FILESET"</font><br><font face="sans-serif" size="2" >&nbsp; }, <b>{</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "blockGrace" : "none",</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "blockInDoubt" : 0,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "blockLimit" : 6598656,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "blockQuota" : 6598656,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "blockUsage" : 5670208,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "filesGrace" : "none",</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "filesInDoubt" : 0,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "filesLimit" : 0,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "filesQuota" : 0,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "filesUsage" : 5,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "filesystemName" : "fs1",</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "isDefaultQuota" : false,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "objectId" : 1,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "objectName" : "sicredi",</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "quotaId" : 367,</b></font><br><font face="sans-serif" size="2" ><b>&nbsp; &nbsp; "quotaType" : "FILESET"</b></font><br><font face="sans-serif" size="2" >&nbsp; }</font><br><font face="sans-serif" size="2" >&nbsp; "status" : {</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "code" : 200,</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; "message" : "The request finished successfully."</font><br><font face="sans-serif" size="2" >&nbsp; }</font><br><font face="sans-serif" size="2" >}</font><br><br><font face="sans-serif" size="2" >mmlsquota -j sicredi fs1 --block-size auto</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Block Limits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; File Limits</font><br><font face="sans-serif" size="2" >Filesystem type &nbsp; &nbsp; &nbsp; &nbsp; blocks &nbsp; &nbsp; &nbsp;quota &nbsp; &nbsp; &nbsp;limit &nbsp; in_doubt &nbsp; &nbsp;grace | &nbsp; &nbsp;files &nbsp; quota &nbsp; &nbsp;limit in_doubt &nbsp; &nbsp;grace &nbsp;Remarks</font><br><font face="sans-serif" size="2" >fs1 &nbsp; &nbsp; &nbsp; &nbsp;FILESET &nbsp; &nbsp; &nbsp;5.408G &nbsp; &nbsp; 6.293G &nbsp; &nbsp; 6.293G &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; none | &nbsp; &nbsp; &nbsp; &nbsp;5 &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; none</font><br><br><font face="sans-serif" size="2" >mmrepquota -a</font><br><font face="sans-serif" size="2" >*** Report for USR GRP FILESET quotas on fs1</font><br><font face="sans-serif" size="2" >&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Block Limits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File Limits</font><br><font face="sans-serif" size="2" >Name &nbsp; &nbsp; &nbsp; fileset &nbsp; &nbsp;type &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; KB &nbsp; &nbsp; &nbsp;quota &nbsp; &nbsp; &nbsp;limit &nbsp; in_doubt &nbsp; &nbsp;grace | &nbsp; &nbsp;files &nbsp; quota &nbsp; &nbsp;limit in_doubt &nbsp; &nbsp;grace entryType</font><br><font face="sans-serif" size="2" ><b>sicredi &nbsp; &nbsp;root &nbsp; &nbsp; &nbsp; FILESET &nbsp; &nbsp; 5670208 &nbsp; &nbsp;6598656 &nbsp; &nbsp;6598656 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; none | &nbsp; &nbsp; &nbsp; &nbsp;5 &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; none e</b></font><br><br><br><font face="Verdana" size="1" >Regards, | Abrazos, | Atenciosamente,</font><br><font color="#8f8f8f" face="Arial" size="3" ><b>Delmar Demarchi .'.</b></font><br><font face="Arial" size="1" >Power and Storage Services Specialist</font>
<table style="border-collapse:collapse;" width="2072" >        <tbody>                <tr height="8" >                        <td colspan="3" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;" width="2072" >&nbsp;
                        <hr></td>                </tr>                <tr height="8" valign="top" >                        <td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;" width="100" ><img alt="2D barcode - encoded with contact information" height="100" src="cid:_2_37157E80371579900049F11E83258274" style="border:0px solid;" width="100" ></td>                        <td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;" width="355" ><font color="#4181c0" face="Arial" size="1" ><b>Phone:</b></font><font color="#5f5f5f" face="Arial" size="1" >55-19-2132-9469</font><font color="#4181c0" face="Arial" size="1" > | <b>Mobile:</b></font><font color="#5f5f5f" face="Arial" size="1" >55-19-9 9792-1323</font><br>                        <font color="#4181c0" face="Arial" size="1" ><b>E-mail:</b></font><font color="#5f5f5f" face="Arial" size="1" > </font><a href="mailto:delmard@br.ibm.com" target="_blank" ><font color="#5f5f5f" face="Arial" size="1" ><u>delmard@br.ibm.com</u></font></a></td>                        <td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;" width="1617" >                        <div align="right" ><img alt="IBM" height="30" src="cid:_1_371596C0371591D00049F11E83258274" style="border:0px solid;" width="77" ></div>                        </td>                </tr>        </tbody></table><br><a href="http://www.ibm.com/systems/services/labservices" target="_blank" ><font color="blue" face="sans-serif" size="2" >www.ibm.com/systems/services/labservices</font></a><br>&nbsp;
<div><font face="Default Monospace,Courier New,Courier,monospace" size="2" >_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank" >http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></font></div></blockquote>
<div dir="ltr" >&nbsp;</div></div>
<BR>