<?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: Changing the export policy on clone volume creation in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Changing-the-export-policy-on-clone-volume-creation/m-p/140168#M2673</link>
    <description>&lt;P&gt;You cannot change export during vol-clone-create operation, but you can use this to change export policy after cloning, qtree will be "" if you export at volume level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;s = NaServer("&amp;lt;server name or IP address&amp;gt;", 1 , 31)
s.set_server_type("FILER")
s.set_transport_type("HTTPS")
s.set_port(443)
s.set_style("LOGIN")
s.set_admin_user("&amp;lt;user name&amp;gt;", "&amp;lt;password&amp;gt;")


api = NaElement("qtree-modify")
api.child_add_string("export-policy","&amp;lt;export-policy&amp;gt;")
api.child_add_string("qtree","&amp;lt;qtree&amp;gt;")
api.child_add_string("volume","&amp;lt;volume&amp;gt;")

xo = s.invoke_elem(api)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 May 2018 10:13:38 GMT</pubDate>
    <dc:creator>francoisbnc</dc:creator>
    <dc:date>2018-05-11T10:13:38Z</dc:date>
    <item>
      <title>Changing the export policy on clone volume creation</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Changing-the-export-policy-on-clone-volume-creation/m-p/140129#M2671</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a python script to create a clone of a volume but I noticed that the clone inherits the export poilcy from the parent volume but I would like to change that within the script to an exports policy that is built specifically for this new clone.&lt;/P&gt;
&lt;P&gt;I played with volume-modify-iter but nothing I input into that portion of the script seems to take.&lt;/P&gt;
&lt;P&gt;Any ideas on how to change that export policy while creating the volume clone?&lt;/P&gt;
&lt;P&gt;This is the portion of my script that creates the clone:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;name = "/vol/"+sys.argv[3]&lt;BR /&gt; parent = sys.argv[4]&lt;BR /&gt; snap = sys.argv[5]&lt;BR /&gt; output = s.invoke("volume-clone-create", "volume", vol, "parent-volume", parent, "parent-snapshot", snap, "junction-path", name)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:43:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Changing-the-export-policy-on-clone-volume-creation/m-p/140129#M2671</guid>
      <dc:creator>moriad01</dc:creator>
      <dc:date>2025-06-04T13:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the export policy on clone volume creation</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Changing-the-export-policy-on-clone-volume-creation/m-p/140168#M2673</link>
      <description>&lt;P&gt;You cannot change export during vol-clone-create operation, but you can use this to change export policy after cloning, qtree will be "" if you export at volume level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;s = NaServer("&amp;lt;server name or IP address&amp;gt;", 1 , 31)
s.set_server_type("FILER")
s.set_transport_type("HTTPS")
s.set_port(443)
s.set_style("LOGIN")
s.set_admin_user("&amp;lt;user name&amp;gt;", "&amp;lt;password&amp;gt;")


api = NaElement("qtree-modify")
api.child_add_string("export-policy","&amp;lt;export-policy&amp;gt;")
api.child_add_string("qtree","&amp;lt;qtree&amp;gt;")
api.child_add_string("volume","&amp;lt;volume&amp;gt;")

xo = s.invoke_elem(api)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 10:13:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Changing-the-export-policy-on-clone-volume-creation/m-p/140168#M2673</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2018-05-11T10:13:38Z</dc:date>
    </item>
  </channel>
</rss>

