<?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 REST API: How to mount a clone volume as NFS mount? in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-How-to-mount-a-clone-volume-as-NFS-mount/m-p/169556#M235</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have figured out how to create a clone copy of an existing snapshot using the "create_clone.py" python script, but I have been unable to determine how to get created drive to show up as an available NFS mounted disk.&lt;BR /&gt;At the moment the only way I can do it, is if I go through the web GUI interface or through command line and mount the created volume and assign a path.&lt;/P&gt;&lt;P&gt;Is there a way to do this step via the API interface either using Linux curl command or using python??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 10:15:29 GMT</pubDate>
    <dc:creator>JRH0759</dc:creator>
    <dc:date>2025-06-04T10:15:29Z</dc:date>
    <item>
      <title>REST API: How to mount a clone volume as NFS mount?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-How-to-mount-a-clone-volume-as-NFS-mount/m-p/169556#M235</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have figured out how to create a clone copy of an existing snapshot using the "create_clone.py" python script, but I have been unable to determine how to get created drive to show up as an available NFS mounted disk.&lt;BR /&gt;At the moment the only way I can do it, is if I go through the web GUI interface or through command line and mount the created volume and assign a path.&lt;/P&gt;&lt;P&gt;Is there a way to do this step via the API interface either using Linux curl command or using python??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:15:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-How-to-mount-a-clone-volume-as-NFS-mount/m-p/169556#M235</guid>
      <dc:creator>JRH0759</dc:creator>
      <dc:date>2025-06-04T10:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: REST API: How to mount a clone volume as NFS mount?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-How-to-mount-a-clone-volume-as-NFS-mount/m-p/169566#M236</link>
      <description>&lt;P&gt;There's a full example in the nfs_setup.py script (&lt;A href="https://github.com/NetApp/ontap-rest-python/blob/master/examples/rest_api/nfs_setup.py" target="_blank"&gt;https://github.com/NetApp/ontap-rest-python/blob/master/examples/rest_api/nfs_setup.py&lt;/A&gt;). But the part that would answer your question is that you need to send a PATCH request to the /api/storage/volumes/{uuid} endpoint for your volume and set the nas.path property. Here's an example using curl:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;~/$ curl -ku admin -X PATCH -d '{"nas": {"path": "/my_files"}}' https://&amp;lt;cluster_mgmt&amp;gt;/api/storage/volumes/10a7fcdb-0746-11ec-bbfb-005056bb0536
Enter host password for user 'admin':
{
  "job": {
    "uuid": "65cc6310-097b-11ec-9580-005056bb0536",
    "_links": {
      "self": {
        "href": "/api/cluster/jobs/65cc6310-097b-11ec-9580-005056bb0536"
      }
    }
  }
}~/$
~/$ curl -ku admin https://&amp;lt;cluster_mgmt&amp;gt;/api/cluster/jobs/65cc6310-097b-11ec-9580-005056bb0536
Enter host password for user 'admin':
{
  "uuid": "65cc6310-097b-11ec-9580-005056bb0536",
  "description": "PATCH /api/storage/volumes/10a7fcdb-0746-11ec-bbfb-005056bb0536",
  "state": "success",
  "message": "success",
  "code": 0,
  "start_time": "2021-08-30T06:16:53-04:00",
  "end_time": "2021-08-30T06:16:54-04:00",
  "svm": {
    "name": "vs1",
    "uuid": "db390e8d-0435-11ec-a099-005056bb0536",
    "_links": {
      "self": {
        "href": "/api/svm/svms/db390e8d-0435-11ec-a099-005056bb0536"
      }
    }
  },
  "_links": {
    "self": {
      "href": "/api/cluster/jobs/65cc6310-097b-11ec-9580-005056bb0536"
    }
  }
}~/$&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 30 Aug 2021 10:37:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-How-to-mount-a-clone-volume-as-NFS-mount/m-p/169566#M236</guid>
      <dc:creator>RobertBlackhart</dc:creator>
      <dc:date>2021-08-30T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: REST API: How to mount a clone volume as NFS mount?</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-How-to-mount-a-clone-volume-as-NFS-mount/m-p/169567#M237</link>
      <description>&lt;P&gt;Thank you Robert..&lt;/P&gt;&lt;P&gt;That worked for me..&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 10:44:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-How-to-mount-a-clone-volume-as-NFS-mount/m-p/169567#M237</guid>
      <dc:creator>JRH0759</dc:creator>
      <dc:date>2021-08-30T10:44:31Z</dc:date>
    </item>
  </channel>
</rss>

