From f35587328e1bd99882ed8a4df85d01660d54c007 Mon Sep 17 00:00:00 2001 From: brunomilitzer Date: Thu, 5 May 2022 15:20:30 +0100 Subject: Added Edit Instance Properties Functionality Issue-ID: POLICY-4094 Change-Id: Id52dba3c0912486fa551697be170c05542a0ee22 Signed-off-by: brunomilitzer --- .../resources/clds/camel/rest/clamp-api-v2.xml | 50 ++++++++++++- .../main/resources/clds/camel/routes/acm-flows.xml | 81 +++++++++++++++++++++- 2 files changed, 126 insertions(+), 5 deletions(-) (limited to 'runtime/src/main/resources/clds') diff --git a/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml index 8ad20a844..7db468024 100644 --- a/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ b/runtime/src/main/resources/clds/camel/rest/clamp-api-v2.xml @@ -1480,7 +1480,7 @@ produces="application/json"> + excludePattern="name|version|instanceName"/> @@ -1860,6 +1860,50 @@ + + + + + + false + + + application/json + + + + + + + + java.lang.Exception + + true + + + + + + 500 + + + Updating Instance Properties FAILED + + + + + + + excludePattern="name|version|instanceName|requestId|common"/> @@ -1932,7 +1976,7 @@ 500 - GET Common Properties FAILED + GET Common or Instance Properties FAILED diff --git a/runtime/src/main/resources/clds/camel/routes/acm-flows.xml b/runtime/src/main/resources/clds/camel/routes/acm-flows.xml index c304c5360..9150a2335 100644 --- a/runtime/src/main/resources/clds/camel/routes/acm-flows.xml +++ b/runtime/src/main/resources/clds/camel/routes/acm-flows.xml @@ -18,9 +18,12 @@ ${header.version} + + ${header.instanceName} + - + @@ -166,6 +169,37 @@ + + + + + + + PUT + + + application/json + + + ${header.name} + + + ${header.version} + + + + + + + + + + @@ -369,13 +403,56 @@ application/json + + ${header.name} + + + ${header.version} + + + ${header.instanceName} + ${header.common} + uri="{{clamp.config.acm.runtime.url}}/onap/policy/clamp/acm/v2/commission/getCommonOrInstanceProperties?name=${exchangeProperty[name]}&version=${exchangeProperty[version]}&instanceName=${exchangeProperty[instanceName]}&common=${exchangeProperty[common]}&bridgeEndpoint=true&useSystemProperties=true&throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&authMethod=Basic&authUsername={{clamp.config.acm.runtime.userName}}&authPassword={{clamp.config.acm.runtime.password}}&authenticationPreemptive=true&connectionClose=true"/> + + + + + + + + + + + + + + GET + + + application/json + + + ${header.name} + + + ${header.version} + + + ${header.instanceName} + + + -- cgit 1.2.3-korg