Skip to main content
Hitachi Vantara Knowledge

Clone an iSCSI logical unit

Clones an iSCSI logical unit.

HTTP request syntax (URI)
POST <base_URI>/v7/storage/iscsi-logical-units/{iscsiLuObjectId}/clone
Name Type Required Values Description
iscsiLuObjectId URI_PARAM Y string iSCSI logical unit object ID.
newLogicalUnitAlias BODY Y string Alias of the iSCSI LU being cloned.
newLogicalUnitPath BODY Y string Path of iSCSI LU being cloned The new path name must not exist, and the directory of the path must exist. That is, if newLogicalUnitPath has a value of /absolute/path/clone_file, then directory /absolute/path must exist, and absolute/path/clone_file must not exist. Add the .iscsi extension (lower case) to the filename of the pathname to avoid accidental user deletion.
Return codes
Code Data Description
204 No Data N/A
400 No Data Missing or invalid request contents.
404 Error Message Requested resource not found.
500 Error message Error associated with the storage system.
501 No Data Server has not implemented the request operation on the resource.

Any HTTP status code other than 204 indicates that the API did not complete successfully.

Request example
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" –X POST –d'{ "newLogicalUnitAlias":"vsatish-clone-test", “newLogicalUnitPath":”/folder2/xyz-lu.iscsi"}'
Response example
HTTP/1.1 204 OK


  • Was this article helpful?