Software Development Kit (SDK) and API Discussions

Creating a new quota entry


Getting the error when creating a new quota entry when using the NetApp sdk


below are the input parameters

<?xml version="1.0" encoding="UTF-8"?>
<netapp vfiler="vservername" xmlns="" version="1.150">


Below is the error


<!-- Output of quota-add-entry [Execution Time: 327 ms] -->
<results reason='Qtree cannot be specified for a tree type rule. ' errno='13051' status='failed'/>


The API documentation states to use "" for the qtree when using type tree


Is this a bug in the API execution


or am I missing something?






Re: Creating a new quota entry


Try using a null value for the "qtree" input. This API call worked in my lab environment to set the quota:

<?xml version="1.0" encoding="UTF-8"?>
<netapp vfiler="lab-svm-01" xmlns="" version="1.150">


lab-clst01::> volume quota policy rule show

Vserver: lab-svm-01        Policy: default           Volume: qtreetest

                                               Soft             Soft
                         User         Disk     Disk   Files    Files
Type   Target    Qtree   Mapping     Limit    Limit   Limit    Limit  Threshold
-----  --------  ------- -------  --------  -------  ------  -------  ---------
tree   test1     ""      -         39.06MB        -       -        -          -
Earn Rewards for Your Review!
GPI Review Banner
All Community Forums