<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to add a rule to a quota policy with OnTap API in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/how-to-add-a-rule-to-a-quota-policy-with-OnTap-API/m-p/119309#M1927</link>
    <description>&lt;P&gt;Thanks for the answer, I also came to the same conclusion after posting. In case it helps others below is what I learned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) The quota modify api calls are listed under the "Vserver" section in zexplore, not the "Cluster-Mode" section.&lt;/P&gt;&lt;P&gt;2) To use the Vserver section of calls you need to target a mgmt enabled lif on the SVM and not the cluster mgmt lif.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code can be seen in zexplore (in my case python) and the IP or Name in the NaServer object needs to me your SVM not the cluster SVM.&amp;nbsp; To modify what I wanted (just the disk space allowed)&lt;/P&gt;&lt;P&gt;my object looked like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;api = NaElement("quota-add-entry")&lt;BR /&gt;api.child_add_string("disk-limit","10G")&lt;BR /&gt;api.child_add_string("policy","default_user_quota")&lt;BR /&gt;api.child_add_string("qtree","")&lt;BR /&gt;api.child_add_string("quota-type","user")&lt;BR /&gt;api.child_add_string("quota-target","7003")&lt;BR /&gt;api.child_add_string("volume","user_vol18")&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2016 18:01:02 GMT</pubDate>
    <dc:creator>foxd</dc:creator>
    <dc:date>2016-05-16T18:01:02Z</dc:date>
    <item>
      <title>how to add a rule to a quota policy with OnTap API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/how-to-add-a-rule-to-a-quota-policy-with-OnTap-API/m-p/119271#M1923</link>
      <description>&lt;P&gt;I want to use the OnTap API to add a rule to a quota policy.&amp;nbsp; In this specific case to change the quota for a user from the default.&amp;nbsp; I cannot find the function to use in zexplore under quota or volume.&lt;/P&gt;&lt;P&gt;From the command line on the filer I would run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;volume quota policy rule create -vserver nfs1 -policy-name user_quota -volume v0 -type user -target 5120 -qtree "" -disk-limit 32GB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:58:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/how-to-add-a-rule-to-a-quota-policy-with-OnTap-API/m-p/119271#M1923</guid>
      <dc:creator>foxd</dc:creator>
      <dc:date>2025-06-04T20:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a rule to a quota policy with OnTap API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/how-to-add-a-rule-to-a-quota-policy-with-OnTap-API/m-p/119288#M1924</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will want to use the "quota-add-entry" API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an aside, you can view the CLI &amp;lt;-&amp;gt; API map using the command "security login role show-ontapi".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2016 20:54:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/how-to-add-a-rule-to-a-quota-policy-with-OnTap-API/m-p/119288#M1924</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-05-15T20:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a rule to a quota policy with OnTap API</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/how-to-add-a-rule-to-a-quota-policy-with-OnTap-API/m-p/119309#M1927</link>
      <description>&lt;P&gt;Thanks for the answer, I also came to the same conclusion after posting. In case it helps others below is what I learned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) The quota modify api calls are listed under the "Vserver" section in zexplore, not the "Cluster-Mode" section.&lt;/P&gt;&lt;P&gt;2) To use the Vserver section of calls you need to target a mgmt enabled lif on the SVM and not the cluster mgmt lif.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code can be seen in zexplore (in my case python) and the IP or Name in the NaServer object needs to me your SVM not the cluster SVM.&amp;nbsp; To modify what I wanted (just the disk space allowed)&lt;/P&gt;&lt;P&gt;my object looked like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;api = NaElement("quota-add-entry")&lt;BR /&gt;api.child_add_string("disk-limit","10G")&lt;BR /&gt;api.child_add_string("policy","default_user_quota")&lt;BR /&gt;api.child_add_string("qtree","")&lt;BR /&gt;api.child_add_string("quota-type","user")&lt;BR /&gt;api.child_add_string("quota-target","7003")&lt;BR /&gt;api.child_add_string("volume","user_vol18")&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 18:01:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/how-to-add-a-rule-to-a-quota-policy-with-OnTap-API/m-p/119309#M1927</guid>
      <dc:creator>foxd</dc:creator>
      <dc:date>2016-05-16T18:01:02Z</dc:date>
    </item>
  </channel>
</rss>

