aboutsummaryrefslogtreecommitdiffstats
path: root/runtime-acm/src/main/resources/openapi/examples/getAllCompositionInstancesResponse.json
diff options
context:
space:
mode:
authorFrancescoFioraEst <francesco.fiora@est.tech>2023-09-26 09:50:45 +0100
committerFrancesco Fiora <francesco.fiora@est.tech>2023-09-26 09:06:01 +0000
commit9c80538723265147294e6e8e42ed11ca5139764a (patch)
tree61cbd5b8205fc1c974daeb05a9486f4e01740b64 /runtime-acm/src/main/resources/openapi/examples/getAllCompositionInstancesResponse.json
parent4407ea6948a060734a4f2836b11bd2d5c6ea6194 (diff)
Update examples with new functionality
Issue-ID: POLICY-4828 Change-Id: I7839bf6d49bd08cec42c51b460d3dc04422e4ba7 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Diffstat (limited to 'runtime-acm/src/main/resources/openapi/examples/getAllCompositionInstancesResponse.json')
-rwxr-xr-x[-rw-r--r--]runtime-acm/src/main/resources/openapi/examples/getAllCompositionInstancesResponse.json141
1 files changed, 107 insertions, 34 deletions
diff --git a/runtime-acm/src/main/resources/openapi/examples/getAllCompositionInstancesResponse.json b/runtime-acm/src/main/resources/openapi/examples/getAllCompositionInstancesResponse.json
index a1d0a999d..a79b66de7 100644..100755
--- a/runtime-acm/src/main/resources/openapi/examples/getAllCompositionInstancesResponse.json
+++ b/runtime-acm/src/main/resources/openapi/examples/getAllCompositionInstancesResponse.json
@@ -1,9 +1,10 @@
{
"automationCompositionList": [
{
+ "instanceId": "caf50cde-11a2-4915-a49c-609762714a6f",
"compositionId": "562ed027-2689-481a-b3a5-e284b1fbc33f",
- "state": "UNINITIALISED",
- "orderedState": "UNINITIALISED",
+ "deployState": "DEPLOYED",
+ "lockState": "LOCKED",
"elements": {
"709c62b3-8918-41b9-a747-d21eb79c6c23": {
"id": "709c62b3-8918-41b9-a747-d21eb79c6c23",
@@ -11,53 +12,125 @@
"name": "onap.policy.clamp.ac.element.Http_SinkAutomationCompositionElement",
"version": "1.2.3"
},
- "participantType": {
- "name": "org.onap.policy.clamp.acm.HttpParticipant",
- "version": "2.3.4"
- },
- "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c01",
- "state": "UNINITIALISED",
- "orderedState": "UNINITIALISED",
+ "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91",
+ "deployState": "DEPLOYED",
+ "lockState": "LOCKED",
"description": "Sink Automation Composition Element for the Demo",
- "propertiesMap": {}
+ "message": "Deployed",
+ "properties": {
+ "baseUrl": "http://10.101.0.249:30802",
+ "httpHeaders": {
+ "Content-Type": "application/json",
+ "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ="
+ },
+ "configurationEntities": [
+ {
+ "configurationEntityId": {
+ "name": "onap.policy.clamp.ac.sink",
+ "version": "1.0.0"
+ },
+ "restSequence": [
+ {
+ "restRequestId": {
+ "name": "request3",
+ "version": "1.0.1"
+ },
+ "httpMethod": "POST",
+ "path": "/activate",
+ "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.sink\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"SINK\", \"topicParameterGroup\": { \"server\": \"message-router\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }",
+ "expectedResponse": 201
+ }
+ ]
+ }
+ ]
+ },
+ "outProperties": {}
},
- "709c62b3-8918-41b9-a747-d21eb79c6c25": {
- "id": "709c62b3-8918-41b9-a747-d21eb79c6c25",
+ "709c62b3-8918-41b9-a747-d21eb79c6c24": {
+ "id": "709c62b3-8918-41b9-a747-d21eb79c6c24",
"definition": {
- "name": "onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement",
+ "name": "onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement",
"version": "1.2.3"
},
- "participantType": {
- "name": "org.onap.policy.clamp.acm.HttpParticipant",
- "version": "2.3.4"
+ "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91",
+ "deployState": "DEPLOYED",
+ "lockState": "LOCKED",
+ "description": "Starter Automation Composition Element for the Demo",
+ "message": "Deployed",
+ "properties": {
+ "baseUrl": "http://10.101.0.249:30800",
+ "httpHeaders": {
+ "Content-Type": "application/json",
+ "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ="
+ },
+ "configurationEntities": [
+ {
+ "configurationEntityId": {
+ "name": "onap.policy.clamp.ac.starter",
+ "version": "1.0.0"
+ },
+ "restSequence": [
+ {
+ "restRequestId": {
+ "name": "request1",
+ "version": "1.0.1"
+ },
+ "httpMethod": "POST",
+ "path": "/activate",
+ "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.startertobridge\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"STARTER\", \"topicParameterGroup\": { \"server\": \"message-router:3904\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }",
+ "expectedResponse": 201
+ }
+ ]
+ }
+ ]
},
- "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c01",
- "state": "UNINITIALISED",
- "orderedState": "UNINITIALISED",
- "description": "Bridge Automation Composition Element for the Demo",
- "propertiesMap": {}
+ "outProperties": {}
},
- "709c62b3-8918-41b9-a747-d21eb79c6c24": {
- "id": "709c62b3-8918-41b9-a747-d21eb79c6c24",
+ "709c62b3-8918-41b9-a747-d21eb79c6c25": {
+ "id": "709c62b3-8918-41b9-a747-d21eb79c6c25",
"definition": {
- "name": "onap.policy.clamp.ac.element.Http_StarterAutomationCompositionElement",
+ "name": "onap.policy.clamp.ac.element.Http_BridgeAutomationCompositionElement",
"version": "1.2.3"
},
- "participantType": {
- "name": "org.onap.policy.clamp.acm.HttpParticipant",
- "version": "2.3.4"
+ "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c91",
+ "deployState": "DEPLOYED",
+ "lockState": "LOCKED",
+ "description": "Bridge Automation Composition Element for the Demo",
+ "message": "Deployed",
+ "properties": {
+ "baseUrl": "http://10.101.0.249:30801",
+ "httpHeaders": {
+ "Content-Type": "application/json",
+ "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ="
+ },
+ "configurationEntities": [
+ {
+ "configurationEntityId": {
+ "name": "onap.policy.clamp.ac.bridge",
+ "version": "1.0.0"
+ },
+ "restSequence": [
+ {
+ "restRequestId": {
+ "name": "request2",
+ "version": "1.0.1"
+ },
+ "httpMethod": "POST",
+ "path": "/activate",
+ "body": "{ \"receiverId\": { \"name\": \"onap.policy.clamp.ac.bridgetosink\", \"version\": \"1.0.0\" }, \"timerMs\": 20000, \"elementType\": \"BRIDGE\", \"topicParameterGroup\": { \"server\": \"message-router:3904\", \"listenerTopic\": \"POLICY_UPDATE_MSG\", \"publisherTopic\": \"AC_ELEMENT_MSG\", \"fetchTimeout\": 15000, \"topicCommInfrastructure\": \"dmaap\" } }",
+ "expectedResponse": 201
+ }
+ ]
+ }
+ ]
},
- "participantId": "101c62b3-8918-41b9-a747-d21eb79c6c01",
- "state": "UNINITIALISED",
- "orderedState": "UNINITIALISED",
- "description": "Starter Automation Composition Element for the Demo",
- "propertiesMap": {}
+ "outProperties": {}
}
},
- "primed": false,
+ "stateChangeResult": "NO_ERROR",
"name": "InstanceHttp",
"version": "1.0.1",
"description": "Demo automation composition instance Http"
}
]
-} \ No newline at end of file
+}