use of com.emc.storageos.vnxe.requests.LunGroupSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method getLunGroupSnapshotByName.
/**
* Get group snapshot by its name
*
* @param name
* snapshot name
* @return VNXeLunSnap
*/
public VNXeLunGroupSnap getLunGroupSnapshotByName(String name) {
_logger.info("Getting the snapshot {}: ", name);
LunGroupSnapRequests req = new LunGroupSnapRequests(_khClient);
return req.getLunGroupSnapByName(name);
}
use of com.emc.storageos.vnxe.requests.LunGroupSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method attachLunGroupSnap.
/**
* Attach the snapshot so hosts can access it.
* Attaching a snapshot makes the snapshot accessible to configured hosts for restoring files and data.
*/
public VNXeCommandJob attachLunGroupSnap(String snapId) {
_logger.info("attaching lun group snap: {}", snapId);
LunGroupSnapRequests req = new LunGroupSnapRequests(_khClient);
return req.attachLunGroupSnap(snapId);
}
use of com.emc.storageos.vnxe.requests.LunGroupSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method deleteLunGroupSnap.
/**
* Delete lun snapshot
*
* @param snapId
* snapshot VNXe Id
* @return VNXeCommandJob
*/
public VNXeCommandJob deleteLunGroupSnap(String snapId) {
_logger.info("deleting lun snap:" + snapId);
LunGroupSnapRequests req = new LunGroupSnapRequests(_khClient);
return req.deleteLunGroupSnap(snapId);
}
use of com.emc.storageos.vnxe.requests.LunGroupSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method detachLunGroupSnap.
/**
* Detach the snapshot so hosts can no longer access it.
*/
public VNXeCommandJob detachLunGroupSnap(String snapId) {
_logger.info("detaching lun group snap: {}", snapId);
LunGroupSnapRequests req = new LunGroupSnapRequests(_khClient);
return req.detachLunGroupSnap(snapId);
}
use of com.emc.storageos.vnxe.requests.LunGroupSnapRequests in project coprhd-controller by CoprHD.
the class VNXeApiClient method createLunGroupSnap.
/**
* Create lun snapshot
*
* @param lunID
* lun id
* @param name
* snapshot name
* @return VNXeCommandJob
*/
public VNXeCommandJob createLunGroupSnap(String lunGroupID, String name) {
_logger.info("creating lun group snap:" + lunGroupID);
LunSnapCreateParam parm = new LunSnapCreateParam();
VNXeBase resource = new VNXeBase(lunGroupID);
parm.setStorageResource(resource);
parm.setName(name);
LunGroupSnapRequests req = new LunGroupSnapRequests(_khClient);
return req.createLunGroupSnap(parm);
}
Aggregations