X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fclds%2Fcamel%2Frest%2Fclamp-api-v2.xml;h=505ea30d93e89831407be3650db648e950078958;hb=1761c819d08244adaf3bbb36f053884c89d1a0db;hp=f2db72cb830df074bd60c20985d9ddd584ba4db2;hpb=3a83e2a2ff88ef49535973df8dc77dc8015170da;p=clamp.git
diff --git a/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/src/main/resources/clds/camel/rest/clamp-api-v2.xml
index f2db72cb..505ea30d 100644
--- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml
+++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml
@@ -16,10 +16,19 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ GET All Loop names FAILED
+
@@ -40,34 +49,19 @@
java.lang.Exception
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- java.lang.Exception
-
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ GET Loop FAILED
+
@@ -96,10 +90,19 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ UPDATE Global properties FAILED
+
@@ -121,16 +124,27 @@
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Operational policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+
+ 500
+
+
+ UPDATE Operational policies FAILED
+
@@ -161,10 +175,20 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+
+ 500
+
+
+ UPDATE MicroService policy FAILED
+
@@ -176,6 +200,9 @@
+
+ true
+
java.lang.Exception
- false
+ true
+
+
+
+
+
+ 500
+
+
+ DEPLOY request FAILED
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ java.lang.Exception
+
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ REFRESH json schema request FAILED
+
-
-
+
+ message="Refresh Operational Policy UI for loop: ${header.loopName} and ${header.operationalPolicyName}" />
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH Operational Policy UI request')" />
+ uri="bean:org.onap.clamp.loop.cds.CdsDataInstaller?method=updateCdsServiceProperties(${exchangeProperty[loopObject].getModelService()})" />
+
+ message="REFRESH operational policy request successfully executed for loop: ${header.loopName}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH operational policy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ REFRESH json schema request FAILED
+
@@ -249,6 +333,9 @@
+
+ true
+
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="UNDEPLOY request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ UNDEPLOY request FAILED
+
@@ -286,6 +379,9 @@
+
+ true
+
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="STOP request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ STOP request FAILED
+
@@ -323,6 +425,9 @@
+
+ true
+
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="RESTART request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ RESTART request FAILED
+
@@ -361,6 +472,9 @@
+
+ true
+
${exchangeProperty[loopObject].getMicroServicePolicies()}
-
+
${body}
+ message="Processing Micro Service Policy: ${exchangeProperty[policy].getName()}" />
false
-
-
+
+
${exchangeProperty[loopObject].getOperationalPolicies()}
-
+
${body}
+ message="Processing Operational Policy: ${exchangeProperty[policy].getName()}" />
false
-
-
-
-
-
- ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
-
-
- ${body}
-
-
-
-
- false
-
-
-
-
+
+
@@ -439,14 +535,20 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="SUBMIT request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ SUBMIT request FAILED
+
@@ -457,6 +559,9 @@
+
+ true
+
+
${exchangeProperty[loopObject].getMicroServicePolicies()}
-
+
${body}
-
+ message="Deleting Micro Service Policy: ${exchangeProperty[policy].getName()}" />
+
+ false
+
+
-
+ message="Deleting all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
${exchangeProperty[loopObject].getOperationalPolicies()}
-
+
${body}
-
-
-
- ${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
-
-
- ${body}
-
-
-
-
+ message="Deleting Operational Policy: ${exchangeProperty[policy].getName()}" />
+
+ false
+
+
+ uri="bean:org.onap.clamp.loop.LoopController?method=deleteLoop(${header.loopName})" />
-
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="DELETE request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
+
+ 500
+
+
+ DELETE request FAILED
+
@@ -538,37 +642,163 @@
-
-
-
-
+
+
+
-
-
+
-
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+ message="GET STATUS request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
${exchangeProperty[loopObject]}
+
+ 200
+
+
+
+
+
+
+
+
+
+
+
+
+ java.lang.Exception
+
+ true
+
+
+
+
+
+ 500
+
+
+ ADD Operational policy request FAILED for loop: ${header.loopName}, ${exception.message}"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${header.policyName}
+
+
+ ${exchangeProperty[loopObject].getOperationalPolicy(header.policyName)}
+
+
+ false
+
+
+
+ false
+
+
+
+
+
+
+ java.lang.Exception
+
+ true
+
+
+
+
+
+ 500
+
+
+ REMOVE Operational policy request FAILED
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ java.lang.Exception
+
+ true
+
+
+
+
+
+ 500
+
+
+ CREATE Loop from template FAILED
+
+
+
+
+
@@ -585,10 +815,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -610,10 +848,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -635,10 +881,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET Dictionary FAILED
+
@@ -662,10 +916,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ PUT Dictionary FAILED
+
@@ -692,10 +954,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ PUT Dictionary FAILED
+
@@ -716,10 +986,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ DELETE Dictionary FAILED
+
@@ -742,10 +1020,18 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ DELETE Dictionary element FAILED
+
@@ -770,31 +1056,33 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy models FAILED
+
-
+ excludePattern="policyModelType|policyModelVersion" />
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model by Name/Version')" />
+ uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelByType(${header.policyModelType},${header.policyModelVersion})" />
@@ -802,30 +1090,32 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy model FAILED
+
-
+ excludePattern="policyModelType|policyModelVersion" />
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model Yaml String by Name/Version')" />
+ uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelTosca(${header.policyModelType},${header.policyModelVersion})" />
@@ -833,36 +1123,37 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Policy model YAML FAILED
+
-
-
+
-
+
${body}
+ uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=createNewPolicyModelFromTosca(${exchangeProperty[PolicyModelTosca]})" />
@@ -870,20 +1161,59 @@
true
+
+
- 404
+ 500
-
- ERROR: ${exception.message}
-
+
+ POST Policy model YAML FAILED
+
+
+
+
+
+
+
+
+
+
+
+
+ ${body}
+
+
+
+
+ java.lang.Exception
+
+ true
+
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ MODIFY Policy model YAML FAILED
+
-
@@ -903,14 +1233,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET ALL templates FAILED
+
@@ -935,14 +1267,16 @@
true
+
+
500
-
- ERROR: ${exception.message}
-
-
+
+ GET Template FAILED
+
@@ -963,13 +1297,26 @@
java.lang.Exception
- false
+ true
+ uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
+
+
+ 500
+
+
+ GET All Template names FAILED
+
+
+
+