1 <rests xmlns="http://camel.apache.org/schema/spring">
3 <get uri="/v2/loop/getAllNames" outType="java.lang.String[]"
4 produces="application/json">
6 <removeHeaders pattern="*" />
9 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop')" />
11 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
13 uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" />
15 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
17 <exception>java.lang.Exception</exception>
19 <constant>false</constant>
22 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
27 <get uri="/v2/loop/{loopName}" outType="org.onap.clamp.loop.Loop"
28 produces="application/json">
30 <removeHeaders pattern="*" excludePattern="loopName" />
33 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Loop')" />
35 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
37 uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
39 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
41 <exception>java.lang.Exception</exception>
43 <constant>false</constant>
46 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
51 <get uri="/v2/loop/svgRepresentation/{loopName}"
52 outType="java.lang.String" produces="application/xml">
54 <removeHeaders pattern="*" excludePattern="loopName" />
57 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation')" />
59 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
61 uri="bean:org.onap.clamp.loop.LoopController?method=getSvgRepresentation(${header.loopName})" />
63 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
65 <exception>java.lang.Exception</exception>
67 <constant>false</constant>
70 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
76 <post uri="/v2/loop/updateGlobalProperties/{loopName}"
77 type="com.google.gson.JsonObject" consumes="application/json"
78 outType="org.onap.clamp.loop.Loop" produces="application/json">
80 <removeHeaders pattern="*" excludePattern="loopName" />
83 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update the global properties')" />
85 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
86 <setHeader headerName="GlobalPropertiesJson">
87 <simple>${body}</simple>
89 <to uri="direct:load-loop" />
91 uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${header.GlobalPropertiesJson})" />
93 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Global Properties UPDATED','INFO',${exchangeProperty[loopObject]})" />
95 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
97 <exception>java.lang.Exception</exception>
99 <constant>false</constant>
102 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
107 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
108 type="com.google.gson.JsonArray" consumes="application/json"
109 outType="org.onap.clamp.loop.Loop" produces="application/json">
111 <removeHeaders pattern="*" excludePattern="loopName" />
114 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update operational policies')" />
116 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
117 <setHeader headerName="OperationalPoliciesArray">
118 <simple>${body}</simple>
120 <to uri="direct:load-loop" />
122 uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${header.OperationalPoliciesArray})" />
124 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Operational and Guard policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
126 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
128 <exception>java.lang.Exception</exception>
130 <constant>false</constant>
133 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
138 <post uri="/v2/loop/updateMicroservicePolicy/{loopName}"
139 type="org.onap.clamp.policy.microservice.MicroServicePolicy"
140 consumes="application/json"
141 outType="org.onap.clamp.policy.microservice.MicroServicePolicy"
142 produces="application/json">
144 <removeHeaders pattern="*" excludePattern="loopName" />
147 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update Microservice policies')" />
149 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
150 <setProperty propertyName="MicroServicePolicyObject">
151 <simple>${body}</simple>
154 <to uri="direct:load-loop" />
156 uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${exchangeProperty[MicroServicePolicyObject]})" />
158 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Micro Service policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
160 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
162 <exception>java.lang.Exception</exception>
164 <constant>false</constant>
167 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
172 <put uri="/v2/loop/deploy/{loopName}"
173 outType="org.onap.clamp.loop.Loop" produces="application/json">
175 <removeHeaders pattern="*" excludePattern="loopName" />
177 <log loggingLevel="INFO"
178 message="DCAE DEPLOY request for loop: ${header.loopName}" />
180 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE DEPLOY request')" />
182 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
183 <to uri="direct:load-loop" />
185 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE DEPLOY request','INFO',${exchangeProperty[loopObject]})" />
187 <to uri="direct:deploy-loop" />
189 <log loggingLevel="INFO"
190 message="DEPLOY request successfully executed for loop: ${header.loopName}" />
192 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
194 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
196 <exception>java.lang.Exception</exception>
198 <constant>false</constant>
201 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
202 <log loggingLevel="ERROR"
203 message="DEPLOY request failed for loop: ${header.loopName}" />
205 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
210 <put uri="/v2/loop/refreshOpPolicyJsonSchema/{loopName}"
211 outType="org.onap.clamp.loop.Loop" produces="application/json">
213 <removeHeaders pattern="*" excludePattern="loopName" />
215 <log loggingLevel="INFO"
216 message="Refresh Operational Policy UI for loop: ${header.loopName}" />
218 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH OP Policy UI request')" />
220 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
221 <to uri="direct:load-loop" />
223 uri="bean:org.onap.clamp.loop.LoopController?method=refreshOpPolicyJsonRepresentation(${header.loopName})" />
224 <log loggingLevel="INFO"
225 message="REFRESH request successfully executed for loop: ${header.loopName}" />
227 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH request successfully executed','INFO',${exchangeProperty[loopObject]})" />
229 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
231 <exception>java.lang.Exception</exception>
233 <constant>false</constant>
236 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
237 <log loggingLevel="ERROR"
238 message="REFRESH request failed for loop: ${header.loopName}" />
240 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
245 <put uri="/v2/loop/undeploy/{loopName}"
246 outType="org.onap.clamp.loop.Loop" produces="application/json">
248 <removeHeaders pattern="*" excludePattern="loopName" />
250 <log loggingLevel="INFO"
251 message="DCAE UNDEPLOY request for loop: ${header.loopName}" />
253 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE UNDEPLOY request')" />
255 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
256 <to uri="direct:load-loop" />
258 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE UNDEPLOY request','INFO',${exchangeProperty[loopObject]})" />
259 <to uri="direct:undeploy-loop" />
261 <log loggingLevel="INFO"
262 message="UNDEPLOY request successfully executed for loop: ${header.loopName}" />
264 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
266 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
268 <exception>java.lang.Exception</exception>
270 <constant>false</constant>
273 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
274 <log loggingLevel="ERROR"
275 message="UNDEPLOY request failed for loop: ${header.loopName}" />
277 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
282 <put uri="/v2/loop/stop/{loopName}"
283 outType="org.onap.clamp.loop.Loop" produces="application/json">
285 <removeHeaders pattern="*" excludePattern="loopName" />
287 <log loggingLevel="INFO"
288 message="STOP request for loop: ${header.loopName}" />
290 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'STOP request')" />
292 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
293 <to uri="direct:load-loop" />
295 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request','INFO',${exchangeProperty[loopObject]})" />
297 <to uri="direct:remove-all-policy-from-active-pdp-group" />
298 <log loggingLevel="INFO"
299 message="STOP request successfully executed for loop: ${header.loopName}" />
301 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request successfully executed','INFO',${exchangeProperty[loopObject]})" />
303 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
305 <exception>java.lang.Exception</exception>
307 <constant>false</constant>
310 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
311 <log loggingLevel="ERROR"
312 message="STOP request failed for loop: $${header.loopName}" />
314 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
319 <put uri="/v2/loop/restart/{loopName}"
320 outType="org.onap.clamp.loop.Loop" produces="application/json">
322 <removeHeaders pattern="*" excludePattern="loopName" />
324 <log loggingLevel="INFO"
325 message="RESTART request for loop: ${header.loopName}" />
327 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'RESTART request')" />
329 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
330 <to uri="direct:load-loop" />
333 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request','INFO',${exchangeProperty[loopObject]})" />
335 <to uri="direct:add-all-to-active-pdp-group" />
336 <log loggingLevel="INFO"
337 message="RESTART request successfully executed for loop: ${header.loopName}" />
339 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request successfully executed','INFO',${exchangeProperty[loopObject]})" />
341 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
343 <exception>java.lang.Exception</exception>
345 <constant>false</constant>
348 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
349 <log loggingLevel="ERROR"
350 message="RESTART request failed for loop: ${header.loopName}" />
352 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request failed, Error reported: ${exception} - Body: ${exception.responseBody}','INFO',${exchangeProperty[loopObject]})" />
357 <put uri="/v2/loop/submit/{loopName}"
358 outType="org.onap.clamp.loop.Loop" produces="application/json">
360 <removeHeaders pattern="*" excludePattern="loopName" />
362 <log loggingLevel="INFO"
363 message="POLICY SUBMIT request for loop: ${header.loopName}" />
365 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'POLICY SUBMIT request')" />
367 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
368 <to uri="direct:load-loop" />
370 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('POLICY SUBMIT request','INFO',${exchangeProperty[loopObject]})" />
371 <setProperty propertyName="raiseHttpExceptionFlag">
372 <simple resultType="java.lang.Boolean">false</simple>
374 <to uri="direct:remove-all-policy-from-active-pdp-group" />
375 <log loggingLevel="INFO"
376 message="Processing all MICRO-SERVICES policies defined in loop ${exchangeProperty[loopObject].getName()}" />
378 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
380 <setProperty propertyName="microServicePolicy">
381 <simple>${body}</simple>
383 <log loggingLevel="INFO"
384 message="Processing Micro Service Policy: ${exchangeProperty[microServicePolicy].getName()}" />
385 <setProperty propertyName="raiseHttpExceptionFlag">
386 <simple resultType="java.lang.Boolean">false</simple>
388 <to uri="direct:delete-micro-service-policy" />
389 <to uri="direct:create-micro-service-policy" />
391 <log loggingLevel="INFO"
392 message="Processing all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
394 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
396 <setProperty propertyName="operationalPolicy">
397 <simple>${body}</simple>
399 <log loggingLevel="INFO"
400 message="Processing Operational Policy: ${exchangeProperty[operationalPolicy].getName()}" />
401 <setProperty propertyName="raiseHttpExceptionFlag">
402 <simple resultType="java.lang.Boolean">false</simple>
405 <to uri="direct:delete-operational-policy" />
406 <to uri="direct:create-operational-policy" />
408 <log loggingLevel="INFO"
409 message="Processing all GUARD policies defined in loop ${exchangeProperty[loopObject].getName()}" />
411 <simple>${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
413 <setProperty propertyName="guardPolicy">
414 <simple>${body}</simple>
416 <log loggingLevel="INFO"
417 message="Processing Guard Policy: ${exchangeProperty[guardPolicy].getKey()}" />
419 <setProperty propertyName="raiseHttpExceptionFlag">
420 <simple resultType="java.lang.Boolean">false</simple>
422 <to uri="direct:delete-guard-policy" />
423 <to uri="direct:create-guard-policy" />
428 <constant>3000</constant>
431 <to uri="direct:add-all-to-active-pdp-group" />
433 <log loggingLevel="INFO"
434 message="SUBMIT request successfully executed for loop: ${header.loopName}" />
436 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request successfully executed','INFO',${exchangeProperty[loopObject]})" />
438 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
440 <exception>java.lang.Exception</exception>
442 <constant>false</constant>
445 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
446 <log loggingLevel="ERROR"
447 message="SUBMIT request failed for loop: ${header.loopName}" />
449 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
454 <put uri="/v2/loop/delete/{loopName}">
456 <removeHeaders pattern="*" excludePattern="loopName" />
458 <log loggingLevel="INFO"
459 message="DELETE request for loop: ${header.loopName}" />
461 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'DELETE request')" />
463 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
464 <to uri="direct:load-loop" />
466 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request','INFO',${exchangeProperty[loopObject]})" />
467 <to uri="direct:undeploy-loop" />
468 <to uri="direct:remove-all-policy-from-active-pdp-group" />
470 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
472 <setProperty propertyName="microServicePolicy">
473 <simple>${body}</simple>
475 <log loggingLevel="INFO"
476 message="Processing Micro Service Policy: ${exchangeProperty[microServicePolicy].getName()}" />
477 <to uri="direct:delete-micro-service-policy" />
480 <log loggingLevel="INFO"
481 message="Processing all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
483 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
485 <setProperty propertyName="operationalPolicy">
486 <simple>${body}</simple>
488 <log loggingLevel="INFO"
489 message="Processing Operational Policy: ${exchangeProperty[operationalPolicy].getName()}" />
490 <to uri="direct:delete-operational-policy" />
491 <log loggingLevel="INFO"
492 message="Processing all GUARD policies defined in loop ${exchangeProperty[loopObject].getName()}" />
494 <simple>${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
496 <setProperty propertyName="guardPolicy">
497 <simple>${body}</simple>
499 <log loggingLevel="INFO"
500 message="Processing Guard Policy: ${exchangeProperty[guardPolicy].getKey()}" />
501 <to uri="direct:delete-guard-policy" />
505 uri="bean:org.onap.clamp.loop.log.LoopController?method=deleteLoop(${header.loopName})" />
506 <log loggingLevel="INFO"
507 message="DELETE request successfully executed for loop: ${header.loopName}" />
509 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request successfully executed','INFO',${exchangeProperty[loopObject]})" />
511 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
513 <exception>java.lang.Exception</exception>
515 <constant>false</constant>
518 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
519 <log loggingLevel="ERROR"
520 message="DELETE request failed for loop: ${header.loopName}" />
522 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
527 <get uri="/v2/loop/getstatus/{loopName}"
528 outType="org.onap.clamp.loop.Loop" produces="application/json">
530 <removeHeaders pattern="*" excludePattern="loopName" />
532 <log loggingLevel="INFO"
533 message="GET STATUS request for loop: ${header.loopName}" />
535 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET STATUS request')" />
537 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
538 <to uri="direct:load-loop" />
540 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request','INFO',${exchangeProperty[loopObject]})" />
542 <to uri="direct:update-policy-status-for-loop" />
543 <to uri="direct:update-dcae-status-for-loop" />
544 <to uri="direct:update-loop-state" />
547 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Get Status request successfully executed','INFO',${exchangeProperty[loopObject]})" />
549 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
552 <exception>java.lang.Exception</exception>
554 <constant>false</constant>
557 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
558 <log loggingLevel="ERROR"
559 message="Get Status request failed for loop: ${header.loopName}" />
561 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Get Status request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
565 <simple>${exchangeProperty[loopObject]}</simple>
572 <put uri="/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" outType="org.onap.clamp.loop.Loop" produces="application/json">
574 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion" />
577 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add operational Policy')" />
579 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
580 <to uri="direct:load-loop" />
582 uri="bean:org.onap.clamp.loop.LoopController?method=addOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
584 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
586 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
588 <exception>java.lang.Exception</exception>
590 <constant>false</constant>
593 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
594 <log loggingLevel="ERROR"
595 message="ADD OperationalPolicy request failed for loop: ${header.loopName}" />
597 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
603 uri="/v2/loop/create/{loopName}?templateName={templateName}"
604 outType="org.onap.clamp.loop.Loop" consumes="application/json"
605 produces="application/json">
609 excludePattern="loopName|templateName" />
612 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Create Loop')" />
614 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
616 uri="bean:org.onap.clamp.loop.LoopController?method=createLoop(${header.loopName}, ${header.templateName})" />
618 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
620 <exception>java.lang.Exception</exception>
622 <constant>true</constant>
624 <setHeader headerName="CamelHttpResponseCode">
625 <constant>500</constant>
628 <simple>ERROR: ${exception.message}</simple>
631 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
636 <get uri="/v2/dictionary"
637 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
639 <removeHeaders pattern="*" />
642 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionaries')" />
644 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
646 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllDictionaries()" />
648 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
650 <exception>java.lang.Exception</exception>
652 <constant>false</constant>
655 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
661 <get uri="/v2/dictionary/secondary/names"
662 outType="java.lang.String[]" produces="application/json">
664 <removeHeaders pattern="*" />
667 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Secondary Dictionary Level Names')" />
669 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
671 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllSecondaryLevelDictionaryNames()" />
673 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
675 <exception>java.lang.Exception</exception>
677 <constant>false</constant>
680 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
685 <get uri="/v2/dictionary/{dictionaryName}"
686 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
688 <removeHeaders pattern="*"
689 excludePattern="dictionaryName" />
692 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionary Elements for a Dictionary Name')" />
694 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
696 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getDictionary(${header.dictionaryName})" />
698 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
700 <exception>java.lang.Exception</exception>
702 <constant>false</constant>
705 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
710 <put uri="/v2/dictionary" type="org.onap.clamp.tosca.Dictionary"
711 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
712 produces="application/json">
716 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary')" />
718 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
719 <setProperty propertyName="DictionaryObject">
720 <simple>${body}</simple>
723 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionary(${exchangeProperty[DictionaryObject]})" />
725 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
727 <exception>java.lang.Exception</exception>
729 <constant>false</constant>
732 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
738 <put uri="/v2/dictionary/{name}"
739 type="org.onap.clamp.tosca.Dictionary"
740 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
741 produces="application/json">
743 <removeHeaders pattern="*" excludePattern="name" />
746 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary Element')" />
748 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
749 <setProperty propertyName="DictionaryObject">
750 <simple>${body}</simple>
753 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionaryElement(${header.name}, ${exchangeProperty[DictionaryObject]})" />
755 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
757 <exception>java.lang.Exception</exception>
759 <constant>false</constant>
762 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
768 <delete uri="/v2/dictionary/{name}" produces="application/json">
770 <removeHeaders pattern="*" excludePattern="name" />
773 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary')" />
775 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
777 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionary(${header.name})" />
779 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
781 <exception>java.lang.Exception</exception>
783 <constant>false</constant>
786 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
792 <delete uri="/v2/dictionary/{name}/elements/{shortName}"
793 produces="application/json">
795 <removeHeaders pattern="*"
796 excludePattern="name|shortName" />
799 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary Element')" />
801 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
803 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionaryElement(${header.name}, ${header.shortName})" />
805 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
807 <exception>java.lang.Exception</exception>
809 <constant>false</constant>
812 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
818 <get uri="/v2/policyToscaModels"
819 outType="org.onap.clamp.loop.template.PolicyModel"
820 produces="application/json">
822 <removeHeaders pattern="*" />
825 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Tosca Policy Models')" />
827 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
829 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getAllPolicyModels()" />
831 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
833 <exception>java.lang.Exception</exception>
835 <constant>true</constant>
837 <setHeader headerName="CamelHttpResponseCode">
838 <constant>500</constant>
841 <simple>ERROR: ${exception.message}</simple>
844 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
849 <get uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
850 outType="org.onap.clamp.loop.template.PolicyModel"
851 produces="application/json">
853 <removeHeaders pattern="*"
854 excludePattern="policyModelType|policyModelVersion" />
857 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model by Name/Version')" />
859 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
861 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelByType(${header.policyModelType},${header.policyModelVersion})" />
863 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
865 <exception>java.lang.Exception</exception>
867 <constant>true</constant>
869 <setHeader headerName="CamelHttpResponseCode">
870 <constant>500</constant>
873 <simple>ERROR: ${exception.message}</simple>
876 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
881 <get uri="/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}"
882 outType="java.lang.String" produces="application/json">
884 <removeHeaders pattern="*"
885 excludePattern="policyModelType|policyModelVersion" />
888 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model Yaml String by Name/Version')" />
890 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
892 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelTosca(${header.policyModelType},${header.policyModelVersion})" />
894 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
896 <exception>java.lang.Exception</exception>
898 <constant>true</constant>
900 <setHeader headerName="CamelHttpResponseCode">
901 <constant>500</constant>
904 <simple>ERROR: ${exception.message}</simple>
907 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
913 <post uri="/v2/policyToscaModels"
914 type="java.lang.String"
915 outType="org.onap.clamp.loop.template.PolicyModel"
916 consumes="plain/text" produces="application/json">
918 <removeHeaders pattern="*"/>
921 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
923 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
924 <setProperty propertyName="PolicyModelTosca">
925 <simple>${body}</simple>
928 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=createNewPolicyModelFromTosca(${exchangeProperty[PolicyModelTosca]})" />
930 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
932 <exception>java.lang.Exception</exception>
934 <constant>true</constant>
936 <setHeader headerName="CamelHttpResponseCode">
937 <constant>404</constant>
940 <simple>ERROR: ${exception.message}</simple>
943 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
948 <put uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
949 type="java.lang.String"
950 outType="org.onap.clamp.loop.template.PolicyModel"
951 consumes="plain/text" produces="application/json">
953 <removeHeaders pattern="*"
954 excludePattern="policyModelType|policyModelVersion" />
957 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
959 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
960 <setProperty propertyName="PolicyModelTosca">
961 <simple>${body}</simple>
964 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=updatePolicyModelTosca(${header.policyModelType},${policyModelVersion},${exchangeProperty[PolicyModelTosca]})" />
966 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
968 <exception>java.lang.Exception</exception>
970 <constant>true</constant>
972 <setHeader headerName="CamelHttpResponseCode">
973 <constant>404</constant>
976 <simple>ERROR: ${exception.message}</simple>
979 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
985 <get uri="/v2/templates"
986 outType="org.onap.clamp.loop.template.LoopTemplate"
987 produces="application/json">
989 <removeHeaders pattern="*" />
992 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Templates')" />
994 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
996 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getAllLoopTemplates()" />
998 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1000 <exception>java.lang.Exception</exception>
1002 <constant>true</constant>
1004 <setHeader headerName="CamelHttpResponseCode">
1005 <constant>500</constant>
1008 <simple>ERROR: ${exception.message}</simple>
1011 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1016 <get uri="/v2/templates/{templateName}"
1017 outType="org.onap.clamp.loop.template.LoopTemplate"
1018 produces="application/json">
1020 <removeHeaders pattern="*"
1021 excludePattern="templateName" />
1024 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET a Template by NAME')" />
1026 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1028 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplate(${header.templateName})" />
1030 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1032 <exception>java.lang.Exception</exception>
1034 <constant>true</constant>
1036 <setHeader headerName="CamelHttpResponseCode">
1037 <constant>500</constant>
1040 <simple>ERROR: ${exception.message}</simple>
1043 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1048 <get uri="/v2/templates/names" outType="java.lang.String[]"
1049 produces="application/json">
1051 <removeHeaders pattern="*" />
1054 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop Template Names')" />
1056 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1058 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplateNames()" />
1060 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1062 <exception>java.lang.Exception</exception>
1064 <constant>false</constant>
1067 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1072 <get uri="/v2/templates/{templateName}/svgRepresentation"
1073 outType="java.lang.String" produces="application/xml">
1075 <removeHeaders pattern="*" excludePattern="templateName" />
1078 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation for Loop template')" />
1080 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1082 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getSvgRepresentation(${header.templateName})" />
1084 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1086 <exception>java.lang.Exception</exception>
1088 <constant>false</constant>
1091 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1096 <get uri="/v2/clampInformation" outType="org.onap.clamp.clds.model.ClampInformation"
1097 produces="application/json">
1099 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=getClampInformation()" />