use of com.emc.storageos.xtremio.restapi.model.response.XtremIOTag in project coprhd-controller by CoprHD.
the class XtremIOV1Client method getInitiatorGroupFolder.
private XtremIOTag getInitiatorGroupFolder(String initiatorGroupFolderName, String clusterName) throws Exception {
try {
String uriStr = XtremIOConstants.XTREMIO_INITIATOR_GROUPS_FOLDER_STR.concat(XtremIOConstants.getInputNameString(initiatorGroupFolderName));
ClientResponse response = get(URI.create(uriStr));
XtremIOTags folderResponse = getResponseObject(XtremIOTags.class, response);
XtremIOTag folder = folderResponse.getContent();
log.info(folder.toString());
return folder;
} catch (Exception e) {
if (null != e.getMessage() && !e.getMessage().contains(XtremIOConstants.OBJECT_NOT_FOUND)) {
throw e;
} else {
log.warn("Initiator group folder {} not found on cluster {}", initiatorGroupFolderName, clusterName);
}
}
log.info("Initiator Group Folder not available on Array with name : {}", initiatorGroupFolderName);
return null;
}
Aggregations