1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
|
{
"info": {
"_postman_id": "5e983b07-65d6-4942-b812-5d3614473ac3",
"name": "Policy Framework Lifecycle API",
"description": "This collection lists all the Lifecycle API's supported by ONAP Policy Framework. These API's are used to perform CRUD operations for Policy, Policy Type & Data Type for all supported PDP engines.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Lifecycle Api Healthcheck",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "Accept",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/healthcheck",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"healthcheck"
]
},
"description": "This is an API to fetch current healthcheck information for the policy-api component."
},
"response": []
},
{
"name": "API Metrics",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json",
"disabled": true
},
{
"key": "Accept",
"type": "text",
"value": "application/json",
"disabled": true
}
],
"url": {
"raw": "{{POLICY-API-URL}}/metrics",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"metrics"
]
},
"description": "This is an API to fetch the prometheus metrics."
},
"response": []
},
{
"name": "API Statistics",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "Accept",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/statistics",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"statistics"
]
},
"description": "This is an API to fetch current statistics information for the policy-api component."
},
"response": []
},
{
"name": "Create Policy Type",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/yaml"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/yaml"
}
],
"body": {
"mode": "raw",
"raw": "tosca_definitions_version: tosca_simple_yaml_1_1_0\npolicy_types:\n onap.policies.controlloop.operational.Common:\n derived_from: tosca.policies.Root\n version: 1.0.0\n description: |\n Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant\n Policy Types. This does NOT support the legacy Policy YAML policy type.\n properties:\n id:\n type: string\n description: The unique control loop id.\n required: true\n timeout:\n type: integer\n description: |\n Overall timeout for executing all the operations. This timeout should equal or exceed the total\n timeout for each operation listed.\n required: true\n abatement:\n type: boolean\n description: Whether an abatement event message will be expected for the control loop from DCAE.\n required: true\n default: false\n trigger:\n type: string\n description: Initial operation to execute upon receiving an Onset event message for the Control Loop.\n required: true\n operations:\n type: list\n description: List of operations to be performed when Control Loop is triggered.\n required: true\n entry_schema:\n type: onap.datatype.controlloop.Operation\n\n onap.policies.controlloop.operational.common.Drools:\n derived_from: onap.policies.controlloop.operational.Common\n type_version: 1.0.0\n version: 1.0.0\n description: Operational policies for Drools PDP\n properties:\n controllerName:\n type: string\n description: Drools controller properties\n required: false\n\ndata_types:\n onap.datatype.controlloop.Target:\n derived_from: tosca.datatypes.Root\n description: Definition for a entity in A&AI to perform a control loop operation on\n properties:\n targetType:\n type: string\n description: Category for the target type\n required: true\n constraints:\n - valid_values: [VNF, VM, VFMODULE, PNF]\n entityIds:\n type: map\n description: |\n Map of values that identify the resource. If none are provided, it is assumed that the\n entity that generated the ONSET event will be the target.\n required: false\n metadata:\n clamp_possible_values: ClampExecution:CSAR_RESOURCES\n entry_schema:\n type: string\n\n onap.datatype.controlloop.Actor:\n derived_from: tosca.datatypes.Root\n description: An actor/operation/target definition\n properties:\n actor:\n type: string\n description: The actor performing the operation.\n required: true\n metadata:\n clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor\n operation:\n type: string\n description: The operation the actor is performing.\n metadata:\n clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation\n required: true\n target:\n type: onap.datatype.controlloop.Target\n description: The resource the operation should be performed on.\n required: true\n payload:\n type: map\n description: Name/value pairs of payload information passed by Policy to the actor\n required: false\n metadata:\n clamp_possible_values: ClampExecution:CDS/payload\n entry_schema:\n type: string\n\n onap.datatype.controlloop.Operation:\n derived_from: tosca.datatypes.Root\n description: An operation supported by an actor\n properties:\n id:\n type: string\n description: Unique identifier for the operation\n required: true\n description:\n type: string\n description: A user-friendly description of the intent for the operation\n required: false\n operation:\n type: onap.datatype.controlloop.Actor\n description: The definition of the operation to be performed.\n required: true\n timeout:\n type: integer\n description: The amount of time for the actor to perform the operation.\n required: true\n retries:\n type: integer\n description: The number of retries the actor should attempt to perform the operation.\n required: true\n default: 0\n success:\n type: string\n description: Points to the operation to invoke on success. A value of \"final_success\" indicates and end to the operation.\n required: false\n default: final_success\n failure:\n type: string\n description: Points to the operation to invoke on Actor operation failure.\n required: false\n default: final_failure\n failure_timeout:\n type: string\n description: Points to the operation to invoke when the time out for the operation occurs.\n required: false\n default: final_failure_timeout\n failure_retries:\n type: string\n description: Points to the operation to invoke when the current operation has exceeded its max retries.\n required: false\n default: final_failure_retries\n failure_exception:\n type: string\n description: Points to the operation to invoke when the current operation causes an exception.\n required: false\n default: final_failure_exception\n failure_guard:\n type: string\n description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.\n required: false\n default: final_failure_guard"
},
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes"
]
},
"description": "This is a generic API to create one or more policy types together in a single API call."
},
"response": []
},
{
"name": "Fetch Policy Type",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"1.0.0"
]
},
"description": "This is an API to fetch a specific policy type (example - \"onap.policies.controlloop.operational.common.Drools\") currently available in Policy DB."
},
"response": []
},
{
"name": "Fetch All Policy Types",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes"
]
},
"description": "This is a generic API to fetch all policy types currently available in Policy DB."
},
"response": []
},
{
"name": "Fetch All Versions of Policy Type",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools"
]
},
"description": "This is an API to fetch all versions of a specific policy type (example - \"onap.policies.controlloop.operational.common.Drools\") currently available in Policy DB."
},
"response": []
},
{
"name": "Fetch Latest Version of Policy Type",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/latest",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"latest"
]
},
"description": "This is an API to fetch latest versions of a specific policy type (example - \"onap.policies.controlloop.operational.common.Drools\") currently available in Policy DB."
},
"response": []
},
{
"name": "Delete Policy Type",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"1.0.0"
]
},
"description": "This is an API to delete a specific policy type (example - \"onap.policies.controlloop.operational.common.Drools\") currently available in Policy DB."
},
"response": []
},
{
"name": "Create Policy (Generic)",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"topology_template\": {\n \"policies\": [\n {\n \"operational.modifyconfig\": {\n \"type\": \"onap.policies.controlloop.operational.common.Drools\",\n \"type_version\": \"1.0.0\",\n \"version\": \"1.0.0\",\n \"metadata\": {\n \"policy-id\": \"operational.modifyconfig\"\n },\n \"properties\": {\n \"id\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\n \"timeout\": 1200,\n \"abatement\": false,\n \"trigger\": \"unique-policy-id-1-modifyConfig\",\n \"operations\": [\n {\n \"id\": \"unique-policy-id-1-modifyConfig\",\n \"description\": \"Modify the packet generator\",\n \"operation\": {\n \"actor\": \"CDS\",\n \"operation\": \"modify-config\",\n \"target\": {\n \"targetType\": \"VNF\",\n \"entityIds\": {\n \"resourceID\": \"37b008b9-b367-4359-93fd-74d3ce0ee1a0\"\n }\n },\n \"payload\":{\n \"artifact_name\": \"vFW-CDS\",\n \"artifact_version\": \"1.0.0\",\n \"data\": \"{\\\"active-streams\\\": \\\"7\\\"}\"\n }\n },\n \"timeout\": 300,\n \"retries\": 0,\n \"success\": \"final_success\",\n \"failure\": \"final_failure\",\n \"failure_timeout\": \"final_failure_timeout\",\n \"failure_retries\": \"final_failure_retries\",\n \"failure_exception\": \"final_failure_exception\",\n \"failure_guard\": \"final_failure_guard\"\n }\n ],\n \"controllerName\": \"usecases\"\n }\n }\n }\n ]\n }\n}"
},
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policies"
]
},
"description": "This is a generic API to create multiple policies together in a single API call. The individual policies can refer to same policy type or different policy types."
},
"response": []
},
{
"name": "Create node template",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"node_types\": {\n \"org.onap.nodetypes.policy.MetadataSet\": {\n \"derived_from\": \"tosca.nodetypes.Root\",\n \"version\": \"1.0.0\"\n }\n },\n \"topology_template\": {\n \"node_templates\": {\n \"apex.metadata.pnf\": {\n \"version\": \"1.0.0\",\n \"type\": \"org.onap.nodetypes.policy.MetadataSet\",\n \"type_version\": \"1.0.0\",\n \"description\": \"Metadata set for apex pnf Policy\",\n \"metadata\": {\n \"apexPolicyModel\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop\",\n \"version\": \"0.0.1\"\n },\n \"keyInformation\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"keyInfoMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleBooleanType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"c8a29e27-0a15-354a-84f9-4c7f207e5c81\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAIFailureResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"5e843cee-0180-39b9-8989-180b2ffe11c0\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"90291c92-9b27-3cd9-8720-db572419c048\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAIRequestErrorType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"7b7e6751-4e0b-389d-98c0-5567bbc0294c\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAIRequestEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"63d5680c-14ef-3505-8d34-ebb646bba07b\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAISuccessResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"a84ca97d-6e94-39a2-91f9-59a6c9aa435e\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"0e2ee622-7fd3-3e49-82e2-539c4f5e9624\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSActionIdentifiersType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"e84f8682-ea33-3ad0-8626-8bc4634581fc\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"a252f835-2479-38ef-9ef4-20af62725752\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"cfc46ea9-b8c1-38dd-ac9c-304c916daf34\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"1e7095d6-a455-3f89-acae-486e35d7e311\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"d22ea83b-695d-3da9-b9f5-41f16ca433bf\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"e9fe2e40-1f0d-30dd-8b9e-885695878693\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"5e04fa76-0a17-38a9-8524-23b2d1a23fa5\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"15866380-40f5-3f8e-87d9-13747a36d352\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"2c3d76ce-dd42-32ac-a397-ab418534e1cf\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b99c44da-dae7-3c96-b528-58852537d063\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"1db688e2-3afe-3b03-9795-fdbfa80fa240\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSFailureResponseStatusType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"31022456-e85b-3a9b-9ecb-a09691792d3e\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSRequestCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"d6075720-622e-3a0d-827a-aa4580a2f5d7\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSSuccessResponseStatusType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_EventDetailsAlbum:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"a0407d0b-5719-38bf-9529-25ad62ace8c4\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_EventDetailsAlbumType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"28e894dc-4ab8-3469-aab7-d81bd05bb4c9\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_HandleAAIFailureResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"073f1433-999e-3506-98ad-ef820d2fa7f0\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_HandleAAISuccessResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_HandleVesEventTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"98e1ddd7-3bd9-30c1-b877-4b9b4d3bff15\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_LogStatusEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"0f57665a-f0a9-314e-ad0a-04c1f5758174\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_VesEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_VesEventHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_VesEventType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleLongType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"8a4957cf-9493-3a76-8c22-a208e23259af\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleStringType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ecc97b87-f30b-344c-a476-d36501bf5cbd\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Albums\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Albums\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"1469671a-56dd-3a68-bf6c-77a5cf7a9487\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Events\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Events\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"23c4eee4-aba5-36f6-96d6-46f40061bfed\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Events:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ea9e73ff-483c-3827-896c-6eaa9d69bc6e\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Policies\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Policies\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"38c068e5-bb9a-3997-9e50-ec77c66825c8\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"38514b27-8b9b-3d06-844a-3aced27deb0a\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"0e0387b5-07fa-30e4-8554-eb51d2e18939\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\\\"\"\n }\n }\n ]\n }\n },\n \"policies\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Policies\",\n \"version\": \"0.0.1\"\n },\n \"policyMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_ReceiveAAIFailureResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_ReceiveAAIFailureResponseState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"AAIFailureStateOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAIFailureResponseState\",\n \"localName\": \"AAIFailureStateOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAIFailureResponseState\",\n \"localName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAIFailureResponseState\",\n \"localName\": \"AAIFailureStateOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_ReceiveAAIFailureResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_ReceiveAAISuccessResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_ReceiveAAISuccessResponseState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"AAISuccessStateOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAISuccessResponseState\",\n \"localName\": \"AAISuccessStateOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAISuccessResponseState\",\n \"localName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAISuccessResponseState\",\n \"localName\": \"AAISuccessStateOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_ReceiveAAISuccessResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_CDSConfigModifyFailureResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_CDSConfigModifyFailureResponseState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ConfigModifyFailureResponseOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifyFailureResponseState\",\n \"localName\": \"ConfigModifyFailureResponseOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifyFailureResponseState\",\n \"localName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifyFailureResponseState\",\n \"localName\": \"ConfigModifyFailureResponseOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_CDSConfigModifyFailureResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_CDSConfigModifySuccessResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_CDSConfigModifySuccessResponseState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ConfigModifySuccessResponseOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifySuccessResponseState\",\n \"localName\": \"ConfigModifySuccessResponseOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifySuccessResponseState\",\n \"localName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifySuccessResponseState\",\n \"localName\": \"ConfigModifySuccessResponseOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_CDSConfigModifySuccessResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_ReceiveVesState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_ReceiveVesState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"VesOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveVesState\",\n \"localName\": \"VesOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveVesState\",\n \"localName\": \"SimpleCL_VesEventHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveVesState\",\n \"localName\": \"VesOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_ReceiveVesState\"\n }\n }\n ]\n }\n },\n \"tasks\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"taskMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"message\",\n \"value\": {\n \"key\": \"message\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar longType = java.lang.Long;\\nvar HashMapType = java.util.HashMap;\\n\\nvar cdsResponse = executor.inFields;\\nvar albumID = cdsResponse.get(\\\"commonHeader\\\").get(\\\"subRequestId\\\");\\n\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").get(albumID.toString());\\nvar commonEventHeader = eventDetailsAlbum.get(\\\"commonEventHeader\\\");\\nvar timestamp = longType(new Date().getTime())\\nvar errorMessage = \\\"CDS operation failed. Error message from CDS - \\\" + executor.inFields.get(\\\"status\\\").get(\\\"errorMessage\\\");\\nsend(commonEventHeader.get(\\\"eventId\\\"), \\\"PNF\\\", eventDetailsAlbum.get(\\\"otherFields\\\").get(\\\"hashMap\\\").get(\\\"pnfName\\\"), timestamp, \\\"FINAL_FAILURE\\\", \\\"Failed to process VES event. Reason: \\\" + errorMessage);\\ntrue;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"message\",\n \"value\": {\n \"key\": \"message\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar longType = java.lang.Long;\\nvar HashMapType = java.util.HashMap;\\n\\nvar cdsResponse = executor.inFields;\\nvar albumID = cdsResponse.get(\\\"commonHeader\\\").get(\\\"subRequestId\\\");\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").get(albumID.toString());\\nvar commonEventHeader = eventDetailsAlbum.get(\\\"commonEventHeader\\\");\\nvar timestamp = longType(new Date().getTime());\\n\\nsend(commonEventHeader.get(\\\"eventId\\\"), \\\"PNF\\\", eventDetailsAlbum.get(\\\"otherFields\\\").get(\\\"hashMap\\\").get(\\\"pnfName\\\"), timestamp, \\\"FINAL_SUCCESS\\\", \\\"Successfully processed the VES event. Hostname is updated.\\\")\\ntrue;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"requestError\",\n \"value\": {\n \"key\": \"requestError\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"message\",\n \"value\": {\n \"key\": \"message\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar longType = java.lang.Long;\\nvar HashMapType = java.util.HashMap;\\n\\nvar aaiErrorMessage = \\\"AAI operation failed. Error message from AAI - \\\" + executor.inFields.get(\\\"requestError\\\").get(\\\"serviceException\\\").get(\\\"text\\\");\\nvar timestamp = longType(new Date().getTime());\\n\\n//Sending messageId received from AAI error message since eventId is not available in this task logic\\nsend(executor.inFields.get(\\\"requestError\\\").get(\\\"serviceException\\\").get(\\\"messageId\\\"), \\\"PNF\\\", \\\"N/A\\\", timestamp, \\\"FINAL_FAILURE\\\", \\\"Failed to process VES event. Reason: \\\" + aaiErrorMessage)\\ntrue;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"equip-model\",\n \"value\": {\n \"key\": \"equip-model\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"equip-type\",\n \"value\": {\n \"key\": \"equip-type\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"equip-vendor\",\n \"value\": {\n \"key\": \"equip-vendor\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"in-maint\",\n \"value\": {\n \"key\": \"in-maint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"ipaddress-v4-oam\",\n \"value\": {\n \"key\": \"ipaddress-v4-oam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"ipaddress-v6-oam\",\n \"value\": {\n \"key\": \"ipaddress-v6-oam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"management-option\",\n \"value\": {\n \"key\": \"management-option\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-id\",\n \"value\": {\n \"key\": \"pnf-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-name\",\n \"value\": {\n \"key\": \"pnf-name\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-name2\",\n \"value\": {\n \"key\": \"pnf-name2\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"resource-version\",\n \"value\": {\n \"key\": \"resource-version\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar HashMapType = java.util.HashMap;\\nvar longType = java.lang.Long;\\n\\nvar pnfDetails = executor.inFields;\\nvar albumID = pnfDetails.get(\\\"pnf-id\\\");\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").get(albumID.toString());\\nexecutor.logger.info(\\\"HandleAAISuccessResponseTask extracted context album - \\\" + albumID.toString() + \\\"::\\\" + eventDetailsAlbum);\\n\\nvar commonEventHeader = eventDetailsAlbum.get(\\\"commonEventHeader\\\");\\nvar otherFieldsMap = eventDetailsAlbum.get(\\\"otherFields\\\").get(\\\"hashMap\\\");\\n\\nvar targetEntityName = executor.inFields.get(\\\"pnf-name\\\")\\nvar logMessage = \\\"\\\";\\nvar existingHostname = executor.inFields.get(\\\"pnf-name2\\\");\\nvar hostnameInVesEvent = otherFieldsMap.get(\\\"hostname\\\");\\n\\nvar albumSchemaHelper = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").getSchemaHelper();\\nvar target = albumSchemaHelper.createNewSubInstance(\\\"target\\\");\\ntarget.put(\\\"targetType\\\", \\\"PNF\\\")\\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\\\"entityInfo\\\");\\nentityInfo.put(\\\"name\\\",targetEntityName);\\ntarget.put(\\\"entityInfo\\\", entityInfo);\\neventDetailsAlbum.put(\\\"target\\\", target);\\n\\nvar returnVal = true;\\nvar timestamp = longType(new Date().getTime());\\nif ((String(hostnameInVesEvent) != \\\"UNDEFINED\\\") && (String(existingHostname) != String(hostnameInVesEvent))) {\\n logMessage = \\\"Hostname available in AAI does not match with the hostname received in the VES Event.\\\";\\n returnVal = false\\n send(commonEventHeader.get(\\\"eventId\\\"), \\\"PNF\\\", otherFieldsMap.get(\\\"pnfName\\\"), timestamp, \\\"FINAL_FAILURE\\\", \\\"Failed to process VES event. Reason: \\\" + logMessage)\\n} else {\\n logMessage = \\\"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\\\";\\n\\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\\\"commonHeader\\\").createNewInstance();\\n commonHeader.put(\\\"subRequestId\\\", albumID.toString());\\n commonHeader.put(\\\"requestId\\\", commonEventHeader.get(\\\"eventId\\\"));\\n commonHeader.put(\\\"originatorId\\\", \\\"POLICY\\\");\\n\\n var blueprintName = \\\"pnf-test-cba\\\";\\n var blueprintVersion = \\\"1.0.0\\\";\\n var newHostname = \\\"host\\\" + Math.random().toString(36).substring(7);\\n eventDetailsAlbum.put(\\\"generatedHostname\\\", newHostname);\\n\\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\\\"actionIdentifiers\\\").createNewInstance();\\n actionIdentifiers.put(\\\"mode\\\", \\\"sync\\\");\\n actionIdentifiers.put(\\\"blueprintName\\\", blueprintName);\\n actionIdentifiers.put(\\\"blueprintVersion\\\", blueprintVersion);\\n actionIdentifiers.put(\\\"actionName\\\", \\\"update-config\\\");\\n\\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewSubInstance(\\\"CDSConfigModifyRequestPayloadEntry\\\");\\n payloadEntry.put(\\\"hostname\\\", newHostname)\\n payloadEntry.put(\\\"IP\\\", executor.inFields.get(\\\"ipaddress-v4-oam\\\"));\\n payloadEntry.put(\\\"pnfName\\\", otherFieldsMap.get(\\\"pnfName\\\"));\\n\\n var payload = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewInstance();\\n payload.put(\\\"update_DasH_config_DasH_request\\\", payloadEntry);\\n\\n executor.outFields.put(\\\"commonHeader\\\", commonHeader);\\n executor.outFields.put(\\\"actionIdentifiers\\\", actionIdentifiers);\\n executor.outFields.put(\\\"payload\\\", payload);\\n\\n send(commonEventHeader.get(\\\"eventId\\\"), \\\"PNF\\\", otherFieldsMap.get(\\\"pnfName\\\"), timestamp, \\\"SUCCESS\\\", logMessage)\\n}\\n\\nreturnVal;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"event\",\n \"value\": {\n \"key\": \"event\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"aaifield\",\n \"value\": {\n \"key\": \"aaifield\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar HashMapType = java.util.HashMap;\\nvar longType = java.lang.Long;\\n\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").getSchemaHelper().createNewInstance();\\nvar returnValue = true;\\n\\nvar event = executor.inFields.get(\\\"event\\\");\\nexecutor.logger.info(\\\"HandleVesEventTask processing VES event - \\\" + event);\\n\\nvar commonEventHeader = event.get(\\\"commonEventHeader\\\");\\nvar otherFields = event.get(\\\"otherFields\\\");\\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\\nvar albumID = commonEventHeader.get(\\\"sourceId\\\");\\n// save the event processing start time in apex\\ncommonEventHeader.put(\\\"startEpochMicrosec\\\", longType(new Date().getTime()));\\n//save the incoming event details to album\\neventDetailsAlbum.put(\\\"commonEventHeader\\\", commonEventHeader);\\neventDetailsAlbum.put(\\\"otherFields\\\", otherFields);\\nexecutor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").put(albumID.toString(), eventDetailsAlbum);\\nexecutor.logger.info(\\\"HandleVesEventTask storing context album - \\\" + albumID.toString() + \\\"::\\\" + eventDetailsAlbum);\\n\\nexecutor.getExecutionProperties().setProperty(\\\"pnfName\\\", otherFields.get(\\\"hashMap\\\").get(\\\"pnfName\\\"));\\n\\nvar timestamp = longType(new Date().getTime());\\nsend(eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"eventId\\\"), \\\"PNF\\\", otherFields.get(\\\"hashMap\\\").get(\\\"pnfName\\\"), timestamp, \\\"ACTIVE\\\", \\\"VES event has been received. Going to fetch details from AAI.\\\")\\nexecutor.logger.info(executor.outFields);\\nreturnValue;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n }\n ]\n }\n },\n \"events\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Events\",\n \"version\": \"0.0.1\"\n },\n \"eventMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"AAI\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"requestError\",\n \"value\": {\n \"key\": \"requestError\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"EXIT_FAILURE\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"APEX\",\n \"target\": \"AAI\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"aaifield\",\n \"value\": {\n \"key\": \"aaifield\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"AAI\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"equip-model\",\n \"value\": {\n \"key\": \"equip-model\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"equip-type\",\n \"value\": {\n \"key\": \"equip-type\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"equip-vendor\",\n \"value\": {\n \"key\": \"equip-vendor\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"in-maint\",\n \"value\": {\n \"key\": \"in-maint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"ipaddress-v4-oam\",\n \"value\": {\n \"key\": \"ipaddress-v4-oam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"ipaddress-v6-oam\",\n \"value\": {\n \"key\": \"ipaddress-v6-oam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"management-option\",\n \"value\": {\n \"key\": \"management-option\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-id\",\n \"value\": {\n \"key\": \"pnf-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-name\",\n \"value\": {\n \"key\": \"pnf-name\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-name2\",\n \"value\": {\n \"key\": \"pnf-name2\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"resource-version\",\n \"value\": {\n \"key\": \"resource-version\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"CDS\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"EXIT_FAILURE\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"CDS\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"EXIT_SUCCESS\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"APEX\",\n \"target\": \"DCAE\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"message\",\n \"value\": {\n \"key\": \"message\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"DCAE\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"event\",\n \"value\": {\n \"key\": \"event\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"ENTRY\"\n }\n }\n ]\n }\n },\n \"albums\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Albums\",\n \"version\": \"0.0.1\"\n },\n \"albums\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"scope\": \"policy\",\n \"isWritable\": true,\n \"itemSchema\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n }\n }\n }\n ]\n }\n },\n \"schemas\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"schemas\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.Boolean\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"AAIRequestErrorType\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"serviceException\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"serviceException\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"messageId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"text\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"variables\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": \\\"string\\\"\\n }\\n }\\n ]\\n }\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSActionIdentifiers_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"actionName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"blueprintName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"blueprintVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"mode\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"map\\\",\\n \\\"values\\\": {\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSConfigModifyRequestPayloadEntry\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"hostname\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"IP\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"pnfName\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"CDSConfigResponsePayloadEntry\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"update_DasH_config_DasH_response\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"update_DasH_config_DasH_response\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"execute_DasH_command_DasH_logs\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": \\\"string\\\"\\n }\\n },\\n {\\n \\\"name\\\": \\\"prepare_DasH_environment_DasH_logs\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": \\\"string\\\"\\n }\\n }\\n ]\\n }\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseCommonHeader_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"originatorId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"requestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"subRequestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"timestamp\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseStatus_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"code\\\",\\n \\\"type\\\": \\\"int\\\"\\n },\\n {\\n \\\"name\\\": \\\"timestamp\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"message\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"errorMessage\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSRequestCommonHeader_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"originatorId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"requestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"subRequestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseCommonHeader_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"originatorId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"requestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"subRequestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"timestamp\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseStatus_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"code\\\",\\n \\\"type\\\": \\\"int\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventType\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"timestamp\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"message\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"eventDetails\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"commonEventHeader\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"commonEventHeader\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"domain\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"lastEpochMicrosec\\\",\\n \\\"type\\\": \\\"long\\\"\\n },\\n {\\n \\\"name\\\": \\\"priority\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"reportingEntityName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"sequence\\\",\\n \\\"type\\\": \\\"int\\\"\\n },\\n {\\n \\\"name\\\": \\\"sourceId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"sourceName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"startEpochMicrosec\\\",\\n \\\"type\\\": \\\"long\\\"\\n },\\n {\\n \\\"name\\\": \\\"timeZoneOffset\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"version\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"internalHeaderFields\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"internalHeaderFields\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": []\\n }\\n },\\n {\\n \\\"name\\\": \\\"vesEventListenerVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"otherFields\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"otherFields\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"hashMap\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"hashMap\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"hostname\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"pnfName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"pnfId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"ip\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"otherFieldsVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"target\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"target\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"targetType\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"entityInfo\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"entityInfo\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"name\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"generatedHostname\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\":\\\"event\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n {\\n \\\"name\\\":\\\"commonEventHeader\\\",\\n \\\"type\\\":{\\n \\\"name\\\":\\\"commonEventHeader\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n {\\n \\\"name\\\":\\\"domain\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"eventId\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"eventName\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"lastEpochMicrosec\\\",\\n \\\"type\\\":\\\"long\\\"\\n },\\n {\\n \\\"name\\\":\\\"priority\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"reportingEntityName\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"sequence\\\",\\n \\\"type\\\":\\\"int\\\"\\n },\\n {\\n \\\"name\\\":\\\"sourceId\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"sourceName\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"startEpochMicrosec\\\",\\n \\\"type\\\":\\\"long\\\"\\n },\\n {\\n \\\"name\\\":\\\"version\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"internalHeaderFields\\\",\\n \\\"type\\\":{\\n \\\"name\\\":\\\"internalHeaderFields\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n\\n ]\\n }\\n },\\n {\\n \\\"name\\\":\\\"vesEventListenerVersion\\\",\\n \\\"type\\\":\\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\":\\\"otherFields\\\",\\n \\\"type\\\":{\\n \\\"name\\\":\\\"otherFields\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n {\\n \\\"name\\\":\\\"hashMap\\\",\\n \\\"type\\\":{\\n \\\"name\\\":\\\"hashMap\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n {\\n \\\"name\\\":\\\"hostname\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"pnfName\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"pnfId\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"ip\\\",\\n \\\"type\\\":\\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\":\\\"otherFieldsVersion\\\",\\n \\\"type\\\":\\\"string\\\"\\n }\\n ]\\n }\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.Long\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.String\"\n }\n }\n ]\n }\n }\n }\n }\n }\n }\n }\n}"
},
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/nodetemplates",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"nodetemplates"
]
},
"description": "This is a generic API to create multiple policies together in a single API call. The individual policies can refer to same policy type or different policy types."
},
"response": []
},
{
"name": "Create Policy (Generic) with metadata",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"topology_template\": {\n \"policies\": [\n {\n \"onap.policies.apex.pnf.Example\": {\n \"type\": \"onap.policies.native.Apex\",\n \"type_version\": \"1.0.0\",\n \"name\": \"onap.policies.apex.pnf.Example\",\n \"version\": \"1.0.0\",\n \"metadata\": {\n \"metadataSetName\": \"apex.metadata.pnf\",\n \"metadataSetVersion\": \"1.0.0\"\n },\n \"properties\": {\n \"engineServiceParameters\": {\n \"name\": \"TestApexEnginePnf\",\n \"version\": \"0.0.1\",\n \"id\": 45,\n \"instanceCount\": 4,\n \"deploymentPort\": 12561,\n \"engineParameters\": {\n \"executorParameters\": {\n \"JAVASCRIPT\": {\n \"parameterClassName\": \"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters\"\n }\n },\n \"contextParameters\": {\n \"parameterClassName\": \"org.onap.policy.apex.context.parameters.ContextParameters\",\n \"schemaParameters\": {\n \"Avro\": {\n \"parameterClassName\": \"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters\"\n }\n }\n },\n \"taskParameters\": [\n {\n \"key\": \"logUrl\",\n \"value\": \"http://message-router:3904/events/APEX-CL-MGT\"\n }\n ]\n }\n },\n \"eventInputParameters\": {\n \"SimpleCL_DCAEConsumer\": {\n \"carrierTechnologyParameters\": {\n \"carrierTechnology\": \"RESTCLIENT\",\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters\",\n \"parameters\": {\n \"url\": \"http://message-router:3904/events/apex-pnf-input/cl/apex?timeout=30000\"\n }\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n },\n \"eventName\": \"SimpleCL_VesEvent\"\n },\n \"SimpleCL_AAIResponseConsumer\": {\n \"carrierTechnologyParameters\": {\n \"carrierTechnology\": \"RESTREQUESTOR\",\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters\",\n \"parameters\": {\n \"url\": \"https://aai:8443/aai/v14/network/pnfs/pnf/{pnfName}\",\n \"httpMethod\": \"GET\",\n \"httpCodeFilter\": \"[2-5][0-1][0-9]\",\n \"httpHeaders\": [\n [\n \"Accept\",\n \"application/json\"\n ],\n [\n \"Content-Type\",\n \"application/json\"\n ],\n [\n \"X-FromAppId\",\n \"dcae-curl\"\n ],\n [\n \"x-transactionId\",\n \"9998\"\n ],\n [\n \"Authorization\",\n \"Basic QUFJOkFBSQ==\"\n ]\n ]\n }\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n },\n \"eventName\": \"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"SimpleCL_AAIProducer\",\n \"requestorTimeout\": 2000\n },\n \"SimpleCL_CDSConfigModifyResponseConsumer\": {\n \"carrierTechnologyParameters\": {\n \"carrierTechnology\": \"GRPC\",\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters\"\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n },\n \"eventName\": \"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"SimpleCL_CDSConfigModifyRequestProducer\",\n \"requestorTimeout\": 500\n }\n },\n \"eventOutputParameters\": {\n \"SimpleCL_AAIProducer\": {\n \"carrierTechnologyParameters\": {\n \"carrierTechnology\": \"RESTREQUESTOR\",\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters\"\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n },\n \"eventNameFilter\": \"SimpleCL_AAIRequestEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"SimpleCL_AAIResponseConsumer\",\n \"requestorTimeout\": 2000\n },\n \"SimpleCL_CDSConfigModifyRequestProducer\": {\n \"carrierTechnologyParameters\": {\n \"carrierTechnology\": \"GRPC\",\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters\",\n \"parameters\": {\n \"host\": \"cds-blueprints-processor-grpc\",\n \"port\": 9111,\n \"username\": \"ccsdkapps\",\n \"password\": \"ccsdkapps\",\n \"timeout\": 60\n }\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n },\n \"eventNameFilter\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"SimpleCL_CDSConfigModifyResponseConsumer\",\n \"requestorTimeout\": 500\n },\n \"SimpleCL_logOutputter\": {\n \"carrierTechnologyParameters\": {\n \"carrierTechnology\": \"FILE\",\n \"parameters\": {\n \"fileName\": \"outputevents.log\"\n }\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n }\n }\n }\n }\n }\n }\n ]\n }\n}"
},
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policies"
]
},
"description": "This is a generic API to create multiple policies together in a single API call. The individual policies can refer to same policy type or different policy types."
},
"response": []
},
{
"name": "Fetchnode template",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"node_types\": {\n \"org.onap.nodetypes.policy.MetadataSet\": {\n \"derived_from\": \"tosca.nodetypes.Root\",\n \"version\": \"1.0.0\"\n }\n },\n \"topology_template\": {\n \"node_templates\": {\n \"apex.metadata.pnf\": {\n \"version\": \"1.0.0\",\n \"type\": \"org.onap.nodetypes.policy.MetadataSet\",\n \"type_version\": \"1.0.0\",\n \"description\": \"Metadata set for apex pnf Policy\",\n \"metadata\": {\n \"apexPolicyModel\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop\",\n \"version\": \"0.0.1\"\n },\n \"keyInformation\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"keyInfoMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleBooleanType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"c8a29e27-0a15-354a-84f9-4c7f207e5c81\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAIFailureResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"5e843cee-0180-39b9-8989-180b2ffe11c0\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"90291c92-9b27-3cd9-8720-db572419c048\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAIRequestErrorType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"7b7e6751-4e0b-389d-98c0-5567bbc0294c\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAIRequestEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"63d5680c-14ef-3505-8d34-ebb646bba07b\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAISuccessResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"a84ca97d-6e94-39a2-91f9-59a6c9aa435e\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"0e2ee622-7fd3-3e49-82e2-539c4f5e9624\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSActionIdentifiersType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"e84f8682-ea33-3ad0-8626-8bc4634581fc\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"a252f835-2479-38ef-9ef4-20af62725752\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"cfc46ea9-b8c1-38dd-ac9c-304c916daf34\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"1e7095d6-a455-3f89-acae-486e35d7e311\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"d22ea83b-695d-3da9-b9f5-41f16ca433bf\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"e9fe2e40-1f0d-30dd-8b9e-885695878693\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"5e04fa76-0a17-38a9-8524-23b2d1a23fa5\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"15866380-40f5-3f8e-87d9-13747a36d352\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"2c3d76ce-dd42-32ac-a397-ab418534e1cf\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b99c44da-dae7-3c96-b528-58852537d063\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"1db688e2-3afe-3b03-9795-fdbfa80fa240\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSFailureResponseStatusType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"31022456-e85b-3a9b-9ecb-a09691792d3e\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSRequestCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"d6075720-622e-3a0d-827a-aa4580a2f5d7\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_CDSSuccessResponseStatusType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_EventDetailsAlbum:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"a0407d0b-5719-38bf-9529-25ad62ace8c4\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_EventDetailsAlbumType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"28e894dc-4ab8-3469-aab7-d81bd05bb4c9\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_HandleAAIFailureResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"073f1433-999e-3506-98ad-ef820d2fa7f0\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_HandleAAISuccessResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_HandleVesEventTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"98e1ddd7-3bd9-30c1-b877-4b9b4d3bff15\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_LogStatusEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"0f57665a-f0a9-314e-ad0a-04c1f5758174\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_VesEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_VesEventHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleCL_VesEventType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleLongType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"8a4957cf-9493-3a76-8c22-a208e23259af\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleStringType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ecc97b87-f30b-344c-a476-d36501bf5cbd\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Albums\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Albums\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"1469671a-56dd-3a68-bf6c-77a5cf7a9487\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Events\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Events\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"23c4eee4-aba5-36f6-96d6-46f40061bfed\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Events:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ea9e73ff-483c-3827-896c-6eaa9d69bc6e\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Policies\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Policies\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"38c068e5-bb9a-3997-9e50-ec77c66825c8\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"38514b27-8b9b-3d06-844a-3aced27deb0a\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"0e0387b5-07fa-30e4-8554-eb51d2e18939\",\n \"description\": \"Generated description for concept referred to by key \\\"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\\\"\"\n }\n }\n ]\n }\n },\n \"policies\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Policies\",\n \"version\": \"0.0.1\"\n },\n \"policyMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_ReceiveAAIFailureResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_ReceiveAAIFailureResponseState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"AAIFailureStateOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAIFailureResponseState\",\n \"localName\": \"AAIFailureStateOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAIFailureResponseState\",\n \"localName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAIFailureResponseState\",\n \"localName\": \"AAIFailureStateOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_ReceiveAAIFailureResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_ReceiveAAISuccessResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_ReceiveAAISuccessResponseState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"AAISuccessStateOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAISuccessResponseState\",\n \"localName\": \"AAISuccessStateOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAISuccessResponseState\",\n \"localName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveAAISuccessResponseState\",\n \"localName\": \"AAISuccessStateOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_ReceiveAAISuccessResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_CDSConfigModifyFailureResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_CDSConfigModifyFailureResponseState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ConfigModifyFailureResponseOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifyFailureResponseState\",\n \"localName\": \"ConfigModifyFailureResponseOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifyFailureResponseState\",\n \"localName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifyFailureResponseState\",\n \"localName\": \"ConfigModifyFailureResponseOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_CDSConfigModifyFailureResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_CDSConfigModifySuccessResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_CDSConfigModifySuccessResponseState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ConfigModifySuccessResponseOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifySuccessResponseState\",\n \"localName\": \"ConfigModifySuccessResponseOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifySuccessResponseState\",\n \"localName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_CDSConfigModifySuccessResponseState\",\n \"localName\": \"ConfigModifySuccessResponseOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_CDSConfigModifySuccessResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"SimpleCL_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"SimpleCL_ReceiveVesState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"SimpleCL_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SimpleCL_ReceiveVesState\"\n },\n \"trigger\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"VesOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveVesState\",\n \"localName\": \"VesOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"SimpleCL_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveVesState\",\n \"localName\": \"SimpleCL_VesEventHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"SimpleCL_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SimpleCL_ReceiveVesState\",\n \"localName\": \"VesOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"SimpleCL_ReceiveVesState\"\n }\n }\n ]\n }\n },\n \"tasks\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"taskMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"message\",\n \"value\": {\n \"key\": \"message\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar longType = java.lang.Long;\\nvar HashMapType = java.util.HashMap;\\n\\nvar cdsResponse = executor.inFields;\\nvar albumID = cdsResponse.get(\\\"commonHeader\\\").get(\\\"subRequestId\\\");\\n\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").get(albumID.toString());\\nvar commonEventHeader = eventDetailsAlbum.get(\\\"commonEventHeader\\\");\\nvar timestamp = longType(new Date().getTime())\\nvar errorMessage = \\\"CDS operation failed. Error message from CDS - \\\" + executor.inFields.get(\\\"status\\\").get(\\\"errorMessage\\\");\\nsend(commonEventHeader.get(\\\"eventId\\\"), \\\"PNF\\\", eventDetailsAlbum.get(\\\"otherFields\\\").get(\\\"hashMap\\\").get(\\\"pnfName\\\"), timestamp, \\\"FINAL_FAILURE\\\", \\\"Failed to process VES event. Reason: \\\" + errorMessage);\\ntrue;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"message\",\n \"value\": {\n \"key\": \"message\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar longType = java.lang.Long;\\nvar HashMapType = java.util.HashMap;\\n\\nvar cdsResponse = executor.inFields;\\nvar albumID = cdsResponse.get(\\\"commonHeader\\\").get(\\\"subRequestId\\\");\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").get(albumID.toString());\\nvar commonEventHeader = eventDetailsAlbum.get(\\\"commonEventHeader\\\");\\nvar timestamp = longType(new Date().getTime());\\n\\nsend(commonEventHeader.get(\\\"eventId\\\"), \\\"PNF\\\", eventDetailsAlbum.get(\\\"otherFields\\\").get(\\\"hashMap\\\").get(\\\"pnfName\\\"), timestamp, \\\"FINAL_SUCCESS\\\", \\\"Successfully processed the VES event. Hostname is updated.\\\")\\ntrue;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"requestError\",\n \"value\": {\n \"key\": \"requestError\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"message\",\n \"value\": {\n \"key\": \"message\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar longType = java.lang.Long;\\nvar HashMapType = java.util.HashMap;\\n\\nvar aaiErrorMessage = \\\"AAI operation failed. Error message from AAI - \\\" + executor.inFields.get(\\\"requestError\\\").get(\\\"serviceException\\\").get(\\\"text\\\");\\nvar timestamp = longType(new Date().getTime());\\n\\n//Sending messageId received from AAI error message since eventId is not available in this task logic\\nsend(executor.inFields.get(\\\"requestError\\\").get(\\\"serviceException\\\").get(\\\"messageId\\\"), \\\"PNF\\\", \\\"N/A\\\", timestamp, \\\"FINAL_FAILURE\\\", \\\"Failed to process VES event. Reason: \\\" + aaiErrorMessage)\\ntrue;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"equip-model\",\n \"value\": {\n \"key\": \"equip-model\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"equip-type\",\n \"value\": {\n \"key\": \"equip-type\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"equip-vendor\",\n \"value\": {\n \"key\": \"equip-vendor\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"in-maint\",\n \"value\": {\n \"key\": \"in-maint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"ipaddress-v4-oam\",\n \"value\": {\n \"key\": \"ipaddress-v4-oam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"ipaddress-v6-oam\",\n \"value\": {\n \"key\": \"ipaddress-v6-oam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"management-option\",\n \"value\": {\n \"key\": \"management-option\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-id\",\n \"value\": {\n \"key\": \"pnf-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-name\",\n \"value\": {\n \"key\": \"pnf-name\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-name2\",\n \"value\": {\n \"key\": \"pnf-name2\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"resource-version\",\n \"value\": {\n \"key\": \"resource-version\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar HashMapType = java.util.HashMap;\\nvar longType = java.lang.Long;\\n\\nvar pnfDetails = executor.inFields;\\nvar albumID = pnfDetails.get(\\\"pnf-id\\\");\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").get(albumID.toString());\\nexecutor.logger.info(\\\"HandleAAISuccessResponseTask extracted context album - \\\" + albumID.toString() + \\\"::\\\" + eventDetailsAlbum);\\n\\nvar commonEventHeader = eventDetailsAlbum.get(\\\"commonEventHeader\\\");\\nvar otherFieldsMap = eventDetailsAlbum.get(\\\"otherFields\\\").get(\\\"hashMap\\\");\\n\\nvar targetEntityName = executor.inFields.get(\\\"pnf-name\\\")\\nvar logMessage = \\\"\\\";\\nvar existingHostname = executor.inFields.get(\\\"pnf-name2\\\");\\nvar hostnameInVesEvent = otherFieldsMap.get(\\\"hostname\\\");\\n\\nvar albumSchemaHelper = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").getSchemaHelper();\\nvar target = albumSchemaHelper.createNewSubInstance(\\\"target\\\");\\ntarget.put(\\\"targetType\\\", \\\"PNF\\\")\\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\\\"entityInfo\\\");\\nentityInfo.put(\\\"name\\\",targetEntityName);\\ntarget.put(\\\"entityInfo\\\", entityInfo);\\neventDetailsAlbum.put(\\\"target\\\", target);\\n\\nvar returnVal = true;\\nvar timestamp = longType(new Date().getTime());\\nif ((String(hostnameInVesEvent) != \\\"UNDEFINED\\\") && (String(existingHostname) != String(hostnameInVesEvent))) {\\n logMessage = \\\"Hostname available in AAI does not match with the hostname received in the VES Event.\\\";\\n returnVal = false\\n send(commonEventHeader.get(\\\"eventId\\\"), \\\"PNF\\\", otherFieldsMap.get(\\\"pnfName\\\"), timestamp, \\\"FINAL_FAILURE\\\", \\\"Failed to process VES event. Reason: \\\" + logMessage)\\n} else {\\n logMessage = \\\"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\\\";\\n\\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\\\"commonHeader\\\").createNewInstance();\\n commonHeader.put(\\\"subRequestId\\\", albumID.toString());\\n commonHeader.put(\\\"requestId\\\", commonEventHeader.get(\\\"eventId\\\"));\\n commonHeader.put(\\\"originatorId\\\", \\\"POLICY\\\");\\n\\n var blueprintName = \\\"pnf-test-cba\\\";\\n var blueprintVersion = \\\"1.0.0\\\";\\n var newHostname = \\\"host\\\" + Math.random().toString(36).substring(7);\\n eventDetailsAlbum.put(\\\"generatedHostname\\\", newHostname);\\n\\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\\\"actionIdentifiers\\\").createNewInstance();\\n actionIdentifiers.put(\\\"mode\\\", \\\"sync\\\");\\n actionIdentifiers.put(\\\"blueprintName\\\", blueprintName);\\n actionIdentifiers.put(\\\"blueprintVersion\\\", blueprintVersion);\\n actionIdentifiers.put(\\\"actionName\\\", \\\"update-config\\\");\\n\\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewSubInstance(\\\"CDSConfigModifyRequestPayloadEntry\\\");\\n payloadEntry.put(\\\"hostname\\\", newHostname)\\n payloadEntry.put(\\\"IP\\\", executor.inFields.get(\\\"ipaddress-v4-oam\\\"));\\n payloadEntry.put(\\\"pnfName\\\", otherFieldsMap.get(\\\"pnfName\\\"));\\n\\n var payload = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewInstance();\\n payload.put(\\\"update_DasH_config_DasH_request\\\", payloadEntry);\\n\\n executor.outFields.put(\\\"commonHeader\\\", commonHeader);\\n executor.outFields.put(\\\"actionIdentifiers\\\", actionIdentifiers);\\n executor.outFields.put(\\\"payload\\\", payload);\\n\\n send(commonEventHeader.get(\\\"eventId\\\"), \\\"PNF\\\", otherFieldsMap.get(\\\"pnfName\\\"), timestamp, \\\"SUCCESS\\\", logMessage)\\n}\\n\\nreturnVal;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"event\",\n \"value\": {\n \"key\": \"event\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"aaifield\",\n \"value\": {\n \"key\": \"aaifield\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\nvar HashMapType = java.util.HashMap;\\nvar longType = java.lang.Long;\\n\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").getSchemaHelper().createNewInstance();\\nvar returnValue = true;\\n\\nvar event = executor.inFields.get(\\\"event\\\");\\nexecutor.logger.info(\\\"HandleVesEventTask processing VES event - \\\" + event);\\n\\nvar commonEventHeader = event.get(\\\"commonEventHeader\\\");\\nvar otherFields = event.get(\\\"otherFields\\\");\\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\\nvar albumID = commonEventHeader.get(\\\"sourceId\\\");\\n// save the event processing start time in apex\\ncommonEventHeader.put(\\\"startEpochMicrosec\\\", longType(new Date().getTime()));\\n//save the incoming event details to album\\neventDetailsAlbum.put(\\\"commonEventHeader\\\", commonEventHeader);\\neventDetailsAlbum.put(\\\"otherFields\\\", otherFields);\\nexecutor.getContextAlbum(\\\"SimpleCL_EventDetailsAlbum\\\").put(albumID.toString(), eventDetailsAlbum);\\nexecutor.logger.info(\\\"HandleVesEventTask storing context album - \\\" + albumID.toString() + \\\"::\\\" + eventDetailsAlbum);\\n\\nexecutor.getExecutionProperties().setProperty(\\\"pnfName\\\", otherFields.get(\\\"hashMap\\\").get(\\\"pnfName\\\"));\\n\\nvar timestamp = longType(new Date().getTime());\\nsend(eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"eventId\\\"), \\\"PNF\\\", otherFields.get(\\\"hashMap\\\").get(\\\"pnfName\\\"), timestamp, \\\"ACTIVE\\\", \\\"VES event has been received. Going to fetch details from AAI.\\\")\\nexecutor.logger.info(executor.outFields);\\nreturnValue;\\n\\nfunction send(id, targetType, targetId, timestamp, status, message) {\\n var logData = '{'\\n +'\\\"id\\\" : \\\"' + id + '\\\",'\\n +'\\\"target\\\" : {'\\n +'\\\"targetType\\\" : \\\"' + targetType + '\\\",'\\n +'\\\"entityInfo\\\" : {'\\n +'\\\"pnf-name\\\" : \\\"' + targetId + '\\\"'\\n +'}'\\n +'},'\\n +'\\\"component\\\" : {'\\n +'\\\"name\\\" : \\\"Policy\\\",'\\n +'\\\"flavour\\\" : \\\"Apex-PDP\\\",'\\n +'\\\"timestamp\\\" : ' + timestamp + ','\\n +'\\\"status\\\" : \\\"' + status + '\\\",'\\n +'\\\"message\\\" : \\\"' + message + '\\\",'\\n +'\\\"artifacts\\\" : {'\\n +'\\\"policyName\\\" : \\\"onap.policies.apex.Simplecontrolloop\\\",'\\n +'\\\"policyVersion\\\" : \\\"1.0.0\\\"'\\n +'}'\\n +'},'\\n +'\\\"otherFields\\\" : {'\\n +'\\\"useCaseName\\\" : \\\"simple-controlloop-usecase\\\"'\\n +'}'\\n +'}';\\n\\n executor.logger.info(\\\"sending the status to log.\\\");\\n fireLogEvent(logData);\\n}\\n\\nfunction fireLogEvent(logEvent){\\n var headers = new HashMapType();\\n //headers.put(\\\"Authorization\\\" , \\\"Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==\\\");\\n executor.logger.info(\\\"LogEvent:\\\"+logEvent);\\n var response = new org.onap.policy.rest.RestManager().post(\\n executor.getParameters().get(\\\"logUrl\\\"),\\n \\\"\\\",\\n \\\"\\\",\\n headers,\\n \\\"application/json\\\",\\n logEvent\\n );\\n executor.logger.info(\\\"DMaaP Response after sending LogEvent: \\\" + response);\\n return response;\\n}\"\n }\n }\n }\n ]\n }\n },\n \"events\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Events\",\n \"version\": \"0.0.1\"\n },\n \"eventMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"AAI\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"requestError\",\n \"value\": {\n \"key\": \"requestError\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"EXIT_FAILURE\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"APEX\",\n \"target\": \"AAI\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"aaifield\",\n \"value\": {\n \"key\": \"aaifield\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"AAI\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"equip-model\",\n \"value\": {\n \"key\": \"equip-model\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"equip-type\",\n \"value\": {\n \"key\": \"equip-type\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"equip-vendor\",\n \"value\": {\n \"key\": \"equip-vendor\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"in-maint\",\n \"value\": {\n \"key\": \"in-maint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"ipaddress-v4-oam\",\n \"value\": {\n \"key\": \"ipaddress-v4-oam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"ipaddress-v6-oam\",\n \"value\": {\n \"key\": \"ipaddress-v6-oam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"management-option\",\n \"value\": {\n \"key\": \"management-option\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-id\",\n \"value\": {\n \"key\": \"pnf-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-name\",\n \"value\": {\n \"key\": \"pnf-name\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"pnf-name2\",\n \"value\": {\n \"key\": \"pnf-name2\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"resource-version\",\n \"value\": {\n \"key\": \"resource-version\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"CDS\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"EXIT_FAILURE\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"CDS\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"commonHeader\",\n \"value\": {\n \"key\": \"commonHeader\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"payload\",\n \"value\": {\n \"key\": \"payload\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"EXIT_SUCCESS\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"APEX\",\n \"target\": \"DCAE\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"message\",\n \"value\": {\n \"key\": \"message\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.simplecontrolloop\",\n \"source\": \"DCAE\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"event\",\n \"value\": {\n \"key\": \"event\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"toscaPolicyState\": \"ENTRY\"\n }\n }\n ]\n }\n },\n \"albums\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Albums\",\n \"version\": \"0.0.1\"\n },\n \"albums\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"scope\": \"policy\",\n \"isWritable\": true,\n \"itemSchema\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n }\n }\n }\n ]\n }\n },\n \"schemas\": {\n \"key\": {\n \"name\": \"onap.policies.apex.Simplecontrolloop_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"schemas\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.Boolean\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"AAIRequestErrorType\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"serviceException\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"serviceException\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"messageId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"text\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"variables\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": \\\"string\\\"\\n }\\n }\\n ]\\n }\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSActionIdentifiers_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"actionName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"blueprintName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"blueprintVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"mode\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"map\\\",\\n \\\"values\\\": {\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSConfigModifyRequestPayloadEntry\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"hostname\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"IP\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"pnfName\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"CDSConfigResponsePayloadEntry\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"update_DasH_config_DasH_response\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"update_DasH_config_DasH_response\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"execute_DasH_command_DasH_logs\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": \\\"string\\\"\\n }\\n },\\n {\\n \\\"name\\\": \\\"prepare_DasH_environment_DasH_logs\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": \\\"string\\\"\\n }\\n }\\n ]\\n }\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseCommonHeader_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"originatorId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"requestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"subRequestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"timestamp\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseStatus_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"code\\\",\\n \\\"type\\\": \\\"int\\\"\\n },\\n {\\n \\\"name\\\": \\\"timestamp\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"message\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"errorMessage\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSRequestCommonHeader_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"originatorId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"requestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"subRequestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseCommonHeader_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"originatorId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"requestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"subRequestId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"timestamp\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseStatus_Type\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"code\\\",\\n \\\"type\\\": \\\"int\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventType\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"timestamp\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"message\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"eventDetails\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"commonEventHeader\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"commonEventHeader\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"domain\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"lastEpochMicrosec\\\",\\n \\\"type\\\": \\\"long\\\"\\n },\\n {\\n \\\"name\\\": \\\"priority\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"reportingEntityName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"sequence\\\",\\n \\\"type\\\": \\\"int\\\"\\n },\\n {\\n \\\"name\\\": \\\"sourceId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"sourceName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"startEpochMicrosec\\\",\\n \\\"type\\\": \\\"long\\\"\\n },\\n {\\n \\\"name\\\": \\\"timeZoneOffset\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"version\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"internalHeaderFields\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"internalHeaderFields\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": []\\n }\\n },\\n {\\n \\\"name\\\": \\\"vesEventListenerVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"otherFields\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"otherFields\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"hashMap\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"hashMap\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"hostname\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"pnfName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"pnfId\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"ip\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"otherFieldsVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"target\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"target\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"targetType\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"entityInfo\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"entityInfo\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"name\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"generatedHostname\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleCL_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\":\\\"event\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n {\\n \\\"name\\\":\\\"commonEventHeader\\\",\\n \\\"type\\\":{\\n \\\"name\\\":\\\"commonEventHeader\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n {\\n \\\"name\\\":\\\"domain\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"eventId\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"eventName\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"lastEpochMicrosec\\\",\\n \\\"type\\\":\\\"long\\\"\\n },\\n {\\n \\\"name\\\":\\\"priority\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"reportingEntityName\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"sequence\\\",\\n \\\"type\\\":\\\"int\\\"\\n },\\n {\\n \\\"name\\\":\\\"sourceId\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"sourceName\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"startEpochMicrosec\\\",\\n \\\"type\\\":\\\"long\\\"\\n },\\n {\\n \\\"name\\\":\\\"version\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"internalHeaderFields\\\",\\n \\\"type\\\":{\\n \\\"name\\\":\\\"internalHeaderFields\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n\\n ]\\n }\\n },\\n {\\n \\\"name\\\":\\\"vesEventListenerVersion\\\",\\n \\\"type\\\":\\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\":\\\"otherFields\\\",\\n \\\"type\\\":{\\n \\\"name\\\":\\\"otherFields\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n {\\n \\\"name\\\":\\\"hashMap\\\",\\n \\\"type\\\":{\\n \\\"name\\\":\\\"hashMap\\\",\\n \\\"type\\\":\\\"record\\\",\\n \\\"fields\\\":[\\n {\\n \\\"name\\\":\\\"hostname\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"pnfName\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"pnfId\\\",\\n \\\"type\\\":\\\"string\\\"\\n },\\n {\\n \\\"name\\\":\\\"ip\\\",\\n \\\"type\\\":\\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\":\\\"otherFieldsVersion\\\",\\n \\\"type\\\":\\\"string\\\"\\n }\\n ]\\n }\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.Long\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.String\"\n }\n }\n ]\n }\n }\n }\n }\n }\n }\n }\n}"
},
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/nodetemplates/apex.metadata.pnf/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"nodetemplates",
"apex.metadata.pnf",
"versions",
"1.0.0"
]
},
"description": "This is a generic API to create multiple policies together in a single API call. The individual policies can refer to same policy type or different policy types."
},
"response": []
},
{
"name": "Create Policy (Specific)",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"topology_template\": {\n \"policies\": [\n {\n \"operational.modifyconfig\": {\n \"type\": \"onap.policies.controlloop.operational.common.Drools\",\n \"type_version\": \"1.0.0\",\n \"version\": \"1.0.0\",\n \"metadata\": {\n \"policy-id\": \"operational.modifyconfig\"\n },\n \"properties\": {\n \"id\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\n \"timeout\": 1200,\n \"abatement\": false,\n \"trigger\": \"unique-policy-id-1-modifyConfig\",\n \"operations\": [\n {\n \"id\": \"unique-policy-id-1-modifyConfig\",\n \"description\": \"Modify the packet generator\",\n \"operation\": {\n \"actor\": \"CDS\",\n \"operation\": \"modify-config\",\n \"target\": {\n \"targetType\": \"VNF\",\n \"entityIds\": {\n \"resourceID\": \"37b008b9-b367-4359-93fd-74d3ce0ee1a0\"\n }\n },\n \"payload\":{\n \"artifact_name\": \"vFW-CDS\",\n \"artifact_version\": \"1.0.0\",\n \"data\": \"{\\\"active-streams\\\": \\\"7\\\"}\"\n }\n },\n \"timeout\": 300,\n \"retries\": 0,\n \"success\": \"final_success\",\n \"failure\": \"final_failure\",\n \"failure_timeout\": \"final_failure_timeout\",\n \"failure_retries\": \"final_failure_retries\",\n \"failure_exception\": \"final_failure_exception\",\n \"failure_guard\": \"final_failure_guard\"\n }\n ],\n \"controllerName\": \"frankfurt\"\n }\n }\n }\n ]\n }\n}"
},
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"1.0.0",
"policies"
]
},
"description": "This is a specific API to create a policy referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to create policy for any policy type to be deployed in any supported PDP engine."
},
"response": []
},
{
"name": "Fetch Policy (Specific)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"1.0.0",
"policies",
"operational.modifyconfig",
"versions",
"1.0.0"
]
},
"description": "This is a specific API to fetch a policy (example - operational.modifyconfig) referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to fetch a policy referring to any policy type currently available in Policy DB."
},
"response": []
},
{
"name": "Fetch Policy (Generic)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policies/operational.modifyconfig/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policies",
"operational.modifyconfig",
"versions",
"1.0.0"
]
},
"description": "This is a specific API to fetch a policy (example - operational.modifyconfig). The same API can be used to fetch a policy without referring to any policy type currently available in Policy DB."
},
"response": []
},
{
"name": "Fetch All Policies (Specific)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"1.0.0",
"policies"
]
},
"description": "This is a specific API to fetch all policies referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to fetch policies for any policy type currently available in Policy DB."
},
"response": []
},
{
"name": "Fetch All Policies (Generic)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policies"
]
},
"description": "This is a specific API to fetch all policies currently available in Policy DB."
},
"response": []
},
{
"name": "Fetch All Version of a Policy (Specific)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"1.0.0",
"policies",
"operational.modifyconfig"
]
},
"description": "This is a specific API to fetch all versions of a policy (example - operational.modifyconfig) referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to fetch all versions of a policy referring to any policy type currently available in Policy DB."
},
"response": []
},
{
"name": "Fetch Latest Version of a Policy (Specific)",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/latest",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"1.0.0",
"policies",
"operational.modifyconfig",
"versions",
"latest"
]
},
"description": "This is a specific API to fetch latest version of a policy (example - operational.modifyconfig) referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to fetch latest version of a policy referring to any policy type currently available in Policy DB."
},
"response": []
},
{
"name": "Delete Policy (Generic) with metadata",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.apex.pnf.Example/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policies",
"onap.policies.apex.pnf.Example",
"versions",
"1.0.0"
]
},
"description": "This is a generic API to create multiple policies together in a single API call. The individual policies can refer to same policy type or different policy types."
},
"response": []
},
{
"name": "Delete node template",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/nodetemplates/apex.metadata.pnf/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"nodetemplates",
"apex.metadata.pnf",
"versions",
"1.0.0"
]
},
"description": "This is a generic API to create multiple policies together in a single API call. The individual policies can refer to same policy type or different policy types."
},
"response": []
},
{
"name": "Delete Policy (Specific)",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policytypes",
"onap.policies.controlloop.operational.common.Drools",
"versions",
"1.0.0",
"policies",
"operational.modifyconfig",
"versions",
"1.0.0"
]
},
"description": "This is a specific API to delete a policy (example - operational.modifyconfig) referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to delete a policy referring to any policy type currently available in Policy DB."
},
"response": []
},
{
"name": "Delete Policy (Generic)",
"request": {
"method": "DELETE",
"header": [
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{POLICY-API-URL}}/policy/api/v1/policies/operational.modifyconfig/versions/1.0.0",
"host": [
"{{POLICY-API-URL}}"
],
"path": [
"policy",
"api",
"v1",
"policies",
"operational.modifyconfig",
"versions",
"1.0.0"
]
},
"description": "This is a specific API to delete a policy (example - operational.modifyconfig). The same API can be used to delete a policy without referring to any policy type currently available in Policy DB."
},
"response": []
}
],
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{PASSWORD}}",
"type": "string"
},
{
"key": "username",
"value": "{{USER}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "USER",
"value": "policyadmin",
"type": "string"
},
{
"key": "PASSWORD",
"value": "zb!XztG34",
"type": "string"
}
]
}
|