Search in sources :

Example 1 with LunGroupSnapRequests

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);
}
Also used : LunGroupSnapRequests(com.emc.storageos.vnxe.requests.LunGroupSnapRequests)

Example 2 with LunGroupSnapRequests

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);
}
Also used : LunGroupSnapRequests(com.emc.storageos.vnxe.requests.LunGroupSnapRequests)

Example 3 with LunGroupSnapRequests

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);
}
Also used : LunGroupSnapRequests(com.emc.storageos.vnxe.requests.LunGroupSnapRequests)

Example 4 with LunGroupSnapRequests

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);
}
Also used : LunGroupSnapRequests(com.emc.storageos.vnxe.requests.LunGroupSnapRequests)

Example 5 with LunGroupSnapRequests

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);
}
Also used : LunGroupSnapRequests(com.emc.storageos.vnxe.requests.LunGroupSnapRequests) VNXeBase(com.emc.storageos.vnxe.models.VNXeBase) LunSnapCreateParam(com.emc.storageos.vnxe.models.LunSnapCreateParam)

Aggregations

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