use of com.emc.storageos.vnxe.requests.LunSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method restoreLunSnap.
/**
* restore lun snapshot
*
* @param snapId
* VNXe snapshot id
* @return VNXeCommandJob
*/
public VNXeCommandJob restoreLunSnap(String snapId) {
_logger.info("restoring lun snap: {}", snapId);
LunSnapRequests req = new LunSnapRequests(_khClient);
return req.restoreLunSnap(snapId, null);
}
use of com.emc.storageos.vnxe.requests.LunSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method getLunSnapshotByName.
/**
* Get snapshot by its name
*
* @param name
* snapshot name
* @return VNXeLunSnap
*/
public VNXeLunSnap getLunSnapshotByName(String name) {
_logger.info("Getting the snapshot {}: ", name);
LunSnapRequests req = new LunSnapRequests(_khClient);
return req.getLunSnapByName(name);
}
use of com.emc.storageos.vnxe.requests.LunSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method getLunSnapshot.
/**
* Get snapshot by its id
*
* @param name
* snapshot name
* @return VNXeLunSnap
*/
public VNXeLunSnap getLunSnapshot(String id) {
_logger.info("Getting the snapshot {}: ", id);
LunSnapRequests req = new LunSnapRequests(_khClient);
return req.getLunSnap(id);
}
use of com.emc.storageos.vnxe.requests.LunSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method attachLunSnap.
/**
* Attach the snapshot so hosts can access it.
* Attaching a snapshot makes the snapshot accessible to configured hosts for restoring files and data.
*/
public VNXeCommandResult attachLunSnap(String snapId) {
_logger.info("attaching lun snap: {}", snapId);
LunSnapRequests req = new LunSnapRequests(_khClient);
return req.attachLunSnapSync(snapId);
}
use of com.emc.storageos.vnxe.requests.LunSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method detachLunSnap.
/**
* Detach the snapshot so hosts can no longer access it.
*/
public VNXeCommandResult detachLunSnap(String snapId) {
_logger.info("detaching lun snap: {}", snapId);
LunSnapRequests req = new LunSnapRequests(_khClient);
return req.detachLunSnapSync(snapId);
}
Aggregations