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
Element |
Definition |
Required |
---|---|---|
|
Specifies the name of the operation: |
Yes |
|
Specifies a list of arguments required for this operation |
Yes |
|
Contains the parent XML element for the |
Conditional; required if the adapter configuration is empty in Grid Manager |
|
Specifies dynamic targets Note
|
Conditional; required if |
|
Specifies the host name or IP address of the server on which NetApp DataFabric Manager is running |
Conditional; required if |
|
Specifies the user name required to log on to NetApp DataFabric Manager |
Conditional; required if |
|
Specifies the password that corresponds to the |
Conditional; required if |
|
Specifies the communication protocol used by the adapter |
No |
|
Specifies the port on which NetApp DataFabric Manager is enabled |
No |
|
Contains the child XML element of the
|
No |
|
Specifies the host name or IP address of the target storage/filer |
Yes |
|
Specifies whether the fingerprints of the clone blocks are recorded |
No |
|
Specifies the full path of the destination file or the Logical Unit Number (LUN) in /vol/volumeName/file-path format |
Conditional |
|
Specifies whether a snapshot of the source file is taken for cloning |
No |
|
Specifies the full path of the source file or LUN in /vol/ |
Yes |
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>
Comments
Log in or register to comment.