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);
}
}
Aggregations