+
+ public Response queryComplexes() {
+ ComplexList complexList = new ComplexList();
+ List<String> complexId = new ArrayList<>();
+ try {
+ String complexesString = cloudRegionProxy.qureyComplexes();
+ LOG.info("The complex query result is: " + complexesString);
+ complexList = new Gson().fromJson(complexesString, ComplexList.class);
+ for (int i=0; i<complexList.getComplex().size(); i++) {
+ complexId.add(complexList.getComplex().get(i).getPhysicalLocationId());
+ }
+ } catch (ExtsysException e) {
+ LOG.error("Query vim details by ID failed !", e);
+ }
+ return Response.ok(complexId).build();
+ }