public List<ScaleIOScsiInitiator> queryAllSCSIInitiators() throws JSONException {
  log.info("Discovery all SCSI Initiators");
  List<ScaleIOScsiInitiator> scsiInits=Collections.emptyList();
  try {
    ClientResponse response=get(URI.create(ScaleIOConstants.GET_SCSI_INITIATOR_URI));
    scsiInits=getResponseObjects(ScaleIOScsiInitiator.class,response);
  }
 catch (  Exception e) {
    log.debug("This exception is expected for ScaleIO 1.32 and later, since iSCSI supported is removed. Exception:",e);
  }
  return scsiInits;
}

public List < ScaleIOScsiInitiator > queryAllSCSIInitiators ( ) throws JSONException { log . info ( "Discovery all SCSI Initiators" ) ; List < ScaleIOScsiInitiator > scsiInits = Collections . emptyList ( ) ; try { ClientResponse response = get ( URI . create ( ScaleIOConstants . GET_SCSI_INITIATOR_URI ) ) ; scsiInits = getResponseObjects ( ScaleIOScsiInitiator . class , response ) ; } catch ( Exception e ) { log . debug ( "This exception is expected for ScaleIO 1.32 and later, since iSCSI supported is removed. Exception:" , e ) ; } return scsiInits ; }
query all scsi initiators
