Unsupported content This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

Clone File operation


The Clone File operation clones a file by using a flexclone.

The following table describes the elements for this request.


 Adapter request elements for the Clone File operation

A sample adapter request for this operation is given in the following figure.

Sample adapter request for Clone File operation

<netapp-storage-request>
   <operation-name>clone-file</operation-name>
   <arguments>
     <targets>
       <target>
         <host>172.11.11.111</host>
         <user-name>username</user-name>
         <password encryption-type = "Base64">cGFzc3dvcmQ=</password>
         <protocol>http</protocol>
         <port>8088</port>
       </target>
     </targets>
     <target />
     <target-host>Filer1</target-host>
     <source-path>/vol/san_dataset_1/lun1/lun1</source-path>
     <destination-path>/vol/san_dataset_1/lun1/lun2</destination-path>
     <no-snap>true</no-snap>
     <change-log>false</change-log>
   </arguments>
 </netapp-storage-request>

A sample adapter response for this operation is given in the following figure.

Sample adapter response for Clone File operation

<netapp-storage-response>
 <metadata>
   <status>success</status>
   <response-count>1</response-count>
 </metadata>
 <responses>
   <response>
     <metadata>
       <target>server137</target>
       <status>success</status>
       <count>1</count>
     </metadata>
     <output>
       <clone-id>
         <clone-id-info>
           <volume-uuid>8532028c-1866-11df-9563-005056162c5a</volume-uuid>
           <clone-op-id>1</clone-op-id>
         </clone-id-info>
       </clone-id>
     </output>
   </response>
 </responses>
</netapp-storage-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*