public ScaleIOSnapshotVolumeResponse snapshotMultiVolume(Map<String,String> id2snapshot,String systemId) throws Exception {
  String uri=ScaleIOConstants.getSnapshotVolumesURI(systemId);
  ScaleIOSnapshotVolumes spVol=new ScaleIOSnapshotVolumes();
  for (  Map.Entry<String,String> entry : id2snapshot.entrySet()) {
    spVol.addSnapshot(entry.getKey(),entry.getValue());
  }
  ClientResponse response=post(URI.create(uri),getJsonForEntity(spVol));
  return getResponseObject(ScaleIOSnapshotVolumeResponse.class,response);
}

public ScaleIOSnapshotVolumeResponse snapshotMultiVolume ( Map < String , String > id2snapshot , String systemId ) throws Exception { String uri = ScaleIOConstants . getSnapshotVolumesURI ( systemId ) ; ScaleIOSnapshotVolumes spVol = new ScaleIOSnapshotVolumes ( ) ; for ( Map . Entry < String , String > entry : id2snapshot . entrySet ( ) ) { spVol . addSnapshot ( entry . getKey ( ) , entry . getValue ( ) ) ; } ClientResponse response = post ( URI . create ( uri ) , getJsonForEntity ( spVol ) ) ; return getResponseObject ( ScaleIOSnapshotVolumeResponse . class , response ) ; }
create multiple snapshots in a consistency group
