use of com.emc.storageos.vnxe.requests.SnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method attachSnap.
/**
* Attach the snapshot so hosts can access it.
* Attaching a snapshot makes the snapshot accessible to configured hosts.
*/
public VNXeCommandResult attachSnap(String snapId) {
_logger.info("attaching snap: {}", snapId);
SnapRequests req = new SnapRequests(_khClient);
return req.attachSnapSync(snapId);
}
use of com.emc.storageos.vnxe.requests.SnapRequests 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);
}
use of com.emc.storageos.vnxe.requests.SnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method detachSnap.
/**
* Detach the snapshot so hosts can access it.
* Attaching a snapshot makes the snapshot accessible to configured hosts.
*/
public VNXeCommandResult detachSnap(String snapId) {
_logger.info("detaching snap: {}", snapId);
SnapRequests req = new SnapRequests(_khClient);
return req.detachSnapSync(snapId);
}
use of com.emc.storageos.vnxe.requests.SnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method deleteSnap.
/**
* Delete snapshot
*
* @param snapId
* snapshot VNXe Id
* @return VNXeCommandJob
*/
public VNXeCommandResult deleteSnap(String snapId) {
_logger.info("deleting snap:" + snapId);
SnapRequests req = new SnapRequests(_khClient);
return req.deleteSnap(snapId);
}
use of com.emc.storageos.vnxe.requests.SnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method getSnapshot.
/**
* Get snapshot by its id
*
* @param name
* snapshot name
* @return VNXeLunSnap
*/
public Snap getSnapshot(String id) {
_logger.info("Getting the snapshot: {}", id);
SnapRequests req = new SnapRequests(_khClient);
return req.getSnap(id);
}
Aggregations