<?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 Create NFS volume with REST API Python library in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-NFS-volume-with-REST-API-Python-library/m-p/155119#M34885</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I would like some help in figuring out how to create NFS volumes using netapp_ontap python library. I usually use the command line to provision new volumes with the likes of this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vol create -vserver $vserver -volume $volume -aggregate $aggr -size $size -state online -policy $policy_name -unix-permissions ---rwxr-xr-x -type RW -snapshot-policy none -user 0 -group 0 -security-style unix -junction-path /$volume -autosize-grow-threshold-percent 10% -autosize-mode grow -space-guarantee none -percent-snapshot-space 0% -language C.UTF-8 -nvfail off -caching-policy auto -encrypt false -tiering-policy snapshot-only;

volume qtree create -vserver $vserver -volume $volume -qtree $short_name -security-style unix -oplock-mode enable -unix-permissions ---rwxr-xr-x -export-policy $policy_name&lt;/LI-CODE&gt;
&lt;P&gt;I've been trying to map all those options in REST API but failing to do so after looking into docs for awhile. I see generic examples that show basic volume creation but not all those options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 11:15:33 GMT</pubDate>
    <dc:creator>mountaint31</dc:creator>
    <dc:date>2025-06-04T11:15:33Z</dc:date>
    <item>
      <title>Create NFS volume with REST API Python library</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-NFS-volume-with-REST-API-Python-library/m-p/155119#M34885</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I would like some help in figuring out how to create NFS volumes using netapp_ontap python library. I usually use the command line to provision new volumes with the likes of this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vol create -vserver $vserver -volume $volume -aggregate $aggr -size $size -state online -policy $policy_name -unix-permissions ---rwxr-xr-x -type RW -snapshot-policy none -user 0 -group 0 -security-style unix -junction-path /$volume -autosize-grow-threshold-percent 10% -autosize-mode grow -space-guarantee none -percent-snapshot-space 0% -language C.UTF-8 -nvfail off -caching-policy auto -encrypt false -tiering-policy snapshot-only;

volume qtree create -vserver $vserver -volume $volume -qtree $short_name -security-style unix -oplock-mode enable -unix-permissions ---rwxr-xr-x -export-policy $policy_name&lt;/LI-CODE&gt;
&lt;P&gt;I've been trying to map all those options in REST API but failing to do so after looking into docs for awhile. I see generic examples that show basic volume creation but not all those options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:15:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-NFS-volume-with-REST-API-Python-library/m-p/155119#M34885</guid>
      <dc:creator>mountaint31</dc:creator>
      <dc:date>2025-06-04T11:15:33Z</dc:date>
    </item>
  </channel>
</rss>

