<?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 RESTAPI for Cloning LUNs from a Snapshot copy in a volume in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/140067#M2668</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i know the cli command to clone the lun from snapshot copy of volume in netapp Array..&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CLI commands:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1. create snapshot:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; volume snapshot create -vserver vs1 -volume vol1 -snapshot vol1_snapshot&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2. clone one lun:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;file clone create -vserver vs1 -volume vol1 -source-path lun1 -snapshot-name vol1_snapshot -destination-path lun1_snap_clone&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;i&amp;nbsp; know the RESTAPI for creating a snapshot . i want to know restapi for&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Cloning LUNs from a Snapshot copy in a volume&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;BTW this is in cluster mode&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;-neha&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:44:03 GMT</pubDate>
    <dc:creator>neha_T</dc:creator>
    <dc:date>2025-06-04T13:44:03Z</dc:date>
    <item>
      <title>RESTAPI for Cloning LUNs from a Snapshot copy in a volume</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/140067#M2668</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i know the cli command to clone the lun from snapshot copy of volume in netapp Array..&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CLI commands:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1. create snapshot:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; volume snapshot create -vserver vs1 -volume vol1 -snapshot vol1_snapshot&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2. clone one lun:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;file clone create -vserver vs1 -volume vol1 -source-path lun1 -snapshot-name vol1_snapshot -destination-path lun1_snap_clone&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;i&amp;nbsp; know the RESTAPI for creating a snapshot . i want to know restapi for&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Cloning LUNs from a Snapshot copy in a volume&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;BTW this is in cluster mode&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;-neha&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:44:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/140067#M2668</guid>
      <dc:creator>neha_T</dc:creator>
      <dc:date>2025-06-04T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: RESTAPI for Cloning LUNs from a Snapshot copy in a volume</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/141629#M2692</link>
      <description>&lt;P&gt;could you please share details if LUN clone from VOL snapshot has been sorted out ? I do have similar requirement.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 09:49:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/141629#M2692</guid>
      <dc:creator>SanGuyEMC</dc:creator>
      <dc:date>2018-07-22T09:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: RESTAPI for Cloning LUNs from a Snapshot copy in a volume</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/141634#M2693</link>
      <description>&lt;P&gt;As there is no restApi from cloning lun from volume&lt;/P&gt;
&lt;P&gt;so i use ZAPI and generate the xml structure to clone the lun and then use that xml code in proxy-api request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 05:21:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/141634#M2693</guid>
      <dc:creator>neha_T</dc:creator>
      <dc:date>2018-07-23T05:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: RESTAPI for Cloning LUNs from a Snapshot copy in a volume</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/143427#M2739</link>
      <description>&lt;P&gt;Hope this will help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;api = NaElement("volume-clone-create")&lt;/P&gt;
&lt;P&gt;api.child_add_string("junction-path","/test_clone")&lt;BR /&gt;api.child_add_string("parent-snapshot","test-snap")&lt;BR /&gt;api.child_add_string("parent-volume","vol_test2")&lt;BR /&gt;api.child_add_string("volume","test_clone")&lt;BR /&gt;api.child_add_string("volume-type","RW")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xo = s.invoke_elem(api)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:21:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/143427#M2739</guid>
      <dc:creator>gaurav_verma</dc:creator>
      <dc:date>2018-10-09T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: RESTAPI for Cloning LUNs from a Snapshot copy in a volume</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/143436#M2741</link>
      <description>&lt;P&gt;there no direct Rest-Api for this, but&amp;nbsp; you can achieve this by using RestApi+ZAPI&lt;/P&gt;
&lt;P&gt;first you have to create a xml or json body for cloing the lun from snapshot&lt;/P&gt;
&lt;P&gt;{'api': {'clone-create':&lt;BR /&gt; {'destination-path': “dest”,&lt;BR /&gt; 'snapshot-name': “snap_name”,&lt;BR /&gt; 'source-path': “src”,&lt;BR /&gt; 'volume': “volname”}}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then pass payload to Rest-Api:&lt;/P&gt;
&lt;H3&gt;&lt;SPAN class="http_method"&gt; &lt;A class="toggleOperation" href="https://10.209.133.46:8443/#!/ontap1460/createProxyApiJob_0" target="_blank"&gt;post&lt;/A&gt; &lt;/SPAN&gt; &lt;SPAN class="path"&gt; &lt;A class="toggleOperation " href="https://10.209.133.46:8443/#!/ontap1460/createProxyApiJob_0" target="_blank"&gt;/1.0/ontap/storage-vms/{key}/advanced/jobs/proxy-api&lt;/A&gt; &lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 03:39:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/RESTAPI-for-Cloning-LUNs-from-a-Snapshot-copy-in-a-volume/m-p/143436#M2741</guid>
      <dc:creator>neha_T</dc:creator>
      <dc:date>2018-10-10T03:39:39Z</dc:date>
    </item>
  </channel>
</rss>

