Clones an iSCSI logical unit.
HTTP request syntax (URI)
POST <base_URI>/v7/storage/iscsi-logical-units/{iscsiLuObjectId}/clone
Parameters
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" https://172.17.58.117:8444/v7/storage/iscsi-logical-units/383a3a3a767361746973682d69736373692d74657374/clone –X POST –d'{ "newLogicalUnitAlias":"vsatish-clone-test", “newLogicalUnitPath":”/folder2/xyz-lu.iscsi"}'
Response example
HTTP/1.1 204 OK