use of com.emc.storageos.vnxe.models.SnapCreateParam in project coprhd-controller by CoprHD.
the class VNXeApiClient method createSnap.
/**
* Create snapshot for VNX Unity
*
* @param resourceID
* lun or consistency group id
* @param name
* snapshot name
* @param isReadOnly
* @return VNXeCommandJob
*/
public VNXeCommandJob createSnap(String resourceID, String name, Boolean isReadOnly) {
_logger.info("creating snap for :" + resourceID);
SnapCreateParam parm = new SnapCreateParam();
parm.setStorageResource(new VNXeBase(resourceID));
parm.setName(name);
if (isReadOnly != null) {
parm.setIsReadOnly(isReadOnly);
}
SnapRequests req = new SnapRequests(_khClient);
return req.createSnap(parm);
}
Aggregations