diff options
author | Liam Fallon <liam.fallon@est.tech> | 2021-06-24 08:35:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-06-24 08:35:43 +0000 |
commit | f5b583897fd4170519e37e369559cd21d67c5bb3 (patch) | |
tree | 9391b426eb196d644daed9fa9c4d835a7759c3a6 /runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml | |
parent | bb3e6774d21ee50ee1a34084be67a45a37d5e764 (diff) | |
parent | eaefb9f5c24a830265d00972dce334f6565e83dc (diff) |
Merge "Added Camel Endpoint for Tosca Instantiation"
Diffstat (limited to 'runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml')
-rw-r--r-- | runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml b/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml index 0641b326e..009e00fca 100644 --- a/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml +++ b/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml @@ -52,4 +52,29 @@ </doFinally> </doTry> </route> + <route id="get-tosca-instantiation"> + <from uri="direct:get-tosca-instantiation"/> + <doTry> + <log loggingLevel="INFO" + message="Getting the Tosca instantiation"/> + <to + uri="bean:org.onap.policy.clamp.flow.log.FlowLogOperation?method=invokeLog('ControlLoop', 'Getting the Tosca instantiation')"/> + <setHeader name="CamelHttpMethod"> + <constant>GET</constant> + </setHeader> + <setHeader name="Content-Type"> + <constant>application/json</constant> + </setHeader> + <log loggingLevel="INFO" + message="Endpoint to get Tosca Instantiation: {{clamp.config.controlloop.runtime.url}}/onap/controlloop/v2/instantiation"></log> + <toD + uri="{{clamp.config.controlloop.runtime.url}}/onap/controlloop/v2/instantiation?bridgeEndpoint=true&useSystemProperties=true&throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&authMethod=Basic&authUsername={{clamp.config.controlloop.runtime.userName}}&authPassword={{clamp.config.controlloop.runtime.password}}&authenticationPreemptive=true&connectionClose=true"/> + <convertBodyTo type="java.lang.String"/> + <doFinally> + <to uri="direct:reset-raise-http-exception-flag"/> + <to + uri="bean:org.onap.policy.clamp.flow.log.FlowLogOperation?method=invokeReturnLog()"/> + </doFinally> + </doTry> + </route> </routes> |