<?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 ansible netapp.ontap.na_ontap_quotas  -&amp;gt;  create quotas -&amp;gt;  missing  idempotency in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/ansible-netapp-ontap-na-ontap-quotas-gt-create-quotas-gt-missing-idempotency/m-p/445437#M3261</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to manage the netapp user quotas via ansible.&amp;nbsp; I have tried the following.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- name: Add/Set quota rule for type user&lt;BR /&gt;netapp.ontap.na_ontap_quotas:&lt;BR /&gt;state: present&lt;BR /&gt;vserver: testsvm3&lt;BR /&gt;volume: test2&lt;BR /&gt;quota_target: "542,751"&lt;BR /&gt;type: user&lt;BR /&gt;disk_limit: 300MB&lt;BR /&gt;set_quota_status: True&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At second run ansible complains. Is there a workaround for missing idempotency, as I want to run the code in a pileline ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TASK [Add/Set quota rule for type user] ************************************************************************************************************************************&lt;BR /&gt;fatal: [localhost]: FAILED! =&amp;gt; {"changed": false, "msg": "Error on creating quotas rule: calling: storage/quota/rules: got {'message': 'duplicate entry', 'code': '1', 'target': 'uuid'}."}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thomas&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:47:36 GMT</pubDate>
    <dc:creator>Thomas2</dc:creator>
    <dc:date>2025-06-04T09:47:36Z</dc:date>
    <item>
      <title>ansible netapp.ontap.na_ontap_quotas  -&gt;  create quotas -&gt;  missing  idempotency</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/ansible-netapp-ontap-na-ontap-quotas-gt-create-quotas-gt-missing-idempotency/m-p/445437#M3261</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to manage the netapp user quotas via ansible.&amp;nbsp; I have tried the following.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- name: Add/Set quota rule for type user&lt;BR /&gt;netapp.ontap.na_ontap_quotas:&lt;BR /&gt;state: present&lt;BR /&gt;vserver: testsvm3&lt;BR /&gt;volume: test2&lt;BR /&gt;quota_target: "542,751"&lt;BR /&gt;type: user&lt;BR /&gt;disk_limit: 300MB&lt;BR /&gt;set_quota_status: True&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At second run ansible complains. Is there a workaround for missing idempotency, as I want to run the code in a pileline ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TASK [Add/Set quota rule for type user] ************************************************************************************************************************************&lt;BR /&gt;fatal: [localhost]: FAILED! =&amp;gt; {"changed": false, "msg": "Error on creating quotas rule: calling: storage/quota/rules: got {'message': 'duplicate entry', 'code': '1', 'target': 'uuid'}."}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thomas&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:47:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/ansible-netapp-ontap-na-ontap-quotas-gt-create-quotas-gt-missing-idempotency/m-p/445437#M3261</guid>
      <dc:creator>Thomas2</dc:creator>
      <dc:date>2025-06-04T09:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: ansible netapp.ontap.na_ontap_quotas  -&gt;  create quotas -&gt;  missing  idempotency</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/ansible-netapp-ontap-na-ontap-quotas-gt-create-quotas-gt-missing-idempotency/m-p/446897#M3270</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/94085"&gt;@Thomas2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies that no one's been able to get you an answer to your Ansible query. Might I suggest you consider jumping on our NetApp Community Discord. There is an #Ansible channel that is fairly active, so I think you may have a better chance of getting the answer you are looking for there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can jump on our Community Discord by heading to &lt;A href="https://discord.gg/NetApp" target="_blank"&gt;https://discord.gg/NetApp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 01:41:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/ansible-netapp-ontap-na-ontap-quotas-gt-create-quotas-gt-missing-idempotency/m-p/446897#M3270</guid>
      <dc:creator>RossC</dc:creator>
      <dc:date>2023-08-15T01:41:00Z</dc:date>
    </item>
  </channel>
</rss>

