public ScaleIOSnapshotVolumeResponse snapshotVolume(String volId,String snapshotName,String systemId) throws Exception {
  String uri=ScaleIOConstants.getSnapshotVolumesURI(systemId);
  ScaleIOSnapshotVolumes spVol=new ScaleIOSnapshotVolumes();
  spVol.addSnapshot(volId,snapshotName);
  ClientResponse response=post(URI.create(uri),getJsonForEntity(spVol));
  return getResponseObject(ScaleIOSnapshotVolumeResponse.class,response);
}

public ScaleIOSnapshotVolumeResponse snapshotVolume ( String volId , String snapshotName , String systemId ) throws Exception { String uri = ScaleIOConstants . getSnapshotVolumesURI ( systemId ) ; ScaleIOSnapshotVolumes spVol = new ScaleIOSnapshotVolumes ( ) ; spVol . addSnapshot ( volId , snapshotName ) ; ClientResponse response = post ( URI . create ( uri ) , getJsonForEntity ( spVol ) ) ; return getResponseObject ( ScaleIOSnapshotVolumeResponse . class , response ) ; }
create a snapshot of the volume
