[gpfsug-discuss] API - listing quotas

Delmar Demarchi delmard at br.ibm.com
Thu Apr 19 14:37:14 BST 2018


Hello Experts.

I'm trying to collect information from Fileset Quotas, using the API.

I'm using this link as reference: 
https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.0/com.ibm.spectrum.scale.v5r00.doc/bl1adm_apiv2version2.htm

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?

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.

See my sample:
curl -k -u admin:passw0rd -XGET -H content-type:application/json "
https://xx.xx.xx.xx:443/scalemgmt/v2/filesystems/fs1/filesets/sicredi/quotas
"
{
  "quotas" : [ {
    "blockGrace" : "none",
    "blockLimit" : 0,
    "blockQuota" : 0,
    "filesGrace" : "none",
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesetName" : "sicredi",
    "filesystemName" : "fs1",
    "isDefaultQuota" : true,
    "objectId" : 0,
    "quotaId" : 454,
    "quotaType" : "GRP"
  }, {
    "blockGrace" : "none",
    "blockLimit" : 0,
    "blockQuota" : 0,
    "filesGrace" : "none",
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesetName" : "sicredi",
    "filesystemName" : "fs1",
    "isDefaultQuota" : true,
    "objectId" : 0,
    "quotaId" : 501,
    "quotaType" : "USR"
  } ],
  "status" : {
    "code" : 200,
    "message" : "The request finished successfully."
  }
}[root at lbsgpfs05 ~]# curl -k -u admin:passw0rd -XGET -H 
content-type:application/json "
https://xx.xx.xx.xx:443/scalemgmt/v2/filesystems/fs1/quotas"
{
  "quotas" : [ {
    "blockGrace" : "none",
    "blockInDoubt" : 0,
    "blockLimit" : 0,
    "blockQuota" : 0,
    "blockUsage" : 512,
    "filesGrace" : "none",
    "filesInDoubt" : 0,
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesUsage" : 1,
    "filesystemName" : "fs1",
    "isDefaultQuota" : false,
    "objectId" : 0,
    "objectName" : "root",
    "quotaId" : 366,
    "quotaType" : "FILESET"
  }, {
    "blockGrace" : "none",
    "blockInDoubt" : 0,
    "blockLimit" : 6598656,
    "blockQuota" : 6598656,
    "blockUsage" : 5670208,
    "filesGrace" : "none",
    "filesInDoubt" : 0,
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesUsage" : 5,
    "filesystemName" : "fs1",
    "isDefaultQuota" : false,
    "objectId" : 1,
    "objectName" : "sicredi",
    "quotaId" : 367,
    "quotaType" : "FILESET"
  }
  "status" : {
    "code" : 200,
    "message" : "The request finished successfully."
  }
}

mmlsquota -j sicredi fs1 --block-size auto
                         Block Limits                                    | 
    File Limits
Filesystem type         blocks      quota      limit   in_doubt    grace | 
   files   quota    limit in_doubt    grace  Remarks
fs1        FILESET      5.408G     6.293G     6.293G          0     none | 
       5       0        0        0     none

mmrepquota -a
*** Report for USR GRP FILESET quotas on fs1
                         Block Limits                                    | 
                    File Limits
Name       fileset    type             KB      quota      limit   in_doubt 
   grace |    files   quota    limit in_doubt    grace entryType
sicredi    root       FILESET     5670208    6598656    6598656          0 
    none |        5       0        0        0     none e


Regards, | Abrazos, | Atenciosamente,
Delmar Demarchi .'.
Power and Storage Services Specialist



Phone: 55-19-2132-9469 | Mobile: 55-19-9 9792-1323
E-mail: delmard at br.ibm.com



www.ibm.com/systems/services/labservices


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20180419/f5fc5bff/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 6614 bytes
Desc: not available
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20180419/f5fc5bff/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2022 bytes
Desc: not available
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20180419/f5fc5bff/attachment-0001.gif>


More information about the gpfsug-discuss mailing list