Search in sources :

Example 6 with LunSnapRequests

use of com.emc.storageos.vnxe.requests.LunSnapRequests in project coprhd-controller by CoprHD.

the class VNXeApiClient method deleteLunSnap.

/**
 * Delete lun snapshot
 *
 * @param snapId
 *            snapshot VNXe Id
 * @return VNXeCommandJob
 */
public VNXeCommandJob deleteLunSnap(String snapId) {
    _logger.info("deleting lun snap:" + snapId);
    LunSnapRequests req = new LunSnapRequests(_khClient);
    return req.deleteLunSnap(snapId);
}
Also used : LunSnapRequests(com.emc.storageos.vnxe.requests.LunSnapRequests)

Example 7 with LunSnapRequests

use of com.emc.storageos.vnxe.requests.LunSnapRequests in project coprhd-controller by CoprHD.

the class VNXeApiClient method createLunSnap.

/**
 * Create lun snapshot
 *
 * @param lunID
 *            lun id
 * @param name
 *            snapshot name
 * @return VNXeCommandJob
 */
public VNXeCommandJob createLunSnap(String lunID, String name) {
    _logger.info("creating lun snap:" + lunID);
    LunSnapCreateParam parm = new LunSnapCreateParam();
    parm.setStorageResource(new VNXeBase(lunID));
    parm.setName(name);
    LunSnapRequests req = new LunSnapRequests(_khClient);
    return req.createLunSnap(parm);
}
Also used : VNXeBase(com.emc.storageos.vnxe.models.VNXeBase) LunSnapRequests(com.emc.storageos.vnxe.requests.LunSnapRequests) LunSnapCreateParam(com.emc.storageos.vnxe.models.LunSnapCreateParam)

Aggregations

LunSnapRequests (com.emc.storageos.vnxe.requests.LunSnapRequests)7 LunSnapCreateParam (com.emc.storageos.vnxe.models.LunSnapCreateParam)1 VNXeBase (com.emc.storageos.vnxe.models.VNXeBase)1