Search in sources :

Example 16 with Parameters

use of com.emc.storageos.driver.dellsc.scapi.rest.Parameters in project coprhd-controller by CoprHD.

the class StorageCenterAPI method expireReplay.

/**
 * Expire a replay.
 *
 * @param instanceId The replay instance ID.
 * @throws StorageCenterAPIException
 */
public void expireReplay(String instanceId) throws StorageCenterAPIException {
    Parameters params = new Parameters();
    RestResult rr = restClient.post(String.format("StorageCenter/ScReplay/%s/Expire", instanceId), params.toJson());
    if (!checkResults(rr)) {
        String msg = String.format("Error expiring replay %s: %s", instanceId, rr.getErrorMsg());
        LOG.warn(msg);
        throw new StorageCenterAPIException(msg);
    }
}
Also used : Parameters(com.emc.storageos.driver.dellsc.scapi.rest.Parameters) RestResult(com.emc.storageos.driver.dellsc.scapi.rest.RestResult)

Aggregations

Parameters (com.emc.storageos.driver.dellsc.scapi.rest.Parameters)16 RestResult (com.emc.storageos.driver.dellsc.scapi.rest.RestResult)16 ScObject (com.emc.storageos.driver.dellsc.scapi.objects.ScObject)2 ScVolumeConfiguration (com.emc.storageos.driver.dellsc.scapi.objects.ScVolumeConfiguration)2 ArrayList (java.util.ArrayList)2 ScReplay (com.emc.storageos.driver.dellsc.scapi.objects.ScReplay)1 ScReplayConsistencyGroup (com.emc.storageos.driver.dellsc.scapi.objects.ScReplayConsistencyGroup)1 ScStorageType (com.emc.storageos.driver.dellsc.scapi.objects.ScStorageType)1