Search in sources :

Example 1 with LunSnapRequests

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

Example 2 with LunSnapRequests

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

Example 3 with LunSnapRequests

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

Example 4 with LunSnapRequests

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

Example 5 with LunSnapRequests

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

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