return vnfsList\r
}\r
\r
+ public JSONObject getServiceResourcesByServiceModelUuid(Execution execution, String serviceModelUuid) {\r
+ JSONObject resources = null\r
+ String endPoint = "/serviceResources?serviceModelUuid=" + UriUtils.encode(serviceModelUuid, "UTF-8")\r
+ try {\r
+ String catalogDbResponse = getResponseFromCatalogDb(execution, endPoint)\r
+\r
+ if (catalogDbResponse != null) {\r
+\r
+ resources = parseServiceResourcesJson(catalogDbResponse, "v1")\r
+ }\r
+\r
+ }\r
+ catch (Exception e) {\r
+ utils.log("ERROR", "Exception in Querying Catalog DB: " + e.message)\r
+ }\r
+\r
+ return resources\r
+ }\r
+\r
+ public JSONObject getServiceResourcesByServiceModelUuid(Execution execution, String serviceModelUuid, String catalogUtilsVersion) {\r
+ JSONObject resources = null\r
+ String endPoint = "/serviceResources?serviceModelUuid=" + UriUtils.encode(serviceModelUuid, "UTF-8")\r
+ try {\r
+ String catalogDbResponse = getResponseFromCatalogDb(execution, endPoint)\r
+\r
+ if (catalogDbResponse != null) {\r
+ if (!catalogUtilsVersion.equals("v1")) {\r
+ resources = new JSONObject(catalogDbResponse)\r
+ }\r
+ else {\r
+ resources = parseServiceResourcesJson(catalogDbResponse, catalogUtilsVersion)\r
+ }\r
+ }\r
+\r
+ }\r
+ catch (Exception e) {\r
+ utils.log("ERROR", "Exception in Querying Catalog DB: " + e.message)\r
+ }\r
+\r
+ return resources\r
+ }\r
+\r
+ \r
public JSONObject getServiceResourcesByServiceModelInvariantUuid(Execution execution, String serviceModelInvariantUuid) {\r
JSONObject resources = null\r
String endPoint = "/serviceResources?serviceModelInvariantUuid=" + UriUtils.encode(serviceModelInvariantUuid, "UTF-8")\r