blob: a5871745f0d2d4f46ceed50b8105e29d40a24d79 [file] [log] [blame]
Pamela Dragosh22ded7e2019-10-03 08:20:42 -04001{
2 "info": {
3 "_postman_id": "502c0589-2c47-49c9-a067-dc99eff663de",
4 "name": "Policy API",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6 },
7 "item": [
8 {
9 "name": "Api Healthcheck",
10 "request": {
11 "auth": {
12 "type": "basic",
13 "basic": [
14 {
15 "key": "password",
16 "value": "zb!XztG34",
17 "type": "string"
18 },
19 {
20 "key": "username",
21 "value": "healthcheck",
22 "type": "string"
23 }
24 ]
25 },
26 "method": "GET",
27 "header": [
28 {
29 "key": "Content-Type",
30 "type": "text",
31 "value": "application/json"
32 },
33 {
34 "key": "Accept",
35 "type": "text",
36 "value": "application/json"
37 }
38 ],
39 "url": {
40 "raw": "{{POLICY-API-URL}}/policy/api/v1/healthcheck",
41 "host": [
42 "{{POLICY-API-URL}}"
43 ],
44 "path": [
45 "policy",
46 "api",
47 "v1",
48 "healthcheck"
49 ]
50 }
51 },
52 "response": []
53 },
54 {
55 "name": "PAP Healthcheck",
56 "request": {
57 "auth": {
58 "type": "basic",
59 "basic": [
60 {
61 "key": "password",
62 "value": "zb!XztG34",
63 "type": "string"
64 },
65 {
66 "key": "username",
67 "value": "healthcheck",
68 "type": "string"
69 }
70 ]
71 },
72 "method": "GET",
73 "header": [
74 {
75 "key": "Content-Type",
76 "value": "application/json",
77 "type": "text"
78 },
79 {
80 "key": "Accept",
81 "value": "application/json",
82 "type": "text"
83 }
84 ],
85 "url": {
86 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/healthcheck",
87 "host": [
88 "{{POLICY-PAP-URL}}"
89 ],
90 "path": [
91 "policy",
92 "pap",
93 "v1",
94 "healthcheck"
95 ]
96 }
97 },
98 "response": []
99 },
100 {
101 "name": "Apex Healthcheck",
102 "request": {
103 "auth": {
104 "type": "basic",
105 "basic": [
106 {
107 "key": "password",
108 "value": "zb!XztG34",
109 "type": "string"
110 },
111 {
112 "key": "username",
113 "value": "healthcheck",
114 "type": "string"
115 }
116 ]
117 },
118 "method": "GET",
119 "header": [
120 {
121 "key": "Content-Type",
122 "type": "text",
123 "value": "application/json"
124 },
125 {
126 "key": "Accept",
127 "type": "text",
128 "value": "application/json"
129 }
130 ],
131 "url": {
132 "raw": "{{POLICY-APEX-URL}}/policy/apex-pdp/v1/healthcheck",
133 "host": [
134 "{{POLICY-APEX-URL}}"
135 ],
136 "path": [
137 "policy",
138 "apex-pdp",
139 "v1",
140 "healthcheck"
141 ]
142 }
143 },
144 "response": []
145 },
146 {
147 "name": "Drools Healthcheck",
148 "request": {
149 "auth": {
150 "type": "basic",
151 "basic": [
152 {
153 "key": "password",
154 "value": "zb!XztG34",
155 "type": "string"
156 },
157 {
158 "key": "username",
159 "value": "healthcheck",
160 "type": "string"
161 }
162 ]
163 },
164 "method": "GET",
165 "header": [
166 {
167 "key": "Content-Type",
168 "type": "text",
169 "value": "application/json"
170 },
171 {
172 "key": "Accept",
173 "type": "text",
174 "value": "application/json"
175 }
176 ],
177 "url": {
178 "raw": "{{POLICY-DROOLS-URL}}/policy/pdpd/v1/healthcheck",
179 "host": [
180 "{{POLICY-DROOLS-URL}}"
181 ],
182 "path": [
183 "policy",
184 "pdpd",
185 "v1",
186 "healthcheck"
187 ]
188 }
189 },
190 "response": []
191 },
192 {
193 "name": "Xacml Healthcheck",
194 "request": {
195 "auth": {
196 "type": "basic",
197 "basic": [
198 {
199 "key": "password",
200 "value": "zb!XztG34",
201 "type": "string"
202 },
203 {
204 "key": "username",
205 "value": "healthcheck",
206 "type": "string"
207 }
208 ]
209 },
210 "method": "GET",
211 "header": [
212 {
213 "key": "Content-Type",
214 "type": "text",
215 "value": "application/json"
216 },
217 {
218 "key": "Accept",
219 "type": "text",
220 "value": "application/json"
221 }
222 ],
223 "url": {
224 "raw": "{{POLICY-XACML-URL}}/policy/pdpx/v1/healthcheck",
225 "host": [
226 "{{POLICY-XACML-URL}}"
227 ],
228 "path": [
229 "policy",
230 "pdpx",
231 "v1",
232 "healthcheck"
233 ]
234 }
235 },
236 "response": []
237 },
238 {
239 "name": "PAP Statistics",
240 "request": {
241 "auth": {
242 "type": "basic",
243 "basic": [
244 {
245 "key": "password",
246 "value": "zb!XztG34",
247 "type": "string"
248 },
249 {
250 "key": "username",
251 "value": "healthcheck",
252 "type": "string"
253 }
254 ]
255 },
256 "method": "GET",
257 "header": [
258 {
259 "key": "Content-Type",
260 "value": "application/json",
261 "type": "text"
262 },
263 {
264 "key": "Accept",
265 "value": "application/json",
266 "type": "text"
267 }
268 ],
269 "url": {
270 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/statistics",
271 "host": [
272 "{{POLICY-PAP-URL}}"
273 ],
274 "path": [
275 "policy",
276 "pap",
277 "v1",
278 "statistics"
279 ]
280 }
281 },
282 "response": []
283 },
284 {
285 "name": "PDPGroup Query",
286 "protocolProfileBehavior": {
287 "disableBodyPruning": true
288 },
289 "request": {
290 "auth": {
291 "type": "basic",
292 "basic": [
293 {
294 "key": "password",
295 "value": "zb!XztG34",
296 "type": "string"
297 },
298 {
299 "key": "username",
300 "value": "healthcheck",
301 "type": "string"
302 }
303 ]
304 },
305 "method": "GET",
306 "header": [
307 {
308 "key": "Content-Type",
309 "value": "application/json",
310 "type": "text"
311 },
312 {
313 "key": "Accept",
314 "value": "application/json",
315 "type": "text"
316 }
317 ],
318 "body": {
319 "mode": "raw",
320 "raw": ""
321 },
322 "url": {
323 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
324 "host": [
325 "{{POLICY-PAP-URL}}"
326 ],
327 "path": [
328 "policy",
329 "pap",
330 "v1",
331 "pdps"
332 ]
333 }
334 },
335 "response": []
336 },
337 {
338 "name": "Create Policy Type",
339 "request": {
340 "auth": {
341 "type": "basic",
342 "basic": [
343 {
344 "key": "password",
345 "value": "zb!XztG34",
346 "type": "string"
347 },
348 {
349 "key": "username",
350 "value": "healthcheck",
351 "type": "string"
352 }
353 ]
354 },
355 "method": "POST",
356 "header": [
357 {
358 "key": "Accept",
359 "type": "text",
360 "value": "application/json"
361 },
362 {
363 "key": "Content-Type",
364 "type": "text",
365 "value": "application/json"
366 }
367 ],
368 "body": {
369 "mode": "raw",
370 "raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_0_0\",\n \"policy_types\": {\n \"onap.policies.controlloop.operational.Apex\": {\n \"version\": \"1.0.0\",\n \"description\": \"Operational Policy for Control Loops using the APEX PDP\",\n \"properties\": {\n \"engine_service\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EngineService\",\n \"description\": \"APEX Engine Service Parameters\"\n },\n \"inputs\": {\n \"type\": \"map\",\n \"description\": \"Inputs for handling events coming into the APEX engine\",\n \"entry_schema\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\"\n }\n },\n \"outputs\": {\n \"type\": \"map\",\n \"description\": \"Outputs for handling events going out of the APEX engine\",\n \"entry_schema\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\"\n }\n },\n \"environment\": {\n \"type\": \"list\",\n \"description\": \"Envioronmental parameters for the APEX engine\",\n \"entry_schema\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Environment\"\n }\n }\n }\n }\n },\n \"data_types\": {\n \"onap.datatypes.policies.controlloop.operational.apex.EngineService\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"Specifies the engine name\",\n \"required\": false,\n \"default\": \"ApexEngineService\"\n },\n \"version\": {\n \"type\": \"string\",\n \"description\": \"Specifies the engine version in double dotted format\",\n \"required\": false,\n \"default\": \"1.0.0\"\n },\n \"id\": {\n \"type\": \"int\",\n \"description\": \"Specifies the engine id\",\n \"required\": true\n },\n \"instance_count\": {\n \"type\": \"int\",\n \"description\": \"Specifies the number of engine threads that should be run\",\n \"required\": true\n },\n \"deployment_port\": {\n \"type\": \"int\",\n \"description\": \"Specifies the port to connect to for engine administration\",\n \"required\": false,\n \"default\": 1\n },\n \"policy_model_file_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the file from which to read the APEX policy model\",\n \"required\": false,\n \"default\": \"\"\n },\n \"policy_type_impl\": {\n \"type\": \"string\",\n \"description\": \"The policy type implementation from which to read the APEX policy model\",\n \"required\": false,\n \"default\": \"\"\n },\n \"periodic_event_period\": {\n \"type\": \"string\",\n \"description\": \"The time interval in milliseconds for the periodic scanning event, 0 means \\\"don't scan\\\"\",\n \"required\": false,\n \"default\": 0\n },\n \"engine\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine\",\n \"description\": \"The parameters for all engines in the APEX engine service\",\n \"required\": true\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"Specifies the event handler name, if not specified this is set to the key name\",\n \"required\": false\n },\n \"carrier_technology\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology\",\n \"description\": \"Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)\",\n \"required\": true\n },\n \"event_protocol\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventProtocol\",\n \"description\": \"Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)\",\n \"required\": true\n },\n \"event_name\": {\n \"type\": \"string\",\n \"description\": \"Specifies the event name for events on this event handler, if not specified, the event name is read from or written to the event being received or sent\",\n \"required\": false\n },\n \"event_name_filter\": {\n \"type\": \"string\",\n \"description\": \"Specifies a filter as a regular expression, events that do not match the filter are dropped, the default is to let all events through\",\n \"required\": false\n },\n \"synchronous_mode\": {\n \"type\": \"bool\",\n \"description\": \"Specifies the event handler is syncronous (receive event and send response)\",\n \"required\": false,\n \"default\": false\n },\n \"synchronous_peer\": {\n \"type\": \"string\",\n \"description\": \"The peer event handler (output for input or input for output) of this event handler in synchronous mode, this parameter is mandatory if the event handler is in synchronous mode\",\n \"required\": false,\n \"default\": \"\"\n },\n \"synchronous_timeout\": {\n \"type\": \"int\",\n \"description\": \"The timeout in milliseconds for responses to be issued by APEX torequests, this parameter is mandatory if the event handler is in synchronous mode\",\n \"required\": false,\n \"default\": \"\"\n },\n \"requestor_mode\": {\n \"type\": \"bool\",\n \"description\": \"Specifies the event handler is in requestor mode (send event and wait for response mode)\",\n \"required\": false,\n \"default\": false\n },\n \"requestor_peer\": {\n \"type\": \"string\",\n \"description\": \"The peer event handler (output for input or input for output) of this event handler in requestor mode, this parameter is mandatory if the event handler is in requestor mode\",\n \"required\": false,\n \"default\": \"\"\n },\n \"requestor_timeout\": {\n \"type\": \"int\",\n \"description\": \"The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode\",\n \"required\": false,\n \"default\": \"\"\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\",\n \"description\": \"The label (name) of the carrier technology (such as REST, Kafka, WebSocket)\",\n \"required\": true\n },\n \"plugin_parameter_class_name\": {\n \"type\": \"string\",\n \"description\": \"The class name of the class that overrides default handling of event input or output for this carrier technology, defaults to the supplied input or output class\",\n \"required\": false\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.EventProtocol\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\",\n \"description\": \"The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)\",\n \"required\": true\n },\n \"event_protocol_plugin_class\": {\n \"type\": \"string\",\n \"description\": \"The class name of the class that overrides default handling of the event protocol for this carrier technology, defaults to the supplied event protocol class\",\n \"required\": false\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.Environmental\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the environment variable\",\n \"required\": true\n },\n \"value\": {\n \"type\": \"string\",\n \"description\": \"The value of the environment variable\",\n \"required\": true\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"context\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context\",\n \"description\": \"The properties for handling context in APEX engines, defaults to using Java maps for context\",\n \"required\": false\n },\n \"executors\": {\n \"type\": \"map\",\n \"description\": \"The plugins for policy executors used in engines such as javascript, MVEL, Jython\",\n \"required\": true,\n \"entry_schema\": {\n \"description\": \"The plugin class path for this policy executor\",\n \"type\": \"string\"\n }\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"distributor\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\",\n \"description\": \"The plugin to be used for distributing context between APEX PDPs at runtime\",\n \"required\": false\n },\n \"schemas\": {\n \"type\": \"map\",\n \"description\": \"The plugins for context schemas available in APEX PDPs such as Java and Avro\",\n \"required\": false,\n \"entry_schema\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\"\n }\n },\n \"locking\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.plugin\",\n \"description\": \"The plugin to be used for locking context in and between APEX PDPs at runtime\",\n \"required\": false\n },\n \"persistence\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\",\n \"description\": \"The plugin to be used for persisting context for APEX PDPs at runtime\",\n \"required\": false\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.Plugin\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the executor such as Javascript, Jython or MVEL\",\n \"required\": true\n },\n \"plugin_class_name\": {\n \"type\": \"string\",\n \"description\": \"The class path of the plugin class for this executor\"\n }\n }\n }\n }\n}"
371 },
372 "url": {
373 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
374 "host": [
375 "{{POLICY-API-URL}}"
376 ],
377 "path": [
378 "policy",
379 "api",
380 "v1",
381 "policytypes"
382 ]
383 }
384 },
385 "response": []
386 },
387 {
388 "name": "Fetch Policy Type",
389 "request": {
390 "auth": {
391 "type": "basic",
392 "basic": [
393 {
394 "key": "password",
395 "value": "zb!XztG34",
396 "type": "string"
397 },
398 {
399 "key": "username",
400 "value": "healthcheck",
401 "type": "string"
402 }
403 ]
404 },
405 "method": "GET",
406 "header": [
407 {
408 "key": "Accept",
409 "type": "text",
410 "value": "application/json"
411 },
412 {
413 "key": "Content-Type",
414 "type": "text",
415 "value": "application/json"
416 }
417 ],
418 "url": {
419 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0",
420 "host": [
421 "{{POLICY-API-URL}}"
422 ],
423 "path": [
424 "policy",
425 "api",
426 "v1",
427 "policytypes",
428 "onap.policies.controlloop.operational.Apex",
429 "versions",
430 "1.0.0"
431 ]
432 }
433 },
434 "response": []
435 },
436 {
437 "name": "Create Policy",
438 "request": {
439 "auth": {
440 "type": "basic",
441 "basic": [
442 {
443 "key": "password",
444 "value": "zb!XztG34",
445 "type": "string"
446 },
447 {
448 "key": "username",
449 "value": "healthcheck",
450 "type": "string"
451 }
452 ]
453 },
454 "method": "POST",
455 "header": [
456 {
457 "key": "Accept",
458 "type": "text",
459 "value": "application/json"
460 },
461 {
462 "key": "Content-Type",
463 "type": "text",
464 "value": "application/json"
465 }
466 ],
467 "body": {
468 "mode": "raw",
469 "raw": "{\r\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_0_0\",\r\n \"topology_template\": {\r\n \"policies\": [\r\n {\r\n \"operational.sampledomain\": {\r\n \"type\": \"onap.policies.controlloop.operational.Apex\",\r\n \"typeVersion\": \"1.0.0\",\r\n \"name\": \"onap.policies.controlloop.operational.apex.Sampledomain\",\r\n \"version\": \"1.0.0\",\r\n \"properties\": {\r\n \"content\": {\r\n \"engineServiceParameters\": {\r\n \"name\": \"MyApexEngine\",\r\n \"version\": \"0.0.1\",\r\n \"id\": 45,\r\n \"instanceCount\": 4,\r\n \"deploymentPort\": 12561,\r\n \"policy_type_impl\": {\r\n \"apexPolicyModel\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"keyInformation\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_KeyInfo\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"keyInfoMap\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestEvent\",\r\n \"version\": \"2.0.0\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestEvent\",\r\n \"version\": \"2.0.0\"\r\n },\r\n \"UUID\": \"d29e440f-b773-3911-8e75-79d60b70a27f\",\r\n \"description\": \"Generated description for concept referred to by key \\\"APPCConfigModifyRequestEvent:2.0.0\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestTask\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestTask\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"7c9152da-b4f9-3bf5-ab98-477c04e550d7\",\r\n \"description\": \"Generated description for concept referred to by key \\\"APPCConfigModifyRequestTask:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyTriggerEvent\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyTriggerEvent\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"29ce3aae-9d20-3fd4-87b6-6813966e0b67\",\r\n \"description\": \"Generated description for concept referred to by key \\\"APPCConfigModifyTriggerEvent:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"APPCLCMRequestType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"APPCLCMRequestType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"ab26e475-d09d-36cd-a65c-8a8b556f0fa2\",\r\n \"description\": \"Generated description for concept referred to by key \\\"APPCLCMRequestType:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"ConfigModifyAPPCRequestPolicy\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"ConfigModifyAPPCRequestPolicy\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"0870505e-cfa7-3e71-8b3d-8696d6ae0f4c\",\r\n \"description\": \"Generated description for concept referred to by key \\\"ConfigModifyAPPCRequestPolicy:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"d0956b23-fcac-320c-9b08-b83498b05cae\",\r\n \"description\": \"Generated description for concept referred to by key \\\"DDFPolicyModel:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Albums\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Albums\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"afad76e5-846f-380d-af9a-8419b317d2a8\",\r\n \"description\": \"Generated description for concept referred to by key \\\"DDFPolicyModel_Albums:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Events\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Events\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"a17d1994-b819-3902-9721-3a67290b655c\",\r\n \"description\": \"Generated description for concept referred to by key \\\"DDFPolicyModel_Events:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_KeyInfo\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_KeyInfo\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"3f22032a-30a0-3efd-a43c-196248a7d66c\",\r\n \"description\": \"Generated description for concept referred to by key \\\"DDFPolicyModel_KeyInfo:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Policies\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Policies\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"6f291c42-d4a4-347e-9126-dfdc658c4b8e\",\r\n \"description\": \"Generated description for concept referred to by key \\\"DDFPolicyModel_Policies:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Schemas\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Schemas\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"933128bb-c59b-3bb2-9fbc-6052132bc304\",\r\n \"description\": \"Generated description for concept referred to by key \\\"DDFPolicyModel_Schemas:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Tasks\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Tasks\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"8e356083-c34e-3d0b-bd90-6690f9c7dcc9\",\r\n \"description\": \"Generated description for concept referred to by key \\\"DDFPolicyModel_Tasks:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"SimpleBooleanType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"SimpleBooleanType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae\",\r\n \"description\": \"Generated description for concept referred to by key \\\"SimpleBooleanType:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"SimpleLongType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"SimpleLongType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574\",\r\n \"description\": \"Generated description for concept referred to by key \\\"SimpleLongType:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"8a4957cf-9493-3a76-8c22-a208e23259af\",\r\n \"description\": \"Generated description for concept referred to by key \\\"SimpleStringType:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"6a8cc68e-dfc8-3403-9c6d-071c886b319c\",\r\n \"description\": \"Generated description for concept referred to by key \\\"UUIDType:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"dummy\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"dummy\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"ebb11312-f9ef-37de-8d0b-fcb7b432d82b\",\r\n \"description\": \"Generated description for concept referred to by key \\\"dummy:0.0.1\\\"\"\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"policies\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Policies\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"policyMap\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"ConfigModifyAPPCRequestPolicy\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"policyKey\": {\r\n \"name\": \"ConfigModifyAPPCRequestPolicy\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"template\": \"freestyle\",\r\n \"state\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"APPCCMRequestState\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"ConfigModifyAPPCRequestPolicy\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"APPCCMRequestState\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"APPCConfigModifyTriggerEvent\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"APPCCMRequestOutput\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"ConfigModifyAPPCRequestPolicy\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"APPCCMRequestState\",\r\n \"localName\": \"APPCCMRequestOutput\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"APPCConfigModifyRequestEvent\",\r\n \"version\": \"2.0.0\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"NULL\",\r\n \"parentKeyVersion\": \"0.0.0\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"NULL\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"NULL\",\r\n \"logicFlavour\": \"UNDEFINED\",\r\n \"logic\": \"\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"APPCConfigModifyRequestTask\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestTask\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"ConfigModifyAPPCRequestPolicy\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"APPCCMRequestState\",\r\n \"localName\": \"ConfigModifyAPPCRequestPolicy\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"ConfigModifyAPPCRequestPolicy\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"APPCCMRequestState\",\r\n \"localName\": \"APPCCMRequestOutput\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"firstState\": \"APPCCMRequestState\"\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"tasks\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Tasks\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskMap\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestTask\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestTask\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"changeParam\",\r\n \"value\": {\r\n \"key\": \"changeParam\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"hostIp\",\r\n \"value\": {\r\n \"key\": \"hostIp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"requestID\",\r\n \"value\": {\r\n \"key\": \"requestID\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"vnfID\",\r\n \"value\": {\r\n \"key\": \"vnfID\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"APPCLCMRequestEvent\",\r\n \"value\": {\r\n \"key\": \"APPCLCMRequestEvent\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"APPCLCMRequestType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": []\r\n },\r\n \"contextAlbumReference\": [],\r\n \"taskLogic\": {\r\n \"key\": \"TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\\n * ================================================================================\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n * \\n * http://www.apache.org/licenses/LICENSE-2.0\\n * \\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n * \\n * SPDX-License-Identifier: Apache-2.0\\n * ============LICENSE_END=========================================================\\n */\\n\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar appcRequest = new org.onap.policy.appclcm.LcmRequestWrapper;\\nappcRequest.setBody(new org.onap.policy.appclcm.LcmRequest);\\nappcRequest.getBody().setCommonHeader(new org.onap.policy.appclcm.LcmCommonHeader);\\n\\nappcRequest.setVersion(\\\"2.0.0\\\");\\nappcRequest.setRpcName(\\\"config-modify\\\");\\nappcRequest.setCorrelationId(java.util.UUID.randomUUID());\\nappcRequest.setType(\\\"request\\\");\\n\\nappcRequest.getBody().getCommonHeader().setTimeStamp(java.time.Instant.now());\\nappcRequest.getBody().getCommonHeader().setApiVer(\\\"2.00\\\");\\nappcRequest.getBody().getCommonHeader().setOriginatorId(java.util.UUID.randomUUID());\\nappcRequest.getBody().getCommonHeader().setRequestId(executor.inFields.get(\\\"requestID\\\"));\\nappcRequest.getBody().getCommonHeader().setSubRequestId(\\\"ddf\\\");\\nappcRequest.getBody().getCommonHeader().getFlags().put(\\\"ttl\\\", \\\"10000\\\");\\nappcRequest.getBody().getCommonHeader().getFlags().put(\\\"force\\\", \\\"TRUE\\\");\\nappcRequest.getBody().getCommonHeader().getFlags().put(\\\"mode\\\", \\\"EXCLUSIVE\\\");\\n\\nappcRequest.getBody().setAction(\\\"ConfigModify\\\");\\nappcRequest.getBody().setActionIdentifiers(new java.util.HashMap());\\nappcRequest.getBody().getActionIdentifiers().put(\\\"vnf-id\\\", executor.inFields.get(\\\"vnfID\\\").toString());\\nappcRequest.getBody().setPayload(executor.inFields.get(\\\"changeParam\\\"));\\n\\nexecutor.outFields.put(\\\"APPCLCMRequestEvent\\\", appcRequest);\\n\\nexecutor.logger.info(executor.outFields);\\n\\nvar returnValue = executor.isTrue;\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"events\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Events\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"eventMap\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestEvent\",\r\n \"version\": \"2.0.0\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyRequestEvent\",\r\n \"version\": \"2.0.0\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.onap.ddf\",\r\n \"source\": \"APEX\",\r\n \"target\": \"APPC\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"APPCLCMRequestEvent\",\r\n \"value\": {\r\n \"key\": \"APPCLCMRequestEvent\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"APPCLCMRequestType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyTriggerEvent\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"APPCConfigModifyTriggerEvent\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.onap.ddf\",\r\n \"source\": \"DDF\",\r\n \"target\": \"APEX\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"changeParam\",\r\n \"value\": {\r\n \"key\": \"changeParam\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"hostIp\",\r\n \"value\": {\r\n \"key\": \"hostIp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"name\",\r\n \"value\": {\r\n \"key\": \"name\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"requestID\",\r\n \"value\": {\r\n \"key\": \"requestID\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"vnfID\",\r\n \"value\": {\r\n \"key\": \"vnfID\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"albums\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Albums\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"albums\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"dummy\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"dummy\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"scope\": \"policy\",\r\n \"isWritable\": true,\r\n \"itemSchema\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"schemas\": {\r\n \"key\": {\r\n \"name\": \"DDFPolicyModel_Schemas\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemas\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"APPCLCMRequestType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"APPCLCMRequestType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.appclcm.LcmRequestWrapper\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"SimpleBooleanType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"SimpleBooleanType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"java.lang.Boolean\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"SimpleLongType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"SimpleLongType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"java.lang.Long\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"SimpleStringType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"java.lang.String\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"UUIDType\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"java.util.UUID\"\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n },\r\n \"engineParameters\": {\r\n \"executorParameters\": {\r\n \"JAVASCRIPT\": {\r\n \"parameterClassName\": \"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters\"\r\n }\r\n },\r\n \"contextParameters\": {\r\n \"parameterClassName\": \"org.onap.policy.apex.context.parameters.ContextParameters\",\r\n \"schemaParameters\": {\r\n \"Avro\": {\r\n \"parameterClassName\": \"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters\"\r\n },\r\n \"Java\": {\r\n \"parameterClassName\": \"org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters\",\r\n \"jsonAdapters\": {\r\n \"Instant\": {\r\n \"adaptedClass\": \"java.time.Instant\",\r\n \"adaptorClass\": \"org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter\"\r\n },\r\n \"APPC_LCM_REQUEST\": {\r\n \"adaptedClass\": \"org.onap.policy.appclcm.LcmRequest\",\r\n \"adaptorClass\": \"org.onap.policy.appclcm.util.Serialization$RequestAdapter\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"eventInputParameters\": {\r\n \"DCAEConsumer\": {\r\n \"carrierTechnologyParameters\": {\r\n \"carrierTechnology\": \"RESTCLIENT\",\r\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters\",\r\n \"parameters\": {\r\n \"url\": \"http://10.2.0.13:30227/events/DCAE_CL_OUTPUT/11/12?timeout=30000\"\r\n }\r\n },\r\n \"eventProtocolParameters\": {\r\n \"eventProtocol\": \"JSON\"\r\n }\r\n }\r\n },\r\n \"eventOutputParameters\": {\r\n \"APPCProducer\": {\r\n \"carrierTechnologyParameters\": {\r\n \"carrierTechnology\": \"RESTCLIENT\",\r\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters\",\r\n \"parameters\": {\r\n \"url\": \"http://10.2.0.13:30227/events/APPC-LCM-READ\"\r\n }\r\n },\r\n \"eventProtocolParameters\": {\r\n \"eventProtocol\": \"JSON\",\r\n \"parameters\": {\r\n \"pojoField\": \"APPCLCMRequestEvent\"\r\n }\r\n },\r\n \"eventNameFilter\": \"APPCConfigModifyRequestEvent\"\r\n },\r\n \"logProducer\": {\r\n \"carrierTechnologyParameters\": {\r\n \"carrierTechnology\": \"FILE\",\r\n \"parameters\": {\r\n \"fileName\": \"/tmp/outputevents.log\"\r\n }\r\n },\r\n \"eventProtocolParameters\": {\r\n \"eventProtocol\": \"JSON\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n}"
470 },
471 "url": {
472 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies",
473 "host": [
474 "{{POLICY-API-URL}}"
475 ],
476 "path": [
477 "policy",
478 "api",
479 "v1",
480 "policytypes",
481 "onap.policies.controlloop.operational.Apex",
482 "versions",
483 "1.0.0",
484 "policies"
485 ]
486 }
487 },
488 "response": []
489 },
490 {
491 "name": "Fetch Policy",
492 "request": {
493 "auth": {
494 "type": "basic",
495 "basic": [
496 {
497 "key": "password",
498 "value": "zb!XztG34",
499 "type": "string"
500 },
501 {
502 "key": "username",
503 "value": "healthcheck",
504 "type": "string"
505 }
506 ]
507 },
508 "method": "GET",
509 "header": [
510 {
511 "key": "Accept",
512 "type": "text",
513 "value": "application/json"
514 },
515 {
516 "key": "Content-Type",
517 "type": "text",
518 "value": "application/json"
519 }
520 ],
521 "url": {
522 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies/onap.policies.controlloop.operational.apex.Sampledomain/versions/1.0.0",
523 "host": [
524 "{{POLICY-API-URL}}"
525 ],
526 "path": [
527 "policy",
528 "api",
529 "v1",
530 "policytypes",
531 "onap.policies.controlloop.operational.Apex",
532 "versions",
533 "1.0.0",
534 "policies",
535 "onap.policies.controlloop.operational.apex.Sampledomain",
536 "versions",
537 "1.0.0"
538 ]
539 }
540 },
541 "response": []
542 },
543 {
544 "name": "PDPGroup Deploy",
545 "request": {
546 "auth": {
547 "type": "basic",
548 "basic": [
549 {
550 "key": "password",
551 "value": "zb!XztG34",
552 "type": "string"
553 },
554 {
555 "key": "username",
556 "value": "healthcheck",
557 "type": "string"
558 }
559 ]
560 },
561 "method": "POST",
562 "header": [
563 {
564 "key": "Content-Type",
565 "type": "text",
566 "value": "application/json"
567 },
568 {
569 "key": "Accept",
570 "type": "text",
571 "value": "application/json"
572 }
573 ],
574 "body": {
575 "mode": "raw",
576 "raw": "{\n \"groups\": [\n {\n \"name\": \"defaultGroup\",\n \"description\": \"The default group that registers all supported policy types and pdps.\",\n \"pdpGroupState\": \"ACTIVE\",\n \"properties\": {},\n \"pdpSubgroups\": [\n {\n \"pdpType\": \"apex\",\n \"supportedPolicyTypes\": [\n {\n \"name\": \"onap.policies.controlloop.operational.Apex\",\n \"version\": \"1.0.0\"\n }\n ],\n \"policies\": [],\n \"currentInstanceCount\": 1,\n \"desiredInstanceCount\": 1,\n \"properties\": {},\n \"pdpInstances\": [\n {\n \"instanceId\": \"apex_35\",\n \"pdpState\": \"ACTIVE\",\n \"healthy\": \"HEALTHY\",\n \"message\": \"Pdp Heartbeat\"\n }\n ]\n },\n {\n \"pdpType\": \"drools\",\n \"supportedPolicyTypes\": [\n {\n \"name\": \"onap.policies.controlloop.Operational\",\n \"version\": \"1.0.0\"\n }\n ],\n \"policies\": [],\n \"currentInstanceCount\": 1,\n \"desiredInstanceCount\": 1,\n \"properties\": {},\n \"pdpInstances\": [\n {\n \"instanceId\": \"dev-policy-drools-0\",\n \"pdpState\": \"ACTIVE\",\n \"healthy\": \"HEALTHY\"\n }\n ]\n },\n {\n \"pdpType\": \"xacml\",\n \"supportedPolicyTypes\": [\n {\n \"name\": \"onap.policies.controlloop.guard.FrequencyLimiter\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.controlloop.guard.MinMax\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.controlloop.guard.Blacklist\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.controlloop.guard.coordination.FirstBlocksSecond\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.Monitoring\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.monitoring.cdap.tca.hi.lo.app\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.monitoring.docker.sonhandler.app\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.AffinityPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.DistancePolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.HpaPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.OptimizationPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.PciPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.QueryPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.SubscriberPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.Vim_fit\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.VnfPolicy\",\n \"version\": \"1.0.0\"\n }\n ],\n \"policies\": [],\n \"currentInstanceCount\": 1,\n \"desiredInstanceCount\": 1,\n \"properties\": {},\n \"pdpInstances\": [\n {\n \"instanceId\": \"dev-policy-policy-xacml-pdp-558c478477-g85jl\",\n \"pdpState\": \"ACTIVE\",\n \"healthy\": \"HEALTHY\"\n }\n ]\n }\n ]\n }\n ]\n}"
577 },
578 "url": {
579 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
580 "host": [
581 "{{POLICY-PAP-URL}}"
582 ],
583 "path": [
584 "policy",
585 "pap",
586 "v1",
587 "pdps"
588 ]
589 }
590 },
591 "response": []
592 },
593 {
594 "name": "PDPGroup Undeploy",
595 "request": {
596 "auth": {
597 "type": "basic",
598 "basic": [
599 {
600 "key": "password",
601 "value": "zb!XztG34",
602 "type": "string"
603 },
604 {
605 "key": "username",
606 "value": "healthcheck",
607 "type": "string"
608 }
609 ]
610 },
611 "method": "POST",
612 "header": [
613 {
614 "key": "Content-Type",
615 "type": "text",
616 "value": "application/json"
617 },
618 {
619 "key": "Accept",
620 "type": "text",
621 "value": "application/json"
622 }
623 ],
624 "body": {
625 "mode": "raw",
626 "raw": "{\n \"groups\": [\n {\n \"name\": \"defaultGroup\",\n \"description\": \"The default group that registers all supported policy types and pdps.\",\n \"pdpGroupState\": \"ACTIVE\",\n \"properties\": {},\n \"pdpSubgroups\": [\n {\n \"pdpType\": \"apex\",\n \"supportedPolicyTypes\": [\n {\n \"name\": \"onap.policies.controlloop.operational.Apex\",\n \"version\": \"1.0.0\"\n }\n ],\n \"policies\": [\n ],\n \"currentInstanceCount\": 1,\n \"desiredInstanceCount\": 1,\n \"properties\": {},\n \"pdpInstances\": [\n {\n \"instanceId\": \"apex_35\",\n \"pdpState\": \"ACTIVE\",\n \"healthy\": \"HEALTHY\",\n \"message\": \"Pdp Heartbeat\"\n }\n ]\n },\n {\n \"pdpType\": \"drools\",\n \"supportedPolicyTypes\": [\n {\n \"name\": \"onap.policies.controlloop.Operational\",\n \"version\": \"1.0.0\"\n }\n ],\n \"policies\": [],\n \"currentInstanceCount\": 1,\n \"desiredInstanceCount\": 1,\n \"properties\": {},\n \"pdpInstances\": [\n {\n \"instanceId\": \"dev-policy-drools-0\",\n \"pdpState\": \"ACTIVE\",\n \"healthy\": \"HEALTHY\"\n }\n ]\n },\n {\n \"pdpType\": \"xacml\",\n \"supportedPolicyTypes\": [\n {\n \"name\": \"onap.policies.controlloop.guard.FrequencyLimiter\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.controlloop.guard.MinMax\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.controlloop.guard.Blacklist\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.controlloop.guard.coordination.FirstBlocksSecond\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.Monitoring\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.monitoring.cdap.tca.hi.lo.app\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.monitoring.docker.sonhandler.app\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.AffinityPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.DistancePolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.HpaPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.OptimizationPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.PciPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.QueryPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.SubscriberPolicy\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.Vim_fit\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.optimization.VnfPolicy\",\n \"version\": \"1.0.0\"\n }\n ],\n \"policies\": [],\n \"currentInstanceCount\": 1,\n \"desiredInstanceCount\": 1,\n \"properties\": {},\n \"pdpInstances\": [\n {\n \"instanceId\": \"dev-policy-policy-xacml-pdp-558c478477-g85jl\",\n \"pdpState\": \"ACTIVE\",\n \"healthy\": \"HEALTHY\"\n }\n ]\n }\n ]\n }\n ]\n}"
627 },
628 "url": {
629 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
630 "host": [
631 "{{POLICY-PAP-URL}}"
632 ],
633 "path": [
634 "policy",
635 "pap",
636 "v1",
637 "pdps"
638 ]
639 }
640 },
641 "response": []
642 },
643 {
644 "name": "Simple Deploy Policy",
645 "request": {
646 "auth": {
647 "type": "basic",
648 "basic": [
649 {
650 "key": "password",
651 "value": "zb!XztG34",
652 "type": "string"
653 },
654 {
655 "key": "username",
656 "value": "healthcheck",
657 "type": "string"
658 }
659 ]
660 },
661 "method": "POST",
662 "header": [
663 {
664 "key": "Content-Type",
665 "type": "text",
666 "value": "application/json"
667 },
668 {
669 "key": "Accept",
670 "type": "text",
671 "value": "application/json"
672 }
673 ],
674 "body": {
675 "mode": "raw",
676 "raw": "{\r\n \"policies\" : [\r\n {\r\n \"policy-id\": \"onap.policies.controlloop.operational.apex.Sampledomain\",\r\n \"policy-version\": 1\r\n }\r\n ]\r\n}"
677 },
678 "url": {
679 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies",
680 "host": [
681 "{{POLICY-PAP-URL}}"
682 ],
683 "path": [
684 "policy",
685 "pap",
686 "v1",
687 "pdps",
688 "policies"
689 ]
690 }
691 },
692 "response": []
693 },
694 {
695 "name": "Simple Undeploy Policy",
696 "request": {
697 "auth": {
698 "type": "basic",
699 "basic": [
700 {
701 "key": "password",
702 "value": "zb!XztG34",
703 "type": "string"
704 },
705 {
706 "key": "username",
707 "value": "healthcheck",
708 "type": "string"
709 }
710 ]
711 },
712 "method": "DELETE",
713 "header": [
714 {
715 "key": "Accept",
716 "value": "application/json",
717 "type": "text"
718 },
719 {
720 "key": "Content-Type",
721 "value": "application/json",
722 "type": "text"
723 }
724 ],
725 "url": {
726 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies/onap.policies.controlloop.operational.apex.Sampledomain",
727 "host": [
728 "{{POLICY-PAP-URL}}"
729 ],
730 "path": [
731 "policy",
732 "pap",
733 "v1",
734 "pdps",
735 "policies",
736 "onap.policies.controlloop.operational.apex.Sampledomain"
737 ]
738 }
739 },
740 "response": []
741 },
742 {
743 "name": "PDP State Change to ACTIVE",
744 "request": {
745 "auth": {
746 "type": "basic",
747 "basic": [
748 {
749 "key": "password",
750 "value": "zb!XztG34",
751 "type": "string"
752 },
753 {
754 "key": "username",
755 "value": "healthcheck",
756 "type": "string"
757 }
758 ]
759 },
760 "method": "PUT",
761 "header": [
762 {
763 "key": "Content-Type",
764 "value": "application/json",
765 "type": "text"
766 },
767 {
768 "key": "Accept",
769 "value": "application/json",
770 "type": "text"
771 }
772 ],
773 "url": {
774 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/groups/defaultGroup?state=ACTIVE",
775 "host": [
776 "{{POLICY-PAP-URL}}"
777 ],
778 "path": [
779 "policy",
780 "pap",
781 "v1",
782 "pdps",
783 "groups",
784 "defaultGroup"
785 ],
786 "query": [
787 {
788 "key": "state",
789 "value": "ACTIVE"
790 }
791 ]
792 }
793 },
794 "response": []
795 },
796 {
797 "name": "PDP State Change to PASSIVE",
798 "request": {
799 "auth": {
800 "type": "basic",
801 "basic": [
802 {
803 "key": "password",
804 "value": "zb!XztG34",
805 "type": "string"
806 },
807 {
808 "key": "username",
809 "value": "healthcheck",
810 "type": "string"
811 }
812 ]
813 },
814 "method": "PUT",
815 "header": [
816 {
817 "key": "Content-Type",
818 "type": "text",
819 "value": "application/json"
820 },
821 {
822 "key": "Accept",
823 "type": "text",
824 "value": "application/json"
825 }
826 ],
827 "url": {
828 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE",
829 "host": [
830 "{{POLICY-PAP-URL}}"
831 ],
832 "path": [
833 "policy",
834 "pap",
835 "v1",
836 "pdps",
837 "groups",
838 "defaultGroup"
839 ],
840 "query": [
841 {
842 "key": "state",
843 "value": "PASSIVE"
844 }
845 ]
846 }
847 },
848 "response": []
849 },
850 {
851 "name": "Delete Policy",
852 "request": {
853 "auth": {
854 "type": "basic",
855 "basic": [
856 {
857 "key": "password",
858 "value": "zb!XztG34",
859 "type": "string"
860 },
861 {
862 "key": "username",
863 "value": "healthcheck",
864 "type": "string"
865 }
866 ]
867 },
868 "method": "DELETE",
869 "header": [
870 {
871 "key": "Accept",
872 "value": "application/json",
873 "type": "text"
874 },
875 {
876 "key": "Content-Type",
877 "value": "application/json",
878 "type": "text"
879 }
880 ],
881 "url": {
882 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies/onap.policies.controlloop.operational.apex.Sampledomain/versions/1.0.0",
883 "host": [
884 "{{POLICY-API-URL}}"
885 ],
886 "path": [
887 "policy",
888 "api",
889 "v1",
890 "policytypes",
891 "onap.policies.controlloop.operational.Apex",
892 "versions",
893 "1.0.0",
894 "policies",
895 "onap.policies.controlloop.operational.apex.Sampledomain",
896 "versions",
897 "1.0.0"
898 ]
899 }
900 },
901 "response": []
902 },
903 {
904 "name": "Delete Policy Type",
905 "request": {
906 "auth": {
907 "type": "basic",
908 "basic": [
909 {
910 "key": "password",
911 "value": "zb!XztG34",
912 "type": "string"
913 },
914 {
915 "key": "username",
916 "value": "healthcheck",
917 "type": "string"
918 }
919 ]
920 },
921 "method": "DELETE",
922 "header": [
923 {
924 "key": "Accept",
925 "type": "text",
926 "value": "application/json"
927 },
928 {
929 "key": "Content-Type",
930 "type": "text",
931 "value": "application/json"
932 }
933 ],
934 "url": {
935 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0",
936 "host": [
937 "{{POLICY-API-URL}}"
938 ],
939 "path": [
940 "policy",
941 "api",
942 "v1",
943 "policytypes",
944 "onap.policies.controlloop.operational.Apex",
945 "versions",
946 "1.0.0"
947 ]
948 }
949 },
950 "response": []
951 },
952 {
953 "name": "Send event to dmaap",
954 "request": {
955 "method": "POST",
956 "header": [
957 {
958 "key": "Content-Type",
959 "value": "application/json",
960 "type": "text"
961 }
962 ],
963 "body": {
964 "mode": "raw",
965 "raw": "{\r\n\"requestID\":\"67a5e3e-24ec-4942-a042-68be1ca1ef5b\",\r\n\"vnfID\":\"77e070c4-4f3d-43bf-ab43-cb173ab4dc18\",\r\n\"hostIp\":\"0.0.0.0\",\r\n\"changeParam\":\"{\\\"request-parameters\\\":{\\\"vnf-host-ip-address\\\":\\\"10.2.0.29\\\"},\\\"configuration-parameters\\\":{\\\"id\\\":\\\"27\\\"}}\",\r\n\"name\":\"APPCConfigModifyTriggerEvent\"\r\n}"
966 },
967 "url": {
968 "raw": "http://10.2.0.13:30227/events/DCAE_CL_OUTPUT",
969 "protocol": "http",
970 "host": [
971 "10",
972 "2",
973 "0",
974 "13"
975 ],
976 "port": "30227",
977 "path": [
978 "events",
979 "DCAE_CL_OUTPUT"
980 ]
981 }
982 },
983 "response": []
984 },
985 {
986 "name": "Send event to apex-pdp",
987 "request": {
988 "method": "PUT",
989 "header": [
990 {
991 "key": "Content-Type",
992 "value": "application/json",
993 "type": "text"
994 },
995 {
996 "key": "Accept",
997 "value": "application/json",
998 "type": "text"
999 }
1000 ],
1001 "body": {
1002 "mode": "raw",
1003 "raw": "{\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"name\": \"Event0000\",\r\n \"version\": \"0.0.1\",\r\n \"source\": \"test\",\r\n \"target\": \"apex\",\r\n \"TestSlogan\": \"Test slogan for External Event0\",\r\n \"TestMatchCase\": 0,\r\n \"TestTimestamp\": 1469781869269,\r\n \"TestTemperature\": 9080.866\r\n}"
1004 },
1005 "url": {
1006 "raw": "http://159.107.166.87:23324/apex/FirstConsumer/EventIn",
1007 "protocol": "http",
1008 "host": [
1009 "159",
1010 "107",
1011 "166",
1012 "87"
1013 ],
1014 "port": "23324",
1015 "path": [
1016 "apex",
1017 "FirstConsumer",
1018 "EventIn"
1019 ]
1020 }
1021 },
1022 "response": []
1023 }
1024 ]
1025}