From 1ebe9f0a2425b1eb89b50d1658c07f7fbe92e4db Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Wed, 19 Apr 2023 10:05:53 +0100 Subject: Restructure of devtools folder for pairwise tests Move pairwise tests docs to pairwise folder Issue-ID: POLICY-4627 Change-Id: Id87534466ffc33b7c88a8472fbf896eebb1c92c9 Signed-off-by: FrancescoFioraEst --- docs/architecture/architecture.rst | 2 +- docs/development/devtools/clamp-dcae.rst | 117 - docs/development/devtools/clamp-policy.rst | 102 - docs/development/devtools/clamp-sdc.rst | 119 - docs/development/devtools/devtools.rst | 11 +- docs/development/devtools/images/ac-commission.png | Bin 208559 -> 0 bytes docs/development/devtools/images/ac-create.png | Bin 226752 -> 0 bytes .../devtools/images/ac-instantiation.png | Bin 230788 -> 0 bytes docs/development/devtools/images/ac-passive.png | Bin 206486 -> 0 bytes .../devtools/images/ac-uninitialise.png | Bin 206284 -> 0 bytes .../devtools/images/ac-uninitialised-state.png | Bin 227934 -> 0 bytes docs/development/devtools/images/ac-upload.png | Bin 162824 -> 0 bytes .../devtools/images/create-instance.png | Bin 209643 -> 0 bytes .../devtools/images/sdc_compose_acm.png | Bin 162680 -> 0 bytes .../development/devtools/images/sdc_create_acm.png | Bin 112121 -> 0 bytes .../devtools/images/sdc_create_element.png | Bin 116027 -> 0 bytes .../devtools/images/sdc_create_participant.png | Bin 97458 -> 0 bytes .../development/devtools/images/sdc_distribute.png | Bin 114485 -> 0 bytes .../devtools/images/sdc_element_props.png | Bin 128859 -> 0 bytes docs/development/devtools/images/sdc_tosca.png | Bin 97452 -> 0 bytes .../devtools/images/update-instance.png | Bin 129767 -> 0 bytes docs/development/devtools/pairwise/clamp-dcae.rst | 117 + .../development/devtools/pairwise/clamp-policy.rst | 102 + docs/development/devtools/pairwise/clamp-sdc.rst | 119 + .../devtools/pairwise/images/ac-commission.png | Bin 0 -> 208559 bytes .../devtools/pairwise/images/ac-create.png | Bin 0 -> 226752 bytes .../devtools/pairwise/images/ac-instantiation.png | Bin 0 -> 230788 bytes .../devtools/pairwise/images/ac-passive.png | Bin 0 -> 206486 bytes .../devtools/pairwise/images/ac-uninitialise.png | Bin 0 -> 206284 bytes .../pairwise/images/ac-uninitialised-state.png | Bin 0 -> 227934 bytes .../devtools/pairwise/images/ac-upload.png | Bin 0 -> 162824 bytes .../devtools/pairwise/images/create-instance.png | Bin 0 -> 209643 bytes .../devtools/pairwise/images/sdc_compose_acm.png | Bin 0 -> 162680 bytes .../devtools/pairwise/images/sdc_create_acm.png | Bin 0 -> 112121 bytes .../pairwise/images/sdc_create_element.png | Bin 0 -> 116027 bytes .../pairwise/images/sdc_create_participant.png | Bin 0 -> 97458 bytes .../devtools/pairwise/images/sdc_distribute.png | Bin 0 -> 114485 bytes .../devtools/pairwise/images/sdc_element_props.png | Bin 0 -> 128859 bytes .../devtools/pairwise/images/sdc_tosca.png | Bin 0 -> 97452 bytes .../devtools/pairwise/images/update-instance.png | Bin 0 -> 129767 bytes docs/development/devtools/pairwise/policy-cds.rst | 135 + .../devtools/pairwise/tosca/pairwise-testing.yml | 3388 ++++++++++++++++++++ docs/development/devtools/policy-cds.rst | 135 - docs/development/devtools/smoke/apex-smoke.rst | 10 +- .../devtools/smoke/cds-cba/pnf-test-cba.zip | Bin 10148 -> 0 bytes .../devtools/smoke/cds-cba/vnf-test-cba.zip | Bin 6036 -> 0 bytes ...pex-pdp-vnf-pnf-testing.postman_collection.json | 1244 ------- .../create-vnf-pnf-aai.postman_collection.json | 788 ----- .../publish-cba-CDS.postman_collection.json | 598 ---- .../devtools/tosca/pairwise-testing.yml | 3388 -------------------- 50 files changed, 3871 insertions(+), 6504 deletions(-) delete mode 100644 docs/development/devtools/clamp-dcae.rst delete mode 100644 docs/development/devtools/clamp-policy.rst delete mode 100644 docs/development/devtools/clamp-sdc.rst delete mode 100644 docs/development/devtools/images/ac-commission.png delete mode 100644 docs/development/devtools/images/ac-create.png delete mode 100644 docs/development/devtools/images/ac-instantiation.png delete mode 100644 docs/development/devtools/images/ac-passive.png delete mode 100644 docs/development/devtools/images/ac-uninitialise.png delete mode 100644 docs/development/devtools/images/ac-uninitialised-state.png delete mode 100644 docs/development/devtools/images/ac-upload.png delete mode 100644 docs/development/devtools/images/create-instance.png delete mode 100644 docs/development/devtools/images/sdc_compose_acm.png delete mode 100644 docs/development/devtools/images/sdc_create_acm.png delete mode 100644 docs/development/devtools/images/sdc_create_element.png delete mode 100644 docs/development/devtools/images/sdc_create_participant.png delete mode 100644 docs/development/devtools/images/sdc_distribute.png delete mode 100644 docs/development/devtools/images/sdc_element_props.png delete mode 100644 docs/development/devtools/images/sdc_tosca.png delete mode 100644 docs/development/devtools/images/update-instance.png create mode 100644 docs/development/devtools/pairwise/clamp-dcae.rst create mode 100644 docs/development/devtools/pairwise/clamp-policy.rst create mode 100644 docs/development/devtools/pairwise/clamp-sdc.rst create mode 100644 docs/development/devtools/pairwise/images/ac-commission.png create mode 100644 docs/development/devtools/pairwise/images/ac-create.png create mode 100644 docs/development/devtools/pairwise/images/ac-instantiation.png create mode 100644 docs/development/devtools/pairwise/images/ac-passive.png create mode 100644 docs/development/devtools/pairwise/images/ac-uninitialise.png create mode 100644 docs/development/devtools/pairwise/images/ac-uninitialised-state.png create mode 100644 docs/development/devtools/pairwise/images/ac-upload.png create mode 100644 docs/development/devtools/pairwise/images/create-instance.png create mode 100644 docs/development/devtools/pairwise/images/sdc_compose_acm.png create mode 100644 docs/development/devtools/pairwise/images/sdc_create_acm.png create mode 100644 docs/development/devtools/pairwise/images/sdc_create_element.png create mode 100644 docs/development/devtools/pairwise/images/sdc_create_participant.png create mode 100644 docs/development/devtools/pairwise/images/sdc_distribute.png create mode 100644 docs/development/devtools/pairwise/images/sdc_element_props.png create mode 100644 docs/development/devtools/pairwise/images/sdc_tosca.png create mode 100644 docs/development/devtools/pairwise/images/update-instance.png create mode 100644 docs/development/devtools/pairwise/policy-cds.rst create mode 100644 docs/development/devtools/pairwise/tosca/pairwise-testing.yml delete mode 100644 docs/development/devtools/policy-cds.rst delete mode 100644 docs/development/devtools/smoke/cds-cba/pnf-test-cba.zip delete mode 100644 docs/development/devtools/smoke/cds-cba/vnf-test-cba.zip delete mode 100644 docs/development/devtools/smoke/postman/apex-pdp-vnf-pnf-testing.postman_collection.json delete mode 100644 docs/development/devtools/smoke/postman/create-vnf-pnf-aai.postman_collection.json delete mode 100644 docs/development/devtools/smoke/postman/publish-cba-CDS.postman_collection.json delete mode 100644 docs/development/devtools/tosca/pairwise-testing.yml diff --git a/docs/architecture/architecture.rst b/docs/architecture/architecture.rst index 69484ac3..f582918c 100644 --- a/docs/architecture/architecture.rst +++ b/docs/architecture/architecture.rst @@ -169,7 +169,7 @@ management of the PDPs on which the policies are running. *PolicyAPI* interacts no programmatic interface with *PolicyAdministration*, *PolicyExecution* or any other run-time ONAP components. The diagram below shows a more detailed view of the architecture, as inspired by -`RFC-2753 `__ and `RFC-3198 `__. +`RFC-2753 https://tools.ietf.org/html/rfc2753` and `RFC-3198 https://tools.ietf.org/html/rfc3198`. .. image:: images/PFDesignAndAdmin.svg diff --git a/docs/development/devtools/clamp-dcae.rst b/docs/development/devtools/clamp-dcae.rst deleted file mode 100644 index 0d48c2bc..00000000 --- a/docs/development/devtools/clamp-dcae.rst +++ /dev/null @@ -1,117 +0,0 @@ -.. This work is licensed under a -.. Creative Commons Attribution 4.0 International License. -.. http://creativecommons.org/licenses/by/4.0 - -.. _clamp-pairwise-testing-label: - -.. toctree:: - :maxdepth: 2 - -CLAMP <-> Dcae -~~~~~~~~~~~~~~ - -The pairwise testing is executed against a default ONAP installation in the OOM. -CLAMP-Automation Composition interacts with DCAE to deploy dcaegen2 services like PMSH. -This test verifies the interaction between DCAE and clamp-acm works as expected. - -General Setup -************* - -The kubernetes installation allocated all policy components across multiple worker node VMs. -The worker VM hosting the policy components has the following spec: - -- 16GB RAM -- 8 VCPU -- 160GB Ephemeral Disk - - -The ONAP components used during the pairwise tests are: - -- CLAMP acm runtime, policy participant, kubernetes participant. -- DCAE for running dcaegen2-service via kubernetes participant. -- ChartMuseum service from platform, initialised with DCAE helm charts. -- DMaaP for the communication between Automation Composition runtime and participants. -- Policy Gui for instantiation and commissioning of control loops. - - -ChartMuseum Setup -***************** - -The chartMuseum helm chart from the platform is deployed in the same cluster. The chart server is then initialized with the helm charts of dcaegen2-services by running the below script in OOM repo. -The script accepts the directory path as an argument where the helm charts are located. - -.. code-block:: bash - - #!/bin/sh - ./oom/kubernetes/contrib/tools/registry-initialize.sh -d /oom/kubernetes/dcaegen2-services/charts/ - -Testing procedure -***************** - -The test set focused on the following use cases: - -- Deployment and Configuration of DCAE microservice PMSH -- Undeployment of PMSH - -Creation of the Automation Composition: ---------------------------------------- -An Automation Composition is created by commissioning a Tosca template with Automation Composition definitions and instantiating the Automation Composition with the state "UNINITIALISED". - -- Upload a TOSCA template from the POLICY GUI. The definitions include a kubernetes participant and automation composition elements that deploys and configures a microservice in the kubernetes cluster. - Automation Composition element for kubernetes participant includes a helm chart information of DCAE microservice and the element for Http Participant includes the configuration entity for the microservice. - :download:`Sample Tosca template ` - - .. image:: images/ac-commission.png - - .. image:: images/ac-upload.png - - Verification: The template is commissioned successfully without errors. - -- Instantiate the commissioned Automation Composition definitions from the Policy Gui under 'Instantiation Management'. - - .. image:: images/create-instance.png - - Update instance properties of the Automation Composition Elements if required. - - .. image:: images/update-instance.png - - Verification: The Automation composition is created with default state "UNINITIALISED" without errors. - - .. image:: images/ac-instantiation.png - - -Deployment and Configuration of DCAE microservice (PMSH): ---------------------------------------------------------- -The Automation Composition state is changed from "UNINITIALISED" to "PASSIVE" from the Policy Gui. The kubernetes participant deploys the PMSH helm chart from the DCAE chartMuseum server. - -.. image:: images/ac-passive.png - -Verification: - -- DCAE service PMSH is deployed in to the kubernetes cluster. PMSH pods are in RUNNING state. - `helm ls -n ` - The helm deployment of dcaegen2 service PMSH is listed. - `kubectl get pod -n ` - The PMSH pods are deployed, up and running. - -- The subscription configuration for PMSH microservice from the TOSCA definitions are updated in the Consul server. The configuration can be verified on the Consul server UI `http:///ui/#/dc1/kv/` - -- The overall state of the Automation Composition is changed to "PASSIVE" in the Policy Gui. - -.. image:: images/ac-create.png - - -Undeployment of DCAE microservice (PMSH): ------------------------------------------ -The Automation Composition state is changed from "PASSIVE" to "UNINITIALISED" from the Policy Gui. - -.. image:: images/ac-uninitialise.png - -Verification: - -- The kubernetes participant uninstall the DCAE PMSH helm chart from the kubernetes cluster. The pods are removed from the cluster. - -- The overall state of the Automation Composition is changed to "UNINITIALISED" in the Policy Gui. - -.. image:: images/ac-uninitialised-state.png - - - diff --git a/docs/development/devtools/clamp-policy.rst b/docs/development/devtools/clamp-policy.rst deleted file mode 100644 index 0a25ce81..00000000 --- a/docs/development/devtools/clamp-policy.rst +++ /dev/null @@ -1,102 +0,0 @@ -.. This work is licensed under a -.. Creative Commons Attribution 4.0 International License. -.. http://creativecommons.org/licenses/by/4.0 - -.. _clamp-pairwise-testing-label: - -.. toctree:: - :maxdepth: 2 - -CLAMP <-> Policy Core -~~~~~~~~~~~~~~~~~~~~~ - -The pairwise testing is executed against a default ONAP installation in the OOM. -CLAMP-Automation Composition interacts with Policy framework to create and deploy policies. -This test verifies the interaction between policy and clamp-acm works as expected. - -General Setup -************* - -The kubernetes installation allocated all policy components across multiple worker node VMs. -The worker VM hosting the policy components has the following spec: - -- 16GB RAM -- 8 VCPU -- 160GB Ephemeral Disk - - -The ONAP components used during the pairwise tests are: - -- CLAMP Automation Composition runtime, policy participant, kubernetes participant. -- DMaaP for the communication between Automation Composition runtime and participants. -- Policy API to create (and delete at the end of the tests) policies for each - scenario under test. -- Policy PAP to deploy (and undeploy at the end of the tests) policies for each scenario under test. -- Policy Gui for instantiation and commissioning of Automation Compositions. - - -Testing procedure -***************** - -The test set focused on the following use cases: - -- creation/Deletion of policies -- Deployment/Undeployment of policies - -Creation of the Automation Composition: ---------------------------------------- -An Automation Composition is created by commissioning a Tosca template with Automation Composition definitions and instantiating the Automation Composition with the state "UNINITIALISED". - -- Upload a TOSCA template from the POLICY GUI. The definitions include a policy participant and an Automation Composition element that creates and deploys required policies. :download:`Sample Tosca template ` - - .. image:: images/ac-commission.png - - Verification: The template is commissioned successfully without errors. - -- Instantiate the commissioned Automation Composition from the Policy Gui under 'Instantiation Management'. - - .. image:: images/create-instance.png - - Update instance properties of the Automation Composition Elements if required. - - .. image:: images/update-instance.png - - Verification: The Automation Composition is created with default state "UNINITIALISED" without errors. - - .. image:: images/ac-instantiation.png - - -Creation and deployment of policies: ------------------------------------- -The Automation Composition state is changed from "UNINITIALISED" to "PASSIVE" from the Policy Gui. Verify the POLICY API endpoint for the creation of policy types that are defined in the TOSCA template. Verify the PAP endpoint for the deployment of policies. - -.. image:: images/ac-passive.png - -Verification: - -- The policy types defined in the tosca template is created by the policy participant and listed in the policy Api. - Policy Api endpoint: `/policy/api/v1/policytypes>` - -- The policy participant deploys the policies of Tosca Automation Composition elements in Policy PAP for all the pdp groups. - Policy PAP endpoint: `/policy/pap/v1/pdps>` - -- The overall state of the Automation Composition is changed to "PASSIVE" in the Policy Gui. - -.. image:: images/ac-create.png - -Undeployment and deletion of Policies: --------------------------------------- -The Automation Composition state is changed from "PASSIVE" to "UNINITIALISED" from the Policy Gui. - -Verification: - -- The policy participant undeploys the policies of the Automation Composition element from the pdp groups. The policies deployed as part of the Automation Composition should not be listed on the Policy PAP. - Policy PAP endpoint: `/policy/pap/v1/pdps>` - -- The policy participant deletes the created policy types which can be verified on the Policy Api. The policy types created as part of the Automation Composition should not be listed on the Policy Api. - Policy Api endpoint: `/policy/api/v1/policytypes>` - -- The overall state of the Automation Composition is changed to "PASSIVE" in the Policy Gui. - -.. image:: images/ac-create.png - diff --git a/docs/development/devtools/clamp-sdc.rst b/docs/development/devtools/clamp-sdc.rst deleted file mode 100644 index c82fb2ce..00000000 --- a/docs/development/devtools/clamp-sdc.rst +++ /dev/null @@ -1,119 +0,0 @@ -.. This work is licensed under a -.. Creative Commons Attribution 4.0 International License. -.. http://creativecommons.org/licenses/by/4.0 - -.. _clamp-pairwise-testing-label: - -.. toctree:: - :maxdepth: 2 - -CLAMP <-> SDC -~~~~~~~~~~~~~~ - -The pairwise testing is executed against a default ONAP installation in the OOM. -It briefly states the procedure to design an Automation Composition starting from service creation, -adding the required ONAP component artifacts, policy and properties in the composition phase of SDC -and finally distributing it to the CLAMP for Commissioning. -SDC provides an interface for distributing the modeled services to the run time components. - -The instructions below will enable to design an Automation Composition. There are different phases to the design: - -Step 1: Design an automation composition template and associate it to a Service, the template represents the theoretical flow of the ACM. - -Step 2: Generate a deployment artifact that can be ingested by the Policy Framework - -Step 3: Distribute the automation composition to CLAMP, the csar is distributed to CLAMP over Dmaap - -Step 4: Policy Distribution will internally call Automation Composition Commissioning rest endpoint - -Step 5: Service Template is commissioned in CLAMP, and can be followed by Instantiation and state changes. - -General Setup -************* - -The kubernetes installation allocated all policy components across multiple worker node VMs. -The worker VM hosting the policy components has the following spec: - -- 16GB RAM -- 8 VCPU -- 160GB Ephemeral Disk - -The ONAP components used during the pairwise tests are: - -- CLAMP automation composition runtime, policy participant, kubernetes participant. -- SDC for running SDC components. -- DMaaP for the communication between Automation Composition runtime and participants. -- Policy Framework components for instantiation and commissioning of automation compositions. - -Helpful instruction page on bringing SDC and PORTAL setup on an OOM deployment https://wiki.onap.org/display/DW/Deploy+OOM+and+SDC+%28or+ONAP%29+on+a+single+VM+with+microk8s+-+Honolulu+Setup - -Testing procedure -***************** - -The test set focused on the following use cases: - -- Design of participants and automation composition elements -- Design of Automation Composition template including the above designed participants and automation composition element templates. -- Distribution of designed template along with other artifacts as a csar to policy-distribution -- Commissioning of template in automation composition runtime. - -Configuration changes -********************* - -Following are certain configuration changes required/cross-checked -1. policy-distribution configuration should include toscaAutomationCompositionDecoderConfiguration -File: kubernetes/policy/components/policy-distribution/resources/config/config.json - - - Automation composition decoders and forwards should be present. Reference: `Sample Configuration ` - -Design of participants and automation composition elements: ------------------------------------------------------------ -Different participants and automation composition elements are created in SDC dashboard with the models available for automation composition. - -SDC provides a graphical interface for onboarding/designing resources (such as VNFs, PNFs, CNFs) and designing services composed of such resources - -- Create as many participants as needed to present in the automation composition -- Select VF, provide name of the participant. Choose Model as AUTOMATION COMPOSTIION and Category as Participant. - - .. image:: images/sdc_create_participant.png - -- Create as many automation composition elements as needed to present in the automation composition -- Select VF, provide name of the automation composition element. Choose Model as AUTOMATION COMPOSTIION and Category as AutomationComposition Element. - - .. image:: images/sdc_create_element.png - -- Add properties as required for an automation composition element -- Add any properties where input is needed in Inputs tab. - - .. image:: images/sdc_element_props.png - -- Create an automation composition -- Select Service, provide name of the automation composition. Choose Model as AUTOMATION COMPOSTIION and Category as AutomationComposition. - - .. image:: images/sdc_create_acm.png - -- SDC Composition tab -- Drag and Drop the previously created participants and automation composition elements into the Compistion pane. -- Drag and Drop the policies that needs to be added to the service template. - - .. image:: images/sdc_compose_acm.png - -- For a pre validation, Tosca artifacts can be downloaded and verified - - .. image:: images/sdc_tosca.png - -- From SDC dashboard, perform a distribution of the automation composition - - .. image:: images/sdc_distribute.png - -- An Automation Composition is created by commissioning a Tosca template with Automation Composition definitions. - This commissioned tosca service template can be further used from Policy-GUI for instantiating the Automation Composition with the state "UNINITIALISED". - -- Instantiate the commissioned Automation Composition definitions from the Policy Gui under 'Instantiation Management'. - - .. image:: images/create-instance.png - -- Verification: The automation composition is created with default state "UNINITIALISED" without errors. - - .. image:: images/ac-instantiation.png - diff --git a/docs/development/devtools/devtools.rst b/docs/development/devtools/devtools.rst index a9caf9a8..75f34434 100644 --- a/docs/development/devtools/devtools.rst +++ b/docs/development/devtools/devtools.rst @@ -344,13 +344,10 @@ the Policy Framework works in a full ONAP deployment. .. toctree:: :maxdepth: 1 - clamp-policy.rst - - clamp-dcae.rst - - policy-cds.rst - - clamp-sdc.rst + pairwise/clamp-policy.rst + pairwise/clamp-dcae.rst + pairwise/policy-cds.rst + pairwise/clamp-sdc.rst .. api-pairwise.rst diff --git a/docs/development/devtools/images/ac-commission.png b/docs/development/devtools/images/ac-commission.png deleted file mode 100644 index 10d71181..00000000 Binary files a/docs/development/devtools/images/ac-commission.png and /dev/null differ diff --git a/docs/development/devtools/images/ac-create.png b/docs/development/devtools/images/ac-create.png deleted file mode 100644 index df97a170..00000000 Binary files a/docs/development/devtools/images/ac-create.png and /dev/null differ diff --git a/docs/development/devtools/images/ac-instantiation.png b/docs/development/devtools/images/ac-instantiation.png deleted file mode 100644 index b1101ffb..00000000 Binary files a/docs/development/devtools/images/ac-instantiation.png and /dev/null differ diff --git a/docs/development/devtools/images/ac-passive.png b/docs/development/devtools/images/ac-passive.png deleted file mode 100644 index def811a5..00000000 Binary files a/docs/development/devtools/images/ac-passive.png and /dev/null differ diff --git a/docs/development/devtools/images/ac-uninitialise.png b/docs/development/devtools/images/ac-uninitialise.png deleted file mode 100644 index d10b214c..00000000 Binary files a/docs/development/devtools/images/ac-uninitialise.png and /dev/null differ diff --git a/docs/development/devtools/images/ac-uninitialised-state.png b/docs/development/devtools/images/ac-uninitialised-state.png deleted file mode 100644 index f8a77da8..00000000 Binary files a/docs/development/devtools/images/ac-uninitialised-state.png and /dev/null differ diff --git a/docs/development/devtools/images/ac-upload.png b/docs/development/devtools/images/ac-upload.png deleted file mode 100644 index efe51341..00000000 Binary files a/docs/development/devtools/images/ac-upload.png and /dev/null differ diff --git a/docs/development/devtools/images/create-instance.png b/docs/development/devtools/images/create-instance.png deleted file mode 100644 index 3b3c0c21..00000000 Binary files a/docs/development/devtools/images/create-instance.png and /dev/null differ diff --git a/docs/development/devtools/images/sdc_compose_acm.png b/docs/development/devtools/images/sdc_compose_acm.png deleted file mode 100644 index 3bdc9305..00000000 Binary files a/docs/development/devtools/images/sdc_compose_acm.png and /dev/null differ diff --git a/docs/development/devtools/images/sdc_create_acm.png b/docs/development/devtools/images/sdc_create_acm.png deleted file mode 100644 index f60492bf..00000000 Binary files a/docs/development/devtools/images/sdc_create_acm.png and /dev/null differ diff --git a/docs/development/devtools/images/sdc_create_element.png b/docs/development/devtools/images/sdc_create_element.png deleted file mode 100644 index 42d28b3e..00000000 Binary files a/docs/development/devtools/images/sdc_create_element.png and /dev/null differ diff --git a/docs/development/devtools/images/sdc_create_participant.png b/docs/development/devtools/images/sdc_create_participant.png deleted file mode 100644 index 4178127f..00000000 Binary files a/docs/development/devtools/images/sdc_create_participant.png and /dev/null differ diff --git a/docs/development/devtools/images/sdc_distribute.png b/docs/development/devtools/images/sdc_distribute.png deleted file mode 100644 index cffffaed..00000000 Binary files a/docs/development/devtools/images/sdc_distribute.png and /dev/null differ diff --git a/docs/development/devtools/images/sdc_element_props.png b/docs/development/devtools/images/sdc_element_props.png deleted file mode 100644 index f2227465..00000000 Binary files a/docs/development/devtools/images/sdc_element_props.png and /dev/null differ diff --git a/docs/development/devtools/images/sdc_tosca.png b/docs/development/devtools/images/sdc_tosca.png deleted file mode 100644 index eb881581..00000000 Binary files a/docs/development/devtools/images/sdc_tosca.png and /dev/null differ diff --git a/docs/development/devtools/images/update-instance.png b/docs/development/devtools/images/update-instance.png deleted file mode 100644 index fa1ee095..00000000 Binary files a/docs/development/devtools/images/update-instance.png and /dev/null differ diff --git a/docs/development/devtools/pairwise/clamp-dcae.rst b/docs/development/devtools/pairwise/clamp-dcae.rst new file mode 100644 index 00000000..0d48c2bc --- /dev/null +++ b/docs/development/devtools/pairwise/clamp-dcae.rst @@ -0,0 +1,117 @@ +.. This work is licensed under a +.. Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 + +.. _clamp-pairwise-testing-label: + +.. toctree:: + :maxdepth: 2 + +CLAMP <-> Dcae +~~~~~~~~~~~~~~ + +The pairwise testing is executed against a default ONAP installation in the OOM. +CLAMP-Automation Composition interacts with DCAE to deploy dcaegen2 services like PMSH. +This test verifies the interaction between DCAE and clamp-acm works as expected. + +General Setup +************* + +The kubernetes installation allocated all policy components across multiple worker node VMs. +The worker VM hosting the policy components has the following spec: + +- 16GB RAM +- 8 VCPU +- 160GB Ephemeral Disk + + +The ONAP components used during the pairwise tests are: + +- CLAMP acm runtime, policy participant, kubernetes participant. +- DCAE for running dcaegen2-service via kubernetes participant. +- ChartMuseum service from platform, initialised with DCAE helm charts. +- DMaaP for the communication between Automation Composition runtime and participants. +- Policy Gui for instantiation and commissioning of control loops. + + +ChartMuseum Setup +***************** + +The chartMuseum helm chart from the platform is deployed in the same cluster. The chart server is then initialized with the helm charts of dcaegen2-services by running the below script in OOM repo. +The script accepts the directory path as an argument where the helm charts are located. + +.. code-block:: bash + + #!/bin/sh + ./oom/kubernetes/contrib/tools/registry-initialize.sh -d /oom/kubernetes/dcaegen2-services/charts/ + +Testing procedure +***************** + +The test set focused on the following use cases: + +- Deployment and Configuration of DCAE microservice PMSH +- Undeployment of PMSH + +Creation of the Automation Composition: +--------------------------------------- +An Automation Composition is created by commissioning a Tosca template with Automation Composition definitions and instantiating the Automation Composition with the state "UNINITIALISED". + +- Upload a TOSCA template from the POLICY GUI. The definitions include a kubernetes participant and automation composition elements that deploys and configures a microservice in the kubernetes cluster. + Automation Composition element for kubernetes participant includes a helm chart information of DCAE microservice and the element for Http Participant includes the configuration entity for the microservice. + :download:`Sample Tosca template ` + + .. image:: images/ac-commission.png + + .. image:: images/ac-upload.png + + Verification: The template is commissioned successfully without errors. + +- Instantiate the commissioned Automation Composition definitions from the Policy Gui under 'Instantiation Management'. + + .. image:: images/create-instance.png + + Update instance properties of the Automation Composition Elements if required. + + .. image:: images/update-instance.png + + Verification: The Automation composition is created with default state "UNINITIALISED" without errors. + + .. image:: images/ac-instantiation.png + + +Deployment and Configuration of DCAE microservice (PMSH): +--------------------------------------------------------- +The Automation Composition state is changed from "UNINITIALISED" to "PASSIVE" from the Policy Gui. The kubernetes participant deploys the PMSH helm chart from the DCAE chartMuseum server. + +.. image:: images/ac-passive.png + +Verification: + +- DCAE service PMSH is deployed in to the kubernetes cluster. PMSH pods are in RUNNING state. + `helm ls -n ` - The helm deployment of dcaegen2 service PMSH is listed. + `kubectl get pod -n ` - The PMSH pods are deployed, up and running. + +- The subscription configuration for PMSH microservice from the TOSCA definitions are updated in the Consul server. The configuration can be verified on the Consul server UI `http:///ui/#/dc1/kv/` + +- The overall state of the Automation Composition is changed to "PASSIVE" in the Policy Gui. + +.. image:: images/ac-create.png + + +Undeployment of DCAE microservice (PMSH): +----------------------------------------- +The Automation Composition state is changed from "PASSIVE" to "UNINITIALISED" from the Policy Gui. + +.. image:: images/ac-uninitialise.png + +Verification: + +- The kubernetes participant uninstall the DCAE PMSH helm chart from the kubernetes cluster. The pods are removed from the cluster. + +- The overall state of the Automation Composition is changed to "UNINITIALISED" in the Policy Gui. + +.. image:: images/ac-uninitialised-state.png + + + diff --git a/docs/development/devtools/pairwise/clamp-policy.rst b/docs/development/devtools/pairwise/clamp-policy.rst new file mode 100644 index 00000000..0a25ce81 --- /dev/null +++ b/docs/development/devtools/pairwise/clamp-policy.rst @@ -0,0 +1,102 @@ +.. This work is licensed under a +.. Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 + +.. _clamp-pairwise-testing-label: + +.. toctree:: + :maxdepth: 2 + +CLAMP <-> Policy Core +~~~~~~~~~~~~~~~~~~~~~ + +The pairwise testing is executed against a default ONAP installation in the OOM. +CLAMP-Automation Composition interacts with Policy framework to create and deploy policies. +This test verifies the interaction between policy and clamp-acm works as expected. + +General Setup +************* + +The kubernetes installation allocated all policy components across multiple worker node VMs. +The worker VM hosting the policy components has the following spec: + +- 16GB RAM +- 8 VCPU +- 160GB Ephemeral Disk + + +The ONAP components used during the pairwise tests are: + +- CLAMP Automation Composition runtime, policy participant, kubernetes participant. +- DMaaP for the communication between Automation Composition runtime and participants. +- Policy API to create (and delete at the end of the tests) policies for each + scenario under test. +- Policy PAP to deploy (and undeploy at the end of the tests) policies for each scenario under test. +- Policy Gui for instantiation and commissioning of Automation Compositions. + + +Testing procedure +***************** + +The test set focused on the following use cases: + +- creation/Deletion of policies +- Deployment/Undeployment of policies + +Creation of the Automation Composition: +--------------------------------------- +An Automation Composition is created by commissioning a Tosca template with Automation Composition definitions and instantiating the Automation Composition with the state "UNINITIALISED". + +- Upload a TOSCA template from the POLICY GUI. The definitions include a policy participant and an Automation Composition element that creates and deploys required policies. :download:`Sample Tosca template ` + + .. image:: images/ac-commission.png + + Verification: The template is commissioned successfully without errors. + +- Instantiate the commissioned Automation Composition from the Policy Gui under 'Instantiation Management'. + + .. image:: images/create-instance.png + + Update instance properties of the Automation Composition Elements if required. + + .. image:: images/update-instance.png + + Verification: The Automation Composition is created with default state "UNINITIALISED" without errors. + + .. image:: images/ac-instantiation.png + + +Creation and deployment of policies: +------------------------------------ +The Automation Composition state is changed from "UNINITIALISED" to "PASSIVE" from the Policy Gui. Verify the POLICY API endpoint for the creation of policy types that are defined in the TOSCA template. Verify the PAP endpoint for the deployment of policies. + +.. image:: images/ac-passive.png + +Verification: + +- The policy types defined in the tosca template is created by the policy participant and listed in the policy Api. + Policy Api endpoint: `/policy/api/v1/policytypes>` + +- The policy participant deploys the policies of Tosca Automation Composition elements in Policy PAP for all the pdp groups. + Policy PAP endpoint: `/policy/pap/v1/pdps>` + +- The overall state of the Automation Composition is changed to "PASSIVE" in the Policy Gui. + +.. image:: images/ac-create.png + +Undeployment and deletion of Policies: +-------------------------------------- +The Automation Composition state is changed from "PASSIVE" to "UNINITIALISED" from the Policy Gui. + +Verification: + +- The policy participant undeploys the policies of the Automation Composition element from the pdp groups. The policies deployed as part of the Automation Composition should not be listed on the Policy PAP. + Policy PAP endpoint: `/policy/pap/v1/pdps>` + +- The policy participant deletes the created policy types which can be verified on the Policy Api. The policy types created as part of the Automation Composition should not be listed on the Policy Api. + Policy Api endpoint: `/policy/api/v1/policytypes>` + +- The overall state of the Automation Composition is changed to "PASSIVE" in the Policy Gui. + +.. image:: images/ac-create.png + diff --git a/docs/development/devtools/pairwise/clamp-sdc.rst b/docs/development/devtools/pairwise/clamp-sdc.rst new file mode 100644 index 00000000..c82fb2ce --- /dev/null +++ b/docs/development/devtools/pairwise/clamp-sdc.rst @@ -0,0 +1,119 @@ +.. This work is licensed under a +.. Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 + +.. _clamp-pairwise-testing-label: + +.. toctree:: + :maxdepth: 2 + +CLAMP <-> SDC +~~~~~~~~~~~~~~ + +The pairwise testing is executed against a default ONAP installation in the OOM. +It briefly states the procedure to design an Automation Composition starting from service creation, +adding the required ONAP component artifacts, policy and properties in the composition phase of SDC +and finally distributing it to the CLAMP for Commissioning. +SDC provides an interface for distributing the modeled services to the run time components. + +The instructions below will enable to design an Automation Composition. There are different phases to the design: + +Step 1: Design an automation composition template and associate it to a Service, the template represents the theoretical flow of the ACM. + +Step 2: Generate a deployment artifact that can be ingested by the Policy Framework + +Step 3: Distribute the automation composition to CLAMP, the csar is distributed to CLAMP over Dmaap + +Step 4: Policy Distribution will internally call Automation Composition Commissioning rest endpoint + +Step 5: Service Template is commissioned in CLAMP, and can be followed by Instantiation and state changes. + +General Setup +************* + +The kubernetes installation allocated all policy components across multiple worker node VMs. +The worker VM hosting the policy components has the following spec: + +- 16GB RAM +- 8 VCPU +- 160GB Ephemeral Disk + +The ONAP components used during the pairwise tests are: + +- CLAMP automation composition runtime, policy participant, kubernetes participant. +- SDC for running SDC components. +- DMaaP for the communication between Automation Composition runtime and participants. +- Policy Framework components for instantiation and commissioning of automation compositions. + +Helpful instruction page on bringing SDC and PORTAL setup on an OOM deployment https://wiki.onap.org/display/DW/Deploy+OOM+and+SDC+%28or+ONAP%29+on+a+single+VM+with+microk8s+-+Honolulu+Setup + +Testing procedure +***************** + +The test set focused on the following use cases: + +- Design of participants and automation composition elements +- Design of Automation Composition template including the above designed participants and automation composition element templates. +- Distribution of designed template along with other artifacts as a csar to policy-distribution +- Commissioning of template in automation composition runtime. + +Configuration changes +********************* + +Following are certain configuration changes required/cross-checked +1. policy-distribution configuration should include toscaAutomationCompositionDecoderConfiguration +File: kubernetes/policy/components/policy-distribution/resources/config/config.json + + - Automation composition decoders and forwards should be present. Reference: `Sample Configuration ` + +Design of participants and automation composition elements: +----------------------------------------------------------- +Different participants and automation composition elements are created in SDC dashboard with the models available for automation composition. + +SDC provides a graphical interface for onboarding/designing resources (such as VNFs, PNFs, CNFs) and designing services composed of such resources + +- Create as many participants as needed to present in the automation composition +- Select VF, provide name of the participant. Choose Model as AUTOMATION COMPOSTIION and Category as Participant. + + .. image:: images/sdc_create_participant.png + +- Create as many automation composition elements as needed to present in the automation composition +- Select VF, provide name of the automation composition element. Choose Model as AUTOMATION COMPOSTIION and Category as AutomationComposition Element. + + .. image:: images/sdc_create_element.png + +- Add properties as required for an automation composition element +- Add any properties where input is needed in Inputs tab. + + .. image:: images/sdc_element_props.png + +- Create an automation composition +- Select Service, provide name of the automation composition. Choose Model as AUTOMATION COMPOSTIION and Category as AutomationComposition. + + .. image:: images/sdc_create_acm.png + +- SDC Composition tab +- Drag and Drop the previously created participants and automation composition elements into the Compistion pane. +- Drag and Drop the policies that needs to be added to the service template. + + .. image:: images/sdc_compose_acm.png + +- For a pre validation, Tosca artifacts can be downloaded and verified + + .. image:: images/sdc_tosca.png + +- From SDC dashboard, perform a distribution of the automation composition + + .. image:: images/sdc_distribute.png + +- An Automation Composition is created by commissioning a Tosca template with Automation Composition definitions. + This commissioned tosca service template can be further used from Policy-GUI for instantiating the Automation Composition with the state "UNINITIALISED". + +- Instantiate the commissioned Automation Composition definitions from the Policy Gui under 'Instantiation Management'. + + .. image:: images/create-instance.png + +- Verification: The automation composition is created with default state "UNINITIALISED" without errors. + + .. image:: images/ac-instantiation.png + diff --git a/docs/development/devtools/pairwise/images/ac-commission.png b/docs/development/devtools/pairwise/images/ac-commission.png new file mode 100644 index 00000000..10d71181 Binary files /dev/null and b/docs/development/devtools/pairwise/images/ac-commission.png differ diff --git a/docs/development/devtools/pairwise/images/ac-create.png b/docs/development/devtools/pairwise/images/ac-create.png new file mode 100644 index 00000000..df97a170 Binary files /dev/null and b/docs/development/devtools/pairwise/images/ac-create.png differ diff --git a/docs/development/devtools/pairwise/images/ac-instantiation.png b/docs/development/devtools/pairwise/images/ac-instantiation.png new file mode 100644 index 00000000..b1101ffb Binary files /dev/null and b/docs/development/devtools/pairwise/images/ac-instantiation.png differ diff --git a/docs/development/devtools/pairwise/images/ac-passive.png b/docs/development/devtools/pairwise/images/ac-passive.png new file mode 100644 index 00000000..def811a5 Binary files /dev/null and b/docs/development/devtools/pairwise/images/ac-passive.png differ diff --git a/docs/development/devtools/pairwise/images/ac-uninitialise.png b/docs/development/devtools/pairwise/images/ac-uninitialise.png new file mode 100644 index 00000000..d10b214c Binary files /dev/null and b/docs/development/devtools/pairwise/images/ac-uninitialise.png differ diff --git a/docs/development/devtools/pairwise/images/ac-uninitialised-state.png b/docs/development/devtools/pairwise/images/ac-uninitialised-state.png new file mode 100644 index 00000000..f8a77da8 Binary files /dev/null and b/docs/development/devtools/pairwise/images/ac-uninitialised-state.png differ diff --git a/docs/development/devtools/pairwise/images/ac-upload.png b/docs/development/devtools/pairwise/images/ac-upload.png new file mode 100644 index 00000000..efe51341 Binary files /dev/null and b/docs/development/devtools/pairwise/images/ac-upload.png differ diff --git a/docs/development/devtools/pairwise/images/create-instance.png b/docs/development/devtools/pairwise/images/create-instance.png new file mode 100644 index 00000000..3b3c0c21 Binary files /dev/null and b/docs/development/devtools/pairwise/images/create-instance.png differ diff --git a/docs/development/devtools/pairwise/images/sdc_compose_acm.png b/docs/development/devtools/pairwise/images/sdc_compose_acm.png new file mode 100644 index 00000000..3bdc9305 Binary files /dev/null and b/docs/development/devtools/pairwise/images/sdc_compose_acm.png differ diff --git a/docs/development/devtools/pairwise/images/sdc_create_acm.png b/docs/development/devtools/pairwise/images/sdc_create_acm.png new file mode 100644 index 00000000..f60492bf Binary files /dev/null and b/docs/development/devtools/pairwise/images/sdc_create_acm.png differ diff --git a/docs/development/devtools/pairwise/images/sdc_create_element.png b/docs/development/devtools/pairwise/images/sdc_create_element.png new file mode 100644 index 00000000..42d28b3e Binary files /dev/null and b/docs/development/devtools/pairwise/images/sdc_create_element.png differ diff --git a/docs/development/devtools/pairwise/images/sdc_create_participant.png b/docs/development/devtools/pairwise/images/sdc_create_participant.png new file mode 100644 index 00000000..4178127f Binary files /dev/null and b/docs/development/devtools/pairwise/images/sdc_create_participant.png differ diff --git a/docs/development/devtools/pairwise/images/sdc_distribute.png b/docs/development/devtools/pairwise/images/sdc_distribute.png new file mode 100644 index 00000000..cffffaed Binary files /dev/null and b/docs/development/devtools/pairwise/images/sdc_distribute.png differ diff --git a/docs/development/devtools/pairwise/images/sdc_element_props.png b/docs/development/devtools/pairwise/images/sdc_element_props.png new file mode 100644 index 00000000..f2227465 Binary files /dev/null and b/docs/development/devtools/pairwise/images/sdc_element_props.png differ diff --git a/docs/development/devtools/pairwise/images/sdc_tosca.png b/docs/development/devtools/pairwise/images/sdc_tosca.png new file mode 100644 index 00000000..eb881581 Binary files /dev/null and b/docs/development/devtools/pairwise/images/sdc_tosca.png differ diff --git a/docs/development/devtools/pairwise/images/update-instance.png b/docs/development/devtools/pairwise/images/update-instance.png new file mode 100644 index 00000000..fa1ee095 Binary files /dev/null and b/docs/development/devtools/pairwise/images/update-instance.png differ diff --git a/docs/development/devtools/pairwise/policy-cds.rst b/docs/development/devtools/pairwise/policy-cds.rst new file mode 100644 index 00000000..09b8f144 --- /dev/null +++ b/docs/development/devtools/pairwise/policy-cds.rst @@ -0,0 +1,135 @@ +.. This work is licensed under a +.. Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 + +.. _policy-cds-pairwise-testing-label: + +.. toctree:: + :maxdepth: 2 + +Policy <-> CDS +~~~~~~~~~~~~~~ + +The pairwise testing is executed against a default ONAP installation as per OOM charts. +Apex-PDP or Drools-PDP engine interacts with CDS to execute an Automation Composition action. +This test verifies the interaction between Policy and CDS to make sure the contract works as expected. + +General Setup +************* + +The kubernetes installation will allocate all onap components across multiple worker node VMs. +The normal worker VM hosting onap components has the following spec: + +- 16GB RAM +- 8 VCPU +- 160GB Ephemeral Disk + + +The ONAP components used during the pairwise tests are: + +- AAI for creating dummy VNF & PNF for testing purpose. +- CDS for publishing the blueprints & triggering the actions. +- DMaaP for the communication between components. +- Policy API to perform CRUD of policies. +- Policy PAP to perform runtime administration (deploy/undeploy/status/statistics/etc). +- Policy Apex-PDP to execute policies for both VNF & PNF scenarios. +- Policy Drools-PDP to execute policies for both VNF & PNF scenarios. +- Policy Xacml-PDP to execute decisions for guard requests. + + +Testing procedure +***************** + +The test set is focused on the following use cases: + +- End to end testing of a sample VNF based policy using Apex-PDP & Drools-PDP. +- End to end testing of a sample PNF based policy using Apex-PDP & Drools-PDP. + +Creation of VNF & PNF in AAI +---------------------------- +In order for PDP engines to fetch the resource details from AAI during runtime execution, we need to create dummy VNF & PNF entities in AAI. +In a real Automation Composition flow, the entities in AAI will be either created during orchestration phase or provisioned in AAI separately. + +Download & execute the steps in postman collection for creating the entities along with its dependencies. +The steps need to be performed sequentially one after another. And no input is required from user. + +:download:`Create VNF & PNF in AAI ` + +Make sure to skip the delete VNF & PNF steps. + + +Publish Blueprints in CDS +------------------------- +In order for PDP engines to trigger an action in CDS during runtime execution, we need to publish relevant blueprints in CDS. + +Download the zip files containing the blueprint for VNF & PNF specific actions. + +:download:`VNF Test CBA ` +:download:`PNF Test CBA ` + +Download & execute the steps in postman collection for publishing the blueprints in CDS. +In the enrich & publish CBA step, provide the previously downloaded zip file one by one. +The execute steps are provided to verify that the blueprints are working as expected. + +:download:`Publish Blueprints in CDS ` + +Make sure to skip the delete CBA step. + + +Apex-PDP VNF & PNF testing +-------------------------- +The below provided postman collection is prepared to have end to end testing experience of apex-pdp engine. +Including both VNF & PNF scenarios. +List of steps covered in the postman collection: + +- Create & Verify VNF & PNF policies as per policy type supported by apex-pdp. +- Deploy both VNF & PNF policies to apex-pdp engine. +- Query PdpGroup at multiple stages to verify current set of policies deployed. +- Fetch policy status at multiple stages to verify policy deployment & undeployment status. +- Fetch policy audit information at multiple stages to verify policy deployment & undeployment operations. +- Fetch PDP Statistics at multiple stages to verify deployment, undeployment & execution counts. +- Send onset events to DMaaP for triggering policies to test both success & failure secnarios. +- Read policy notifications from DMaaP to verify policy execution. +- Undeploy both VNF & PNF policies from apex-pdp engine. +- Delete both VNF & PNF policies at the end. + +Download & execute the steps in postman collection. +The steps need to be performed sequentially one after another. And no input is required from user. + +:download:`Apex-PDP VNF & PNF Testing ` + +Make sure to wait for 2 minutes (the default heartbeat interval) to verify PDP Statistics. + +Drools-PDP VNF & PNF testing +---------------------------- +The below provided postman collection is prepared to have end to end testing experience of drools-pdp engine. +Including both VNF & PNF scenarios. +List of steps covered in the postman collection: + +- Create & Verify VNF & PNF policies as per policy type supported by drools-pdp. +- Deploy both VNF & PNF policies to drools-pdp engine. +- Query PdpGroup at multiple stages to verify current set of policies deployed. +- Fetch policy status at multiple stages to verify policy deployment & undeployment status. +- Fetch policy audit information at multiple stages to verify policy deployment & undeployment operations. +- Fetch PDP Statistics at multiple stages to verify deployment, undeployment & execution counts. +- Send onset events to DMaaP for triggering policies to test both success & failure secnarios. +- Read policy notifications from DMaaP to verify policy execution. +- Undeploy both VNF & PNF policies from drools-pdp engine. +- Delete both VNF & PNF policies at the end. + +Download & execute the steps in postman collection. +The steps need to be performed sequentially one after another. And no input is required from user. + +:download:`Drools-PDP VNF & PNF Testing ` + +Make sure to wait for 2 minutes (the default heartbeat interval) to verify PDP Statistics. + + +Delete Blueprints in CDS +------------------------ +Use the previously downloaded CDS postman collection to delete the blueprints published in CDS for testing. + + +Delete VNF & PNF in AAI +----------------------- +Use the previously downloaded AAI postman collection to delete the VNF & PNF entities created in AAI for testing. diff --git a/docs/development/devtools/pairwise/tosca/pairwise-testing.yml b/docs/development/devtools/pairwise/tosca/pairwise-testing.yml new file mode 100644 index 00000000..108ea4a9 --- /dev/null +++ b/docs/development/devtools/pairwise/tosca/pairwise-testing.yml @@ -0,0 +1,3388 @@ +tosca_definitions_version: tosca_simple_yaml_1_3 +data_types: + onap.datatypes.ToscaConceptIdentifier: + derived_from: tosca.datatypes.Root + properties: + name: + type: string + required: true + version: + type: string + required: true + onap.datatype.controlloop.Target: + derived_from: tosca.datatypes.Root + description: Definition for a entity in A&AI to perform a control loop operation + on + properties: + targetType: + type: string + description: Category for the target type + required: true + constraints: + - valid_values: + - VNF + - VM + - VFMODULE + - PNF + entityIds: + type: map + description: | + Map of values that identify the resource. If none are provided, it is assumed that the + entity that generated the ONSET event will be the target. + required: false + metadata: + clamp_possible_values: ClampExecution:CSAR_RESOURCES + entry_schema: + type: string + onap.datatype.controlloop.Actor: + derived_from: tosca.datatypes.Root + description: An actor/operation/target definition + properties: + actor: + type: string + description: The actor performing the operation. + required: true + metadata: + clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor + operation: + type: string + description: The operation the actor is performing. + metadata: + clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation + required: true + target: + type: onap.datatype.controlloop.Target + description: The resource the operation should be performed on. + required: true + payload: + type: map + description: Name/value pairs of payload information passed by Policy to the + actor + required: false + metadata: + clamp_possible_values: ClampExecution:CDS/payload + entry_schema: + type: string + onap.datatype.controlloop.Operation: + derived_from: tosca.datatypes.Root + description: An operation supported by an actor + properties: + id: + type: string + description: Unique identifier for the operation + required: true + description: + type: string + description: A user-friendly description of the intent for the operation + required: false + operation: + type: onap.datatype.controlloop.Actor + description: The definition of the operation to be performed. + required: true + timeout: + type: integer + description: The amount of time for the actor to perform the operation. + required: true + retries: + type: integer + description: The number of retries the actor should attempt to perform the + operation. + required: true + default: 0 + success: + type: string + description: Points to the operation to invoke on success. A value of "final_success" + indicates and end to the operation. + required: false + default: final_success + failure: + type: string + description: Points to the operation to invoke on Actor operation failure. + required: false + default: final_failure + failure_timeout: + type: string + description: Points to the operation to invoke when the time out for the operation + occurs. + required: false + default: final_failure_timeout + failure_retries: + type: string + description: Points to the operation to invoke when the current operation + has exceeded its max retries. + required: false + default: final_failure_retries + failure_exception: + type: string + description: Points to the operation to invoke when the current operation + causes an exception. + required: false + default: final_failure_exception + failure_guard: + type: string + description: Points to the operation to invoke when the current operation + is blocked due to guard policy enforcement. + required: false + default: final_failure_guard + org.onap.datatypes.policy.clamp.acm.httpControlLoopElement.RestRequest: + version: 1.0.0 + derived_from: tosca.datatypes.Root + properties: + restRequestId: + type: onap.datatypes.ToscaConceptIdentifier + type_version: 0.0.0 + required: true + description: The name and version of a REST request to be sent to a REST endpoint + httpMethod: + type: string + required: true + constraints: + - valid_values: + - POST + - PUT + - GET + - DELETE + description: The REST method to use + path: + type: string + required: true + description: The path of the REST request relative to the base URL + body: + type: string + required: false + description: The body of the REST request for PUT and POST requests + expectedResponse: + type: integer + required: true + constraints: [] + description: THe expected HTTP status code for the REST request + org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity: + version: 1.0.0 + derived_from: tosca.datatypes.Root + properties: + configurationEntityId: + type: onap.datatypes.ToscaConceptIdentifier + type_version: 0.0.0 + required: true + description: The name and version of a Configuration Entity to be handled + by the HTTP Automation Composition Element + restSequence: + type: list + entry_schema: + type: org.onap.datatypes.policy.clamp.acm.httpControlLoopElement.RestRequest + type_version: 1.0.0 + description: A sequence of REST commands to send to the REST endpoint +policy_types: + onap.policies.Monitoring: + derived_from: tosca.policies.Root + description: a base policy type for all policies that govern monitoring provisioning + version: 1.0.0 + name: onap.policies.Monitoring + onap.policies.customPolicyType: + derived_from: tosca.policies.Root + description: a base policy type for all policies that govern monitoring provisioning + version: 1.0.0 + name: onap.policies.customPolicyType + onap.policies.controlloop.operational.Common: + derived_from: tosca.policies.Root + version: 1.0.0 + name: onap.policies.controlloop.operational.Common + description: | + Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant + Policy Types. This does NOT support the legacy Policy YAML policy type. + properties: + id: + type: string + description: The unique control loop id. + required: true + timeout: + type: integer + description: | + Overall timeout for executing all the operations. This timeout should equal or exceed the total + timeout for each operation listed. + required: true + abatement: + type: boolean + description: Whether an abatement event message will be expected for the control + loop from DCAE. + required: true + default: false + trigger: + type: string + description: Initial operation to execute upon receiving an Onset event message + for the Control Loop. + required: true + operations: + type: list + description: List of operations to be performed when Control Loop is triggered. + required: true + entry_schema: + type: onap.datatype.controlloop.Operation + onap.policies.controlloop.operational.common.Apex: + derived_from: onap.policies.controlloop.operational.Common + type_version: 1.0.0 + version: 1.0.0 + name: onap.policies.controlloop.operational.common.Apex + description: Operational policies for Apex PDP + properties: + engineServiceParameters: + type: string + description: The engine parameters like name, instanceCount, policy implementation, + parameters etc. + required: true + eventInputParameters: + type: string + description: The event input parameters. + required: true + eventOutputParameters: + type: string + description: The event output parameters. + required: true + javaProperties: + type: string + description: Name/value pairs of properties to be set for APEX if needed. + required: false + +node_types: + org.onap.policy.clamp.acm.Participant: + version: 1.0.1 + derived_from: tosca.nodetypes.Root + properties: + provider: + type: string + required: false + org.onap.policy.clamp.acm.AutomationCompositionElement: + version: 1.0.1 + derived_from: tosca.nodetypes.Root + properties: + provider: + type: string + required: false + metadata: + common: true + description: Specifies the organization that provides the automation composition element + participant_id: + type: onap.datatypes.ToscaConceptIdentifier + required: true + metadata: + common: true + participantType: + type: onap.datatypes.ToscaConceptIdentifier + required: true + metadata: + common: true + description: The identity of the participant type that hosts this type of Automation Composition Element + startPhase: + type: integer + required: false + constraints: + - greater_or_equal: 0 + metadata: + common: true + description: A value indicating the start phase in which this automation composition element will be started, the + first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped + in reverse start phase order. Automation Composition Elements with the same start phase are started and + stopped simultaneously + uninitializedToPassiveTimeout: + type: integer + required: false + constraints: + - greater_or_equal: 0 + default: 60 + metadata: + common: true + description: The maximum time in seconds to wait for a state chage from uninitialized to passive + passiveToRunningTimeout: + type: integer + required: false + constraints: + - greater_or_equal: 0 + default: 60 + metadata: + common: true + description: The maximum time in seconds to wait for a state chage from passive to running + runningToPassiveTimeout: + type: integer + required: false + constraints: + - greater_or_equal: 0 + default: 60 + metadata: + common: true + description: The maximum time in seconds to wait for a state chage from running to passive + passiveToUninitializedTimeout: + type: integer + required: false + constraints: + - greater_or_equal: 0 + default: 60 + metadata: + common: true + description: The maximum time in seconds to wait for a state chage from passive to uninitialized + org.onap.policy.clamp.acm.AutomationComposition: + version: 1.0.1 + derived_from: tosca.nodetypes.Root + properties: + provider: + type: string + required: false + metadata: + common: true + description: Specifies the organization that provides the automation composition element + elements: + type: list + required: true + metadata: + common: true + entry_schema: + type: onap.datatypes.ToscaConceptIdentifier + description: Specifies a list of automation composition element definitions that make up this automation composition definition + org.onap.policy.clamp.acm.PolicyAutomationCompositionElement: + version: 1.0.1 + derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement + properties: + policy_type_id: + type: onap.datatypes.ToscaConceptIdentifier + required: true + policy_id: + type: onap.datatypes.ToscaConceptIdentifier + required: false + org.onap.policy.clamp.acm.CDSAutomationCompositionElement: + version: 1.0.1 + derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement + properties: + cds_blueprint_id: + type: onap.datatypes.ToscaConceptIdentifier + required: true + org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement: + version: 1.0.1 + derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement + properties: + chart: + type: string + required: true + configs: + type: list + required: false + requirements: + type: string + required: false + templates: + type: list + required: false + entry_schema: + values: + type: string + required: true + org.onap.policy.clamp.acm.HttpAutomationCompositionElement: + version: 1.0.1 + derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement + properties: + baseUrl: + type: string + required: true + description: The base URL to be prepended to each path, identifies the host for the REST endpoints. + httpHeaders: + type: map + required: false + entry_schema: + type: string + description: HTTP headers to send on REST requests + configurationEntities: + type: map + required: true + entry_schema: + type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity + type_version: 1.0.0 + description: The connfiguration entities the Automation Composition Element is managing and their associated REST requests + +topology_template: + inputs: + pmsh_operational_policy: + type: onap.datatypes.ToscaConceptIdentifier + description: The ID of the PMSH operational policy to use + default: + name: operational.apex.pmcontrol + version: 1.0.0 + node_templates: + org.onap.policy.clamp.acm.PolicyParticipant: + version: 2.3.1 + type: org.onap.policy.clamp.acm.Participant + type_version: 1.0.1 + description: Participant for DCAE microservices + properties: + provider: ONAP + org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement: + version: 1.2.3 + type: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement + type_version: 1.0.1 + description: Automation composition element for the operational policy for Performance Management Subscription Handling + properties: + provider: Ericsson + participant_id: + name: org.onap.PM_Policy + version: 1.0.0 + participantType: + name: org.onap.policy.clamp.acm.PolicyParticipant + version: 2.3.1 + policy_type_id: + name: onap.policies.operational.pm-subscription-handler + version: 1.0.0 + policy_id: + get_input: pmsh_operational_policy + + + org.onap.policy.clamp.acm.KubernetesParticipant: + version: 2.3.4 + type: org.onap.policy.clamp.acm.Participant + type_version: 1.0.1 + description: Participant for K8S + properties: + provider: ONAP + org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement: + # Chart from new repository + version: 1.2.3 + type: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement + type_version: 1.0.1 + description: Automation composition element for the K8S microservice for PMSH + properties: + provider: ONAP + participant_id: + name: K8sParticipant0 + version: 1.0.0 + participantType: + name: org.onap.policy.clamp.acm.KubernetesParticipant + version: 2.3.4 + chart: + chartId: + name: dcae-pmsh + version: 10.0.0 + namespace: onap + releaseName: onap-dcae-pmsh + repository: + repoName: chartmuseum + address: http://chart-museum:80 + userName: onapinitializer + password: demo123456! + overrideParams: + global.masterPassword: test + org.onap.policy.clamp.acm.HttpParticipant: + version: 2.3.4 + type: org.onap.policy.clamp.acm.Participant + type_version: 1.0.1 + description: Participant for Http requests + properties: + provider: ONAP + org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement: + # Consul http config for PMSH. + version: 1.2.3 + type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement + type_version: 1.0.1 + description: Automation composition element for the http requests of PMSH microservice + properties: + provider: ONAP + participant_id: + name: HttpParticipant0 + version: 1.0.0 + participantType: + name: org.onap.policy.clamp.acm.HttpParticipant + version: 2.3.4 + uninitializedToPassiveTimeout: 180 + startPhase: 1 + baseUrl: https://dcae-pmsh:8443 + httpHeaders: + Content-Type: application/json + configurationEntities: + - configurationEntityId: + name: entity1 + version: 1.0.1 + restSequence: + - restRequestId: + name: request1 + version: 1.0.1 + httpMethod: POST + path: subscription + body: '{ + "subscription":{ + "subscriptionName":"new_sub_01", + "operationalPolicyName":"pmsh-operational-policy", + "controlLoopName":"controlLoop-name", + "nfFilter":{ + "nfNames":[ + "^pnf*" + ], + "modelInvariantIDs":[ + "7129e420-d396-4efb-af02-6b83499b12f5" + ], + "modelVersionIDs":[ + "e80a6ae3-cafd-4d24-850d-e14c084a5ca7" + ], + "modelNames":[ + "pnf_134" + ] + }, + "measurementGroups":[ + { + "measurementGroup":{ + "measurementGroupName":"msgroup_01", + "administrativeState":"UNLOCKED", + "fileBasedGP":15, + "fileLocation":"/pm/pm.xml", + "measurementTypes":[ + { + "measurementType":"EutranCell.*" + }, + { + "measurementType":"EutranCellRelation.pmCounter1" + }, + { + "measurementType":"EutranCellRelation.pmCounter2" + } + ], + "managedObjectDNsBasic":[ + { + "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1" + }, + { + "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter2" + }, + { + "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter3" + } + ] + } + } + ] + } + }' + expectedResponse: 201 + + + org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition: + version: 1.2.3 + type: org.onap.policy.clamp.acm.AutomationComposition + type_version: 1.0.1 + description: Automation composition for Hello World + properties: + provider: ONAP + elements: + - name: org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement + version: 1.2.3 + - name: org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement + version: 1.2.3 + - name: org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement + version: 1.2.3 + policies: + - operational.apex.pmcontrol: + type: onap.policies.controlloop.operational.common.Apex + type_version: 1.0.0 + version: 1.0.0 + properties: + engineServiceParameters: + name: MyApexEngine + version: 0.0.1 + id: 45 + instanceCount: 2 + deploymentPort: 12561 + engineParameters: + executorParameters: + JAVASCRIPT: + parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters + contextParameters: + parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters + schemaParameters: + Avro: + parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters + Java: + parameterClassName: org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters + jsonAdapters: + Instant: + adaptedClass: java.time.Instant + adaptorClass: org.onap.policy.common.gson.InstantAsMillisTypeAdapter + policy_type_impl: + apexPolicyModel: + key: + name: PMControlPolicy + version: 0.0.1 + keyInformation: + key: + name: PMControlPolicy_KeyInfo + version: 0.0.1 + keyInfoMap: + entry: + - key: + name: CDSActionIdentifiersType + version: 0.0.1 + value: + key: + name: CDSActionIdentifiersType + version: 0.0.1 + UUID: 6e5fa19b-14df-37e3-a4ae-8c537e861a82 + description: Generated description for concept referred to by + key "CDSActionIdentifiersType:0.0.1" + - key: + name: CDSCreateResponseEvent + version: 0.0.1 + value: + key: + name: CDSCreateResponseEvent + version: 0.0.1 + UUID: 14b29e38-ac75-3273-aa4e-8583c0aa7dad + description: Generated description for concept referred to by + key "CDSCreateResponseEvent:0.0.1" + - key: + name: CDSCreateResponsePayloadType + version: 0.0.1 + value: + key: + name: CDSCreateResponsePayloadType + version: 0.0.1 + UUID: 04573f8f-e772-30a5-b1d9-d7318d4a1e13 + description: Generated description for concept referred to by + key "CDSCreateResponsePayloadType:0.0.1" + - key: + name: CDSCreateResponsePolicy + version: 0.0.1 + value: + key: + name: CDSCreateResponsePolicy + version: 0.0.1 + UUID: e126c965-fc09-3bfe-8f55-70f380a4a49c + description: Generated description for concept referred to by + key "CDSCreateResponsePolicy:0.0.1" + - key: + name: CDSCreateResponseTask + version: 0.0.1 + value: + key: + name: CDSCreateResponseTask + version: 0.0.1 + UUID: 6165ee82-afd2-3aab-a517-f00b3f2461d2 + description: Generated description for concept referred to by + key "CDSCreateResponseTask:0.0.1" + - key: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + value: + key: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + UUID: 8350ac5e-c157-38b9-9614-a0f93a830e60 + description: Generated description for concept referred to by + key "CDSCreateSubscriptionPayloadType:0.0.1" + - key: + name: CDSCreateSubscriptionRequestEvent + version: 0.0.1 + value: + key: + name: CDSCreateSubscriptionRequestEvent + version: 0.0.1 + UUID: cfa325ba-226b-3a31-9183-ec43e2b6e9a2 + description: Generated description for concept referred to by + key "CDSCreateSubscriptionRequestEvent:0.0.1" + - key: + name: CDSDeleteResponseEvent + version: 0.0.1 + value: + key: + name: CDSDeleteResponseEvent + version: 0.0.1 + UUID: 8be9c0fa-7437-3841-aff2-b3cec6ae3bd8 + description: Generated description for concept referred to by + key "CDSDeleteResponseEvent:0.0.1" + - key: + name: CDSDeleteResponsePayloadType + version: 0.0.1 + value: + key: + name: CDSDeleteResponsePayloadType + version: 0.0.1 + UUID: 3fbfe0c9-152e-34d3-a504-09cd13c058d0 + description: Generated description for concept referred to by + key "CDSDeleteResponsePayloadType:0.0.1" + - key: + name: CDSDeleteResponsePolicy + version: 0.0.1 + value: + key: + name: CDSDeleteResponsePolicy + version: 0.0.1 + UUID: a780251c-edd5-3132-b865-04313246b43c + description: Generated description for concept referred to by + key "CDSDeleteResponsePolicy:0.0.1" + - key: + name: CDSDeleteResponseTask + version: 0.0.1 + value: + key: + name: CDSDeleteResponseTask + version: 0.0.1 + UUID: afce4555-3aa3-3521-a7d8-ee8cdf0d3efc + description: Generated description for concept referred to by + key "CDSDeleteResponseTask:0.0.1" + - key: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + value: + key: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + UUID: 12658406-9147-3c9d-a38c-5ad5e30b092b + description: Generated description for concept referred to by + key "CDSDeleteSubscriptionPayloadType:0.0.1" + - key: + name: CDSDeleteSubscriptionRequestEvent + version: 0.0.1 + value: + key: + name: CDSDeleteSubscriptionRequestEvent + version: 0.0.1 + UUID: 24380c95-9289-36e6-8cbf-0edefa15ccd9 + description: Generated description for concept referred to by + key "CDSDeleteSubscriptionRequestEvent:0.0.1" + - key: + name: CDSRequestCommonHeaderType + version: 0.0.1 + value: + key: + name: CDSRequestCommonHeaderType + version: 0.0.1 + UUID: 35590ac0-062c-39f1-8786-b4ff716e30b1 + description: Generated description for concept referred to by + key "CDSRequestCommonHeaderType:0.0.1" + - key: + name: CDSResponseCommonHeaderType + version: 0.0.1 + value: + key: + name: CDSResponseCommonHeaderType + version: 0.0.1 + UUID: dd7e1805-885a-350b-aaf9-ed541321ae3c + description: Generated description for concept referred to by + key "CDSResponseCommonHeaderType:0.0.1" + - key: + name: CDSResponseStatusEvent + version: 0.0.1 + value: + key: + name: CDSResponseStatusEvent + version: 0.0.1 + UUID: 7986e21b-32f7-302e-9554-31f21b673493 + description: Generated description for concept referred to by + key "CDSResponseStatusEvent:0.0.1" + - key: + name: CDSResponseStatusType + version: 0.0.1 + value: + key: + name: CDSResponseStatusType + version: 0.0.1 + UUID: 92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa + description: Generated description for concept referred to by + key "CDSResponseStatusType:0.0.1" + - key: + name: CreateSubscriptionPayloadEvent + version: 0.0.1 + value: + key: + name: CreateSubscriptionPayloadEvent + version: 0.0.1 + UUID: 92162397-1a8e-3a3f-a469-d2af7700af4a + description: Generated description for concept referred to by + key "CreateSubscriptionPayloadEvent:0.0.1" + - key: + name: CreateSubscriptionPayloadTask + version: 0.0.1 + value: + key: + name: CreateSubscriptionPayloadTask + version: 0.0.1 + UUID: bc0c69f0-52ed-38ea-b468-ae4a6fd1730d + description: Generated description for concept referred to by + key "CreateSubscriptionPayloadTask:0.0.1" + - key: + name: CreateSubscriptionRequestTask + version: 0.0.1 + value: + key: + name: CreateSubscriptionRequestTask + version: 0.0.1 + UUID: 89cb75e9-f06c-30d3-b4ff-698d45f63869 + description: Generated description for concept referred to by + key "CreateSubscriptionRequestTask:0.0.1" + - key: + name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + value: + key: + name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + UUID: 994fa441-04ab-33bb-832d-1cd12ab5d074 + description: Generated description for concept referred to by + key "DeleteSubscriptionPayloadEvent:0.0.1" + - key: + name: DeleteSubscriptionPayloadTask + version: 0.0.1 + value: + key: + name: DeleteSubscriptionPayloadTask + version: 0.0.1 + UUID: 0f519117-5fea-3e4b-941f-8f778100465f + description: Generated description for concept referred to by + key "DeleteSubscriptionPayloadTask:0.0.1" + - key: + name: DeleteSubscriptionRequestTask + version: 0.0.1 + value: + key: + name: DeleteSubscriptionRequestTask + version: 0.0.1 + UUID: acb772fe-d442-39e3-98f9-b1080caf4150 + description: Generated description for concept referred to by + key "DeleteSubscriptionRequestTask:0.0.1" + - key: + name: MRResponseEvent + version: 0.0.1 + value: + key: + name: MRResponseEvent + version: 0.0.1 + UUID: 13c747a3-6bae-3bcf-9c80-b152e01dc194 + description: Generated description for concept referred to by + key "MRResponseEvent:0.0.1" + - key: + name: PMControlPolicy + version: 0.0.1 + value: + key: + name: PMControlPolicy + version: 0.0.1 + UUID: acf1e55c-7bc5-3bd5-975a-0ca54afcd8a4 + description: Generated description for concept referred to by + key "PMControlPolicy:0.0.1" + - key: + name: PMControlPolicy_Albums + version: 0.0.1 + value: + key: + name: PMControlPolicy_Albums + version: 0.0.1 + UUID: b38ad204-c2c8-32f4-9b5a-dda0aeb0145b + description: Generated description for concept referred to by + key "PMControlPolicy_Albums:0.0.1" + - key: + name: PMControlPolicy_Events + version: 0.0.1 + value: + key: + name: PMControlPolicy_Events + version: 0.0.1 + UUID: be3871a0-c42a-3113-a066-82d192840eca + description: Generated description for concept referred to by + key "PMControlPolicy_Events:0.0.1" + - key: + name: PMControlPolicy_KeyInfo + version: 0.0.1 + value: + key: + name: PMControlPolicy_KeyInfo + version: 0.0.1 + UUID: ced37634-28a4-3178-b7f6-2980794927b0 + description: Generated description for concept referred to by + key "PMControlPolicy_KeyInfo:0.0.1" + - key: + name: PMControlPolicy_Policies + version: 0.0.1 + value: + key: + name: PMControlPolicy_Policies + version: 0.0.1 + UUID: be3d180d-ef9c-3a75-8e9c-84271a038bed + description: Generated description for concept referred to by + key "PMControlPolicy_Policies:0.0.1" + - key: + name: PMControlPolicy_Schemas + version: 0.0.1 + value: + key: + name: PMControlPolicy_Schemas + version: 0.0.1 + UUID: e61973f1-189c-39e5-82f6-0d3afe298a20 + description: Generated description for concept referred to by + key "PMControlPolicy_Schemas:0.0.1" + - key: + name: PMControlPolicy_Tasks + version: 0.0.1 + value: + key: + name: PMControlPolicy_Tasks + version: 0.0.1 + UUID: 5658adb3-2962-30a3-a241-fae75bb8eb4a + description: Generated description for concept referred to by + key "PMControlPolicy_Tasks:0.0.1" + - key: + name: PMSubscriptionAlbum + version: 0.0.1 + value: + key: + name: PMSubscriptionAlbum + version: 0.0.1 + UUID: c2bd6f0d-6854-317a-9be2-97c08338428c + description: Generated description for concept referred to by + key "PMSubscriptionAlbum:0.0.1" + - key: + name: PMSubscriptionOutputEvent + version: 0.0.1 + value: + key: + name: PMSubscriptionOutputEvent + version: 0.0.1 + UUID: 992b7819-9f69-3aa0-bb0f-6e45ea15ce05 + description: Generated description for concept referred to by + key "PMSubscriptionOutputEvent:0.0.1" + - key: + name: PMSubscriptionType + version: 0.0.1 + value: + key: + name: PMSubscriptionType + version: 0.0.1 + UUID: 73c1c397-4fc3-357f-93b6-a8ad707fbaae + description: Generated description for concept referred to by + key "PMSubscriptionType:0.0.1" + - key: + name: ReceiveEventPolicy + version: 0.0.1 + value: + key: + name: ReceiveEventPolicy + version: 0.0.1 + UUID: 568b7345-9de1-36d3-b6a3-9b857e6809a1 + description: Generated description for concept referred to by + key "ReceiveEventPolicy:0.0.1" + - key: + name: ReceiveSubscriptionTask + version: 0.0.1 + value: + key: + name: ReceiveSubscriptionTask + version: 0.0.1 + UUID: f596afc8-100c-35eb-92c8-352355ea457d + description: Generated description for concept referred to by + key "ReceiveSubscriptionTask:0.0.1" + - key: + name: SimpleIntType + version: 0.0.1 + value: + key: + name: SimpleIntType + version: 0.0.1 + UUID: 153791fd-ae0a-36a7-88a5-309a7936415d + description: Generated description for concept referred to by + key "SimpleIntType:0.0.1" + - key: + name: SimpleStringType + version: 0.0.1 + value: + key: + name: SimpleStringType + version: 0.0.1 + UUID: 8a4957cf-9493-3a76-8c22-a208e23259af + description: Generated description for concept referred to by + key "SimpleStringType:0.0.1" + - key: + name: SubscriptionStatusType + version: 0.0.1 + value: + key: + name: SubscriptionStatusType + version: 0.0.1 + UUID: 597643b1-9db1-31ce-85d0-e1c63c43b30b + description: Generated description for concept referred to by + key "SubscriptionStatusType:0.0.1" + - key: + name: SubscriptionType + version: 0.0.1 + value: + key: + name: SubscriptionType + version: 0.0.1 + UUID: 184547bb-7d64-3cb2-a273-d7185102c5ce + description: Generated description for concept referred to by + key "SubscriptionType:0.0.1" + - key: + name: UUIDType + version: 0.0.1 + value: + key: + name: UUIDType + version: 0.0.1 + UUID: 6a8cc68e-dfc8-3403-9c6d-071c886b319c + description: Generated description for concept referred to by + key "UUIDType:0.0.1" + - key: + name: pmsh-operational-policy + version: 0.0.1 + value: + key: + name: pmsh-operational-policy + version: 0.0.1 + UUID: fdf2c9ff-6422-3ea6-b6b6-49b12116265d + description: Generated description for concept referred to by + key "pmsh-operational-policy:0.0.1" + policies: + key: + name: PMControlPolicy_Policies + version: 0.0.1 + policyMap: + entry: + - key: + name: CDSCreateResponsePolicy + version: 0.0.1 + value: + policyKey: + name: CDSCreateResponsePolicy + version: 0.0.1 + template: Freestyle + state: + entry: + - key: CDSCreateResponseState + value: + stateKey: + parentKeyName: CDSCreateResponsePolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: CDSCreateResponseState + trigger: + name: CDSCreateResponseEvent + version: 0.0.1 + stateOutputs: + entry: + - key: ResponseOutput + value: + key: + parentKeyName: CDSCreateResponsePolicy + parentKeyVersion: 0.0.1 + parentLocalName: CDSCreateResponseState + localName: ResponseOutput + outgoingEvent: + name: CDSResponseStatusEvent + version: 0.0.1 + outgoingEventReference: + - name: CDSResponseStatusEvent + version: 0.0.1 + nextState: + parentKeyName: 'NULL' + parentKeyVersion: 0.0.0 + parentLocalName: 'NULL' + localName: 'NULL' + contextAlbumReference: [ ] + taskSelectionLogic: + key: 'NULL' + logicFlavour: UNDEFINED + logic: '' + stateFinalizerLogicMap: + entry: [ ] + defaultTask: + name: CDSCreateResponseTask + version: 0.0.1 + taskReferences: + entry: + - key: + name: CDSCreateResponseTask + version: 0.0.1 + value: + key: + parentKeyName: CDSCreateResponsePolicy + parentKeyVersion: 0.0.1 + parentLocalName: CDSCreateResponseState + localName: CDSCreateResponsePolicy + outputType: DIRECT + output: + parentKeyName: CDSCreateResponsePolicy + parentKeyVersion: 0.0.1 + parentLocalName: CDSCreateResponseState + localName: ResponseOutput + firstState: CDSCreateResponseState + - key: + name: CDSDeleteResponsePolicy + version: 0.0.1 + value: + policyKey: + name: CDSDeleteResponsePolicy + version: 0.0.1 + template: Freestyle + state: + entry: + - key: CDSDeleteResponseState + value: + stateKey: + parentKeyName: CDSDeleteResponsePolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: CDSDeleteResponseState + trigger: + name: CDSDeleteResponseEvent + version: 0.0.1 + stateOutputs: + entry: + - key: ResponseOutput + value: + key: + parentKeyName: CDSDeleteResponsePolicy + parentKeyVersion: 0.0.1 + parentLocalName: CDSDeleteResponseState + localName: ResponseOutput + outgoingEvent: + name: CDSResponseStatusEvent + version: 0.0.1 + outgoingEventReference: + - name: CDSResponseStatusEvent + version: 0.0.1 + nextState: + parentKeyName: 'NULL' + parentKeyVersion: 0.0.0 + parentLocalName: 'NULL' + localName: 'NULL' + contextAlbumReference: [ ] + taskSelectionLogic: + key: 'NULL' + logicFlavour: UNDEFINED + logic: '' + stateFinalizerLogicMap: + entry: [ ] + defaultTask: + name: CDSDeleteResponseTask + version: 0.0.1 + taskReferences: + entry: + - key: + name: CDSDeleteResponseTask + version: 0.0.1 + value: + key: + parentKeyName: CDSDeleteResponsePolicy + parentKeyVersion: 0.0.1 + parentLocalName: CDSDeleteResponseState + localName: CDSDeleteResponsePolicy + outputType: DIRECT + output: + parentKeyName: CDSDeleteResponsePolicy + parentKeyVersion: 0.0.1 + parentLocalName: CDSDeleteResponseState + localName: ResponseOutput + firstState: CDSDeleteResponseState + - key: + name: ReceiveEventPolicy + version: 0.0.1 + value: + policyKey: + name: ReceiveEventPolicy + version: 0.0.1 + template: Freestyle + state: + entry: + - key: CreateOrDeleteState + value: + stateKey: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: CreateOrDeleteState + trigger: + name: PMSubscriptionOutputEvent + version: 0.0.1 + stateOutputs: + entry: + - key: CreateSubscriptionPayload + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateOrDeleteState + localName: CreateSubscriptionPayload + outgoingEvent: + name: CreateSubscriptionPayloadEvent + version: 0.0.1 + outgoingEventReference: + - name: CreateSubscriptionPayloadEvent + version: 0.0.1 + nextState: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: CreateSubscription + - key: DeleteSubscriptionPayload + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateOrDeleteState + localName: DeleteSubscriptionPayload + outgoingEvent: + name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + outgoingEventReference: + - name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + nextState: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: DeleteSubscription + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskSelectionLogic: + key: TaskSelectionLogic + logicFlavour: JAVASCRIPT + logic: |- + /* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + executor.logger.info(executor.subject.id); + var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) + var changeType = pmSubscriptionInfo.get("changeType").toString() + executor.logger.info("Change Type is " + changeType) + if ("CREATE".equals(changeType)) { + executor.logger.info("Choosing to create a subscription") + executor.subject.getTaskKey("CreateSubscriptionPayloadTask").copyTo(executor.selectedTask); + } + else if ("DELETE".equals(changeType)) { + executor.logger.info("Choosing to delete a subscription") + executor.subject.getTaskKey("DeleteSubscriptionPayloadTask").copyTo(executor.selectedTask); + } + returnValue = executor.isTrue; + true; + stateFinalizerLogicMap: + entry: [ ] + defaultTask: + name: CreateSubscriptionPayloadTask + version: 0.0.1 + taskReferences: + entry: + - key: + name: CreateSubscriptionPayloadTask + version: 0.0.1 + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateOrDeleteState + localName: ReceiveEventPolicy + outputType: DIRECT + output: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateOrDeleteState + localName: CreateSubscriptionPayload + - key: + name: DeleteSubscriptionPayloadTask + version: 0.0.1 + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateOrDeleteState + localName: ReceiveEventPolicy + outputType: DIRECT + output: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateOrDeleteState + localName: DeleteSubscriptionPayload + - key: CreateSubscription + value: + stateKey: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: CreateSubscription + trigger: + name: CreateSubscriptionPayloadEvent + version: 0.0.1 + stateOutputs: + entry: + - key: IssueCreateSubscriptionRequestOutput + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateSubscription + localName: IssueCreateSubscriptionRequestOutput + outgoingEvent: + name: CDSCreateSubscriptionRequestEvent + version: 0.0.1 + outgoingEventReference: + - name: CDSCreateSubscriptionRequestEvent + version: 0.0.1 + nextState: + parentKeyName: 'NULL' + parentKeyVersion: 0.0.0 + parentLocalName: 'NULL' + localName: 'NULL' + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskSelectionLogic: + key: 'NULL' + logicFlavour: UNDEFINED + logic: '' + stateFinalizerLogicMap: + entry: [ ] + defaultTask: + name: CreateSubscriptionRequestTask + version: 0.0.1 + taskReferences: + entry: + - key: + name: CreateSubscriptionRequestTask + version: 0.0.1 + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateSubscription + localName: ReceiveEventPolicy + outputType: DIRECT + output: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: CreateSubscription + localName: IssueCreateSubscriptionRequestOutput + - key: DeleteSubscription + value: + stateKey: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: DeleteSubscription + trigger: + name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + stateOutputs: + entry: + - key: IssueDeleteSubscriptionRequestOutput + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: DeleteSubscription + localName: IssueDeleteSubscriptionRequestOutput + outgoingEvent: + name: CDSDeleteSubscriptionRequestEvent + version: 0.0.1 + outgoingEventReference: + - name: CDSDeleteSubscriptionRequestEvent + version: 0.0.1 + nextState: + parentKeyName: 'NULL' + parentKeyVersion: 0.0.0 + parentLocalName: 'NULL' + localName: 'NULL' + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskSelectionLogic: + key: 'NULL' + logicFlavour: UNDEFINED + logic: '' + stateFinalizerLogicMap: + entry: [ ] + defaultTask: + name: DeleteSubscriptionRequestTask + version: 0.0.1 + taskReferences: + entry: + - key: + name: DeleteSubscriptionRequestTask + version: 0.0.1 + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: DeleteSubscription + localName: ReceiveEventPolicy + outputType: DIRECT + output: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: DeleteSubscription + localName: IssueDeleteSubscriptionRequestOutput + - key: ReceiveSubscriptionState + value: + stateKey: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: ReceiveSubscriptionState + trigger: + name: pmsh-operational-policy + version: 0.0.1 + stateOutputs: + entry: + - key: ReceivePMSubscriptionOutput + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: ReceiveSubscriptionState + localName: ReceivePMSubscriptionOutput + outgoingEvent: + name: PMSubscriptionOutputEvent + version: 0.0.1 + outgoingEventReference: + - name: PMSubscriptionOutputEvent + version: 0.0.1 + nextState: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: 'NULL' + localName: CreateOrDeleteState + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskSelectionLogic: + key: 'NULL' + logicFlavour: UNDEFINED + logic: '' + stateFinalizerLogicMap: + entry: [ ] + defaultTask: + name: ReceiveSubscriptionTask + version: 0.0.1 + taskReferences: + entry: + - key: + name: ReceiveSubscriptionTask + version: 0.0.1 + value: + key: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: ReceiveSubscriptionState + localName: ReceiveEventPolicy + outputType: DIRECT + output: + parentKeyName: ReceiveEventPolicy + parentKeyVersion: 0.0.1 + parentLocalName: ReceiveSubscriptionState + localName: ReceivePMSubscriptionOutput + firstState: ReceiveSubscriptionState + tasks: + key: + name: PMControlPolicy_Tasks + version: 0.0.1 + taskMap: + entry: + - key: + name: CDSCreateResponseTask + version: 0.0.1 + value: + key: + name: CDSCreateResponseTask + version: 0.0.1 + inputEvent: + key: + name: CDSCreateResponseEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: CDS + target: APEX + parameter: + entry: + - key: actionIdentifiers + value: + key: actionIdentifiers + fieldSchemaKey: + name: CDSActionIdentifiersType + version: 0.0.1 + optional: false + - key: commonHeader + value: + key: commonHeader + fieldSchemaKey: + name: CDSResponseCommonHeaderType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSCreateResponsePayloadType + version: 0.0.1 + optional: false + - key: status + value: + key: status + fieldSchemaKey: + name: CDSResponseStatusType + version: 0.0.1 + optional: false + outputEvents: + entry: + - key: CDSResponseStatusEvent + value: + key: + name: CDSResponseStatusEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: DCAE + parameter: + entry: + - key: status + value: + key: status + fieldSchemaKey: + name: SubscriptionStatusType + version: 0.0.1 + optional: false + taskParameters: + entry: [ ] + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskLogic: + key: TaskLogic + logicFlavour: JAVASCRIPT + logic: |- + /* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + executor.logger.info(executor.subject.id); + var commonHeader = executor.inFields.get("commonHeader") + var response = executor.inFields.get("payload") + var albumID = commonHeader.get("requestId") + var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString()); + var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance(); + var changeType = pmSubscriptionInfo.get("changeType").toUpperCase() + responseStatus.put("nfName", pmSubscriptionInfo.get("nfName")) + responseStatus.put("changeType", pmSubscriptionInfo.get("changeType")) + if ("CREATE".equals(changeType)) { + responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName")) + responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("subscription").get("measurementGroup").get("measurementGroupName")) + } + else if ("DELETE".equals(changeType)) { + responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName")) + responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName")) + } + var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status") + executor.logger.info("RESPONSE STATUS = " + status) + if(status == "success") { + responseStatus.put("message", "success") + } else { + responseStatus.put("message", "failed") + } + executor.outFields.put("status", responseStatus) + returnValue = executor.isTrue; + true; + - key: + name: CDSDeleteResponseTask + version: 0.0.1 + value: + key: + name: CDSDeleteResponseTask + version: 0.0.1 + inputEvent: + key: + name: CDSDeleteResponseEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: CDS + target: APEX + parameter: + entry: + - key: actionIdentifiers + value: + key: actionIdentifiers + fieldSchemaKey: + name: CDSActionIdentifiersType + version: 0.0.1 + optional: false + - key: commonHeader + value: + key: commonHeader + fieldSchemaKey: + name: CDSResponseCommonHeaderType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSDeleteResponsePayloadType + version: 0.0.1 + optional: false + - key: status + value: + key: status + fieldSchemaKey: + name: CDSResponseStatusType + version: 0.0.1 + optional: false + outputEvents: + entry: + - key: CDSResponseStatusEvent + value: + key: + name: CDSResponseStatusEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: DCAE + parameter: + entry: + - key: status + value: + key: status + fieldSchemaKey: + name: SubscriptionStatusType + version: 0.0.1 + optional: false + taskParameters: + entry: [ ] + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskLogic: + key: TaskLogic + logicFlavour: JAVASCRIPT + logic: |- + /* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + executor.logger.info(executor.subject.id); + var commonHeader = executor.inFields.get("commonHeader") + var response = executor.inFields.get("payload") + var albumID = commonHeader.get("requestId") + var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString()); + var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance(); + var changeType = pmSubscriptionInfo.get("changeType").toUpperCase() + responseStatus.put("nfName", pmSubscriptionInfo.get("nfName")) + responseStatus.put("changeType", pmSubscriptionInfo.get("changeType")) + if ("CREATE".equals(changeType)) { + responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName")) + responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("subscription").get("measurementGroup").get("measurementGroupName")) + } + else if ("DELETE".equals(changeType)) { + responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName")) + responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName")) + } + var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status") + executor.logger.info("RESPONSE STATUS = " + status) + if(status == "success") { + responseStatus.put("message", "success") + } else { + responseStatus.put("message", "failed") + } + executor.outFields.put("status", responseStatus) + returnValue = executor.isTrue; + true; + - key: + name: CreateSubscriptionPayloadTask + version: 0.0.1 + value: + key: + name: CreateSubscriptionPayloadTask + version: 0.0.1 + inputEvent: + key: + name: PMSubscriptionOutputEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + outputEvents: + entry: + - key: CreateSubscriptionPayloadEvent + value: + key: + name: CreateSubscriptionPayloadEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + optional: false + taskParameters: + entry: [ ] + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskLogic: + key: TaskLogic + logicFlavour: JAVASCRIPT + logic: |- + /* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + executor.logger.info(executor.subject.id); + var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) + var changeType = pmSubscriptionInfo.get("changeType").toLowerCase() + var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record"); + payloadProperties.put("nfName", pmSubscriptionInfo.get("nfName")) + payloadProperties.put("ipAddress", pmSubscriptionInfo.get("ipAddress")) + if ("create".equals(changeType)) { + payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName")) + payloadProperties.put("fileBasedGP", pmSubscriptionInfo.get("subscription").get("fileBasedGP").toString()) + payloadProperties.put("fileLocation", pmSubscriptionInfo.get("subscription").get("fileLocation")) + payloadProperties.put("measurementGroup", pmSubscriptionInfo.get("subscription").get("measurementGroup")) + } + else if ("delete".equals(changeType)) { + payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName")) + payloadProperties.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName")) + } + var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry"); + payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties) + var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance(); + payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry); + executor.outFields.put("albumID", executor.inFields.get("albumID")) + executor.outFields.put("payload", payload); + returnValue = executor.isTrue; + true; + - key: + name: CreateSubscriptionRequestTask + version: 0.0.1 + value: + key: + name: CreateSubscriptionRequestTask + version: 0.0.1 + inputEvent: + key: + name: CreateSubscriptionPayloadEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + optional: false + outputEvents: + entry: + - key: CDSCreateSubscriptionRequestEvent + value: + key: + name: CDSCreateSubscriptionRequestEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: actionIdentifiers + value: + key: actionIdentifiers + fieldSchemaKey: + name: CDSActionIdentifiersType + version: 0.0.1 + optional: false + - key: commonHeader + value: + key: commonHeader + fieldSchemaKey: + name: CDSRequestCommonHeaderType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + optional: false + taskParameters: + entry: [ ] + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskLogic: + key: TaskLogic + logicFlavour: JAVASCRIPT + logic: |- + /* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + executor.logger.info(executor.subject.id); + var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) + executor.logger.info(pmSubscriptionInfo) + var changeType = pmSubscriptionInfo.get("changeType").toLowerCase() + var blueprintName = pmSubscriptionInfo.get("blueprintName").toLowerCase() + var blueprintVersion = pmSubscriptionInfo.get("blueprintVersion").toLowerCase() + var payload = executor.inFields.get("payload") + var actionName = changeType + "-subscription" + var commonHeader = executor.subject.getOutFieldSchemaHelper("commonHeader").createNewInstance(); + commonHeader.put("originatorId", "sdnc"); + commonHeader.put("requestId", executor.inFields.get("albumID").toString()); + commonHeader.put("subRequestId", "sub-123456-1000"); + var actionIdentifiers = executor.subject.getOutFieldSchemaHelper("actionIdentifiers").createNewInstance(); + actionIdentifiers.put("actionName", actionName); + actionIdentifiers.put("blueprintName", blueprintName); + actionIdentifiers.put("blueprintVersion", blueprintVersion); + actionIdentifiers.put("mode", "sync"); + executor.outFields.put("commonHeader", commonHeader); + executor.outFields.put("actionIdentifiers", actionIdentifiers); + executor.outFields.put("payload", payload); + returnValue = executor.isTrue; + true; + - key: + name: DeleteSubscriptionPayloadTask + version: 0.0.1 + value: + key: + name: DeleteSubscriptionPayloadTask + version: 0.0.1 + inputEvent: + key: + name: PMSubscriptionOutputEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + outputEvents: + entry: + - key: DeleteSubscriptionPayloadEvent + value: + key: + name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + optional: false + taskParameters: + entry: [ ] + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskLogic: + key: TaskLogic + logicFlavour: JAVASCRIPT + logic: |- + /* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + executor.logger.info(executor.subject.id); + var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) + var changeType = pmSubscriptionInfo.get("changeType").toLowerCase() + var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record"); + payloadProperties.put("nfName", pmSubscriptionInfo.get("nfName")) + payloadProperties.put("ipAddress", pmSubscriptionInfo.get("ipAddress")) + if ("create".equals(changeType)) { + payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName")) + payloadProperties.put("fileBasedGP", pmSubscriptionInfo.get("subscription").get("fileBasedGP").toString()) + payloadProperties.put("fileLocation", pmSubscriptionInfo.get("subscription").get("fileLocation")) + payloadProperties.put("measurementGroup", pmSubscriptionInfo.get("subscription").get("measurementGroup")) + } + else if ("delete".equals(changeType)) { + payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName")) + payloadProperties.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName")) + } + var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry"); + payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties) + var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance(); + payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry); + executor.outFields.put("albumID", executor.inFields.get("albumID")) + executor.outFields.put("payload", payload); + returnValue = executor.isTrue; + true; + - key: + name: DeleteSubscriptionRequestTask + version: 0.0.1 + value: + key: + name: DeleteSubscriptionRequestTask + version: 0.0.1 + inputEvent: + key: + name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + optional: false + outputEvents: + entry: + - key: CDSDeleteSubscriptionRequestEvent + value: + key: + name: CDSDeleteSubscriptionRequestEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: actionIdentifiers + value: + key: actionIdentifiers + fieldSchemaKey: + name: CDSActionIdentifiersType + version: 0.0.1 + optional: false + - key: commonHeader + value: + key: commonHeader + fieldSchemaKey: + name: CDSRequestCommonHeaderType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + optional: false + taskParameters: + entry: [ ] + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskLogic: + key: TaskLogic + logicFlavour: JAVASCRIPT + logic: |- + /* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + executor.logger.info(executor.subject.id); + var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) + executor.logger.info(pmSubscriptionInfo) + var changeType = pmSubscriptionInfo.get("changeType").toLowerCase() + var blueprintName = pmSubscriptionInfo.get("blueprintName").toLowerCase() + var blueprintVersion = pmSubscriptionInfo.get("blueprintVersion").toLowerCase() + var payload = executor.inFields.get("payload") + var actionName = changeType + "-subscription" + var commonHeader = executor.subject.getOutFieldSchemaHelper("commonHeader").createNewInstance(); + commonHeader.put("originatorId", "sdnc"); + commonHeader.put("requestId", executor.inFields.get("albumID").toString()); + commonHeader.put("subRequestId", "sub-123456-1000"); + var actionIdentifiers = executor.subject.getOutFieldSchemaHelper("actionIdentifiers").createNewInstance(); + actionIdentifiers.put("actionName", actionName); + actionIdentifiers.put("blueprintName", blueprintName); + actionIdentifiers.put("blueprintVersion", blueprintVersion); + actionIdentifiers.put("mode", "sync"); + executor.outFields.put("commonHeader", commonHeader); + executor.outFields.put("actionIdentifiers", actionIdentifiers); + executor.outFields.put("payload", payload); + returnValue = executor.isTrue; + true; + - key: + name: ReceiveSubscriptionTask + version: 0.0.1 + value: + key: + name: ReceiveSubscriptionTask + version: 0.0.1 + inputEvent: + key: + name: pmsh-operational-policy + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: DCAE + target: APEX + parameter: + entry: + - key: blueprintName + value: + key: blueprintName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: blueprintVersion + value: + key: blueprintVersion + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: changeType + value: + key: changeType + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: controlLoopName + value: + key: controlLoopName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: ipAddress + value: + key: ipAddress + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: measurementGroupName + value: + key: measurementGroupName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: true + - key: nfName + value: + key: nfName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: operationalPolicyName + value: + key: operationalPolicyName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: subscription + value: + key: subscription + fieldSchemaKey: + name: SubscriptionType + version: 0.0.1 + optional: true + - key: subscriptionName + value: + key: subscriptionName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: true + outputEvents: + entry: + - key: PMSubscriptionOutputEvent + value: + key: + name: PMSubscriptionOutputEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + taskParameters: + entry: [ ] + contextAlbumReference: + - name: PMSubscriptionAlbum + version: 0.0.1 + taskLogic: + key: TaskLogic + logicFlavour: JAVASCRIPT + logic: |- + /* + * ============LICENSE_START======================================================= + * Copyright (C) 2020 Nordix. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + var uuidType = java.util.UUID; + executor.logger.info(executor.subject.id); + //albumID will be used to fetch info from our album later + var albumID = uuidType.randomUUID(); + var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").getSchemaHelper().createNewInstance(); + var returnValue = true; + if(executor.inFields.get("operationalPolicyName") != null) { + executor.logger.info("nfName in receive sub event " + executor.inFields.get("nfName")); + var changeType = executor.inFields.get("changeType") + var nfName = executor.inFields.get("nfName") + var ipAddress = executor.inFields.get("ipAddress") + var operationalPolicyName = executor.inFields.get("operationalPolicyName") + var controlLoopName = executor.inFields.get("controlLoopName") + var subscription = executor.inFields.get("subscription") + var blueprintName = executor.inFields.get("blueprintName") + var blueprintVersion = executor.inFields.get("blueprintVersion") + pmSubscriptionInfo.put("nfName", executor.inFields.get("nfName")); + pmSubscriptionInfo.put("ipAddress", executor.inFields.get("ipAddress")); + pmSubscriptionInfo.put("changeType", executor.inFields.get("changeType")) + pmSubscriptionInfo.put("operationalPolicyName", executor.inFields.get("operationalPolicyName")) + pmSubscriptionInfo.put("controlLoopName", executor.inFields.get("controlLoopName")) + pmSubscriptionInfo.put("subscription", subscription) + pmSubscriptionInfo.put("blueprintName", blueprintName) + pmSubscriptionInfo.put("blueprintVersion", blueprintVersion) + if ("delete".equals(changeType.toLowerCase())) { + pmSubscriptionInfo.put("subscriptionName", executor.inFields.get("subscriptionName")) + pmSubscriptionInfo.put("measurementGroupName", executor.inFields.get("measurementGroupName")) + } + executor.getContextAlbum("PMSubscriptionAlbum").put(albumID.toString(), pmSubscriptionInfo); + executor.outFields.put("albumID", albumID) + } else { + executor.message = "Received invalid event" + returnValue = false; + } + returnValue; + events: + key: + name: PMControlPolicy_Events + version: 0.0.1 + eventMap: + entry: + - key: + name: CDSCreateResponseEvent + version: 0.0.1 + value: + key: + name: CDSCreateResponseEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: CDS + target: APEX + parameter: + entry: + - key: actionIdentifiers + value: + key: actionIdentifiers + fieldSchemaKey: + name: CDSActionIdentifiersType + version: 0.0.1 + optional: false + - key: commonHeader + value: + key: commonHeader + fieldSchemaKey: + name: CDSResponseCommonHeaderType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSCreateResponsePayloadType + version: 0.0.1 + optional: false + - key: status + value: + key: status + fieldSchemaKey: + name: CDSResponseStatusType + version: 0.0.1 + optional: false + - key: + name: CDSCreateSubscriptionRequestEvent + version: 0.0.1 + value: + key: + name: CDSCreateSubscriptionRequestEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: actionIdentifiers + value: + key: actionIdentifiers + fieldSchemaKey: + name: CDSActionIdentifiersType + version: 0.0.1 + optional: false + - key: commonHeader + value: + key: commonHeader + fieldSchemaKey: + name: CDSRequestCommonHeaderType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + optional: false + - key: + name: CDSDeleteResponseEvent + version: 0.0.1 + value: + key: + name: CDSDeleteResponseEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: CDS + target: APEX + parameter: + entry: + - key: actionIdentifiers + value: + key: actionIdentifiers + fieldSchemaKey: + name: CDSActionIdentifiersType + version: 0.0.1 + optional: false + - key: commonHeader + value: + key: commonHeader + fieldSchemaKey: + name: CDSResponseCommonHeaderType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSDeleteResponsePayloadType + version: 0.0.1 + optional: false + - key: status + value: + key: status + fieldSchemaKey: + name: CDSResponseStatusType + version: 0.0.1 + optional: false + - key: + name: CDSDeleteSubscriptionRequestEvent + version: 0.0.1 + value: + key: + name: CDSDeleteSubscriptionRequestEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: actionIdentifiers + value: + key: actionIdentifiers + fieldSchemaKey: + name: CDSActionIdentifiersType + version: 0.0.1 + optional: false + - key: commonHeader + value: + key: commonHeader + fieldSchemaKey: + name: CDSRequestCommonHeaderType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + optional: false + - key: + name: CDSResponseStatusEvent + version: 0.0.1 + value: + key: + name: CDSResponseStatusEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: DCAE + parameter: + entry: + - key: status + value: + key: status + fieldSchemaKey: + name: SubscriptionStatusType + version: 0.0.1 + optional: false + - key: + name: CreateSubscriptionPayloadEvent + version: 0.0.1 + value: + key: + name: CreateSubscriptionPayloadEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + optional: false + - key: + name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + value: + key: + name: DeleteSubscriptionPayloadEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + - key: payload + value: + key: payload + fieldSchemaKey: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + optional: false + - key: + name: MRResponseEvent + version: 0.0.1 + value: + key: + name: MRResponseEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: DCAE + target: APEX + parameter: + entry: + - key: count + value: + key: count + fieldSchemaKey: + name: SimpleIntType + version: 0.0.1 + optional: false + - key: serverTimeMs + value: + key: serverTimeMs + fieldSchemaKey: + name: SimpleIntType + version: 0.0.1 + optional: false + - key: + name: PMSubscriptionOutputEvent + version: 0.0.1 + value: + key: + name: PMSubscriptionOutputEvent + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: APEX + target: APEX + parameter: + entry: + - key: albumID + value: + key: albumID + fieldSchemaKey: + name: UUIDType + version: 0.0.1 + optional: false + - key: + name: pmsh-operational-policy + version: 0.0.1 + value: + key: + name: pmsh-operational-policy + version: 0.0.1 + nameSpace: org.onap.policy.apex.onap.pmcontrol + source: DCAE + target: APEX + parameter: + entry: + - key: blueprintName + value: + key: blueprintName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: blueprintVersion + value: + key: blueprintVersion + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: changeType + value: + key: changeType + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: controlLoopName + value: + key: controlLoopName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: ipAddress + value: + key: ipAddress + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: measurementGroupName + value: + key: measurementGroupName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: true + - key: nfName + value: + key: nfName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: operationalPolicyName + value: + key: operationalPolicyName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: false + - key: subscription + value: + key: subscription + fieldSchemaKey: + name: SubscriptionType + version: 0.0.1 + optional: true + - key: subscriptionName + value: + key: subscriptionName + fieldSchemaKey: + name: SimpleStringType + version: 0.0.1 + optional: true + albums: + key: + name: PMControlPolicy_Albums + version: 0.0.1 + albums: + entry: + - key: + name: PMSubscriptionAlbum + version: 0.0.1 + value: + key: + name: PMSubscriptionAlbum + version: 0.0.1 + scope: policy + isWritable: true + itemSchema: + name: PMSubscriptionType + version: 0.0.1 + schemas: + key: + name: PMControlPolicy_Schemas + version: 0.0.1 + schemas: + entry: + - key: + name: CDSActionIdentifiersType + version: 0.0.1 + value: + key: + name: CDSActionIdentifiersType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "type": "record", + "name": "ActionIdentifiers_Type", + "namespace": "org.onap.policy.apex.onap.helloworld", + "fields": [ + { + "name": "actionName", + "type": "string" + }, + { + "name": "blueprintName", + "type": "string" + }, + { + "name": "blueprintVersion", + "type": "string" + }, + { + "name": "mode", + "type": "string" + } + ] + } + - key: + name: CDSCreateResponsePayloadType + version: 0.0.1 + value: + key: + name: CDSCreateResponsePayloadType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "name": "CreateResponsePayloadEntry", + "type": "record", + "namespace": "com.acme.avro", + "fields": [ + { + "name": "create_DasH_subscription_DasH_response", + "type": { + "name": "create_DasH_subscription_DasH_response", + "type": "record", + "fields": [ + { + "name": "odl_DasH_response", + "type": { + "name": "odl_DasH_response", + "type": "record", + "fields": [ + { + "name": "status", + "type": "string" + } + ] + } + } + ] + } + } + ] + } + - key: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + value: + key: + name: CDSCreateSubscriptionPayloadType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "type":"map", + "values":{ + "type":"record", + "name":"CDSRequestPayloadEntry", + "fields":[ + { + "name":"create_DasH_subscription_DasH_properties", + "type":{ + "name":"create_DasH_subscription_DasH_properties_record", + "type":"record", + "fields":[ + { + "name":"nfName", + "type":"string" + }, + { + "name":"ipAddress", + "type":"string" + }, + { + "name":"subscriptionName", + "type":"string" + }, + { + "name":"fileBasedGP", + "type":"string" + }, + { + "name":"fileLocation", + "type":"string" + }, + { + "name":"measurementGroup", + "type":{ + "name":"Measurement_Group_Type", + "type":"record", + "fields":[ + { + "name":"measurementGroupName", + "type":"string" + }, + { + "name":"measurementTypes", + "type":{ + "type":"array", + "items":{ + "name":"Measurement_Types_Type", + "type":"record", + "fields":[ + { + "name":"measurementType", + "type":"string" + } + ] + } + } + }, + { + "name":"managedObjectDNsBasic", + "type":{ + "type":"array", + "items":{ + "name":"Managed_Object_Dns_Basic_Type", + "type":"record", + "fields":[ + { + "name":"DN", + "type":"string" + } + ] + } + } + } + ] + } + } + ] + } + } + ] + } + } + - key: + name: CDSDeleteResponsePayloadType + version: 0.0.1 + value: + key: + name: CDSDeleteResponsePayloadType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "name": "DeleteResponsePayloadEntry", + "type": "record", + "namespace": "com.acme.avro", + "fields": [ + { + "name": "delete_DasH_subscription_DasH_response", + "type": { + "name": "delete_DasH_subscription_DasH_response", + "type": "record", + "fields": [ + { + "name": "odl_DasH_response", + "type": { + "name": "odl_DasH_response", + "type": "record", + "fields": [ + { + "name": "status", + "type": "string" + } + ] + } + } + ] + } + } + ] + } + - key: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + value: + key: + name: CDSDeleteSubscriptionPayloadType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "type":"map", + "values":{ + "type":"record", + "name":"CDSRequestPayloadEntry", + "fields":[ + { + "name":"delete_DasH_subscription_DasH_properties", + "type":{ + "name":"delete_DasH_subscription_DasH_properties_record", + "type":"record", + "fields":[ + { + "name":"nfName", + "type":"string" + }, + { + "name":"ipAddress", + "type":"string" + }, + { + "name":"subscriptionName", + "type":"string" + }, + { + "name":"measurementGroupName", + "type":"string" + } + ] + } + } + ] + } + } + - key: + name: CDSRequestCommonHeaderType + version: 0.0.1 + value: + key: + name: CDSRequestCommonHeaderType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "type": "record", + "name": "RequestCommonHeader_Type", + "namespace": "org.onap.policy.apex.onap.helloworld", + "fields": [ + { + "name": "originatorId", + "type": "string" + }, + { + "name": "requestId", + "type": "string" + }, + { + "name": "subRequestId", + "type": "string" + } + ] + } + - key: + name: CDSResponseCommonHeaderType + version: 0.0.1 + value: + key: + name: CDSResponseCommonHeaderType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "type": "record", + "name": "ResponseCommonHeader_Type", + "namespace": "org.onap.policy.apex.onap.helloworld", + "fields": [ + { + "name": "originatorId", + "type": "string" + }, + { + "name": "requestId", + "type": "string" + }, + { + "name": "subRequestId", + "type": "string" + }, + { + "name": "timestamp", + "type": "string" + }, + { + "name": "flags", + "type": ["null", "string"] + } + ] + } + - key: + name: CDSResponseStatusType + version: 0.0.1 + value: + key: + name: CDSResponseStatusType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "type": "record", + "name": "ResponseStatus_Type", + "namespace": "org.onap.policy.apex.onap.helloworld", + "fields": [ + { + "name": "code", + "type": "int" + }, + { + "name": "eventType", + "type": "string" + }, + { + "name": "timestamp", + "type": "string" + }, + { + "name": "message", + "type": "string" + } + ] + } + - key: + name: PMSubscriptionType + version: 0.0.1 + value: + key: + name: PMSubscriptionType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "name": "PMSubscription", + "type": "record", + "namespace": "org.onap.policy.apex.onap.pmcontrol", + "fields": [ + { + "name": "nfName", + "type": "string" + }, + { + "name": "ipAddress", + "type": "string" + }, + { + "name": "changeType", + "type": "string" + }, + { + "name": "controlLoopName", + "type": "string" + }, + { + "name": "operationalPolicyName", + "type": "string" + }, + { + "name": "blueprintName", + "type": "string" + }, + { + "name": "blueprintVersion", + "type": "string" + }, + { + "name": "subscriptionName", + "type": "string" + }, + { + "name": "measurementGroupName", + "type": "string" + }, + { + "name": "subscription", + "type": { + "name": "subscription", + "type": "record", + "fields": [ + { + "name": "subscriptionName", + "type": "string" + }, + { + "name": "fileBasedGP", + "type": "int" + }, + { + "name": "fileLocation", + "type": "string" + }, + { + "name": "measurementGroup", + "type": { + "name": "Measurement_Group_Type", + "type": "record", + "fields": [ + { + "name": "measurementGroupName", + "type": "string" + }, + { + "name": "measurementTypes", + "type": { + "type": "array", + "items": { + "name": "Measurement_Types_Type", + "type": "record", + "fields": [ + { + "name": "measurementType", + "type": "string" + } + ] + } + } + }, + { + "name": "managedObjectDNsBasic", + "type": { + "type": "array", + "items": { + "name": "Managed_Object_Dns_Basic_Type", + "type": "record", + "fields": [ + { + "name": "DN", + "type": "string" + } + ] + } + } + } + ] + } + } + ] + } + } + ] + } + - key: + name: SimpleIntType + version: 0.0.1 + value: + key: + name: SimpleIntType + version: 0.0.1 + schemaFlavour: Java + schemaDefinition: java.lang.Integer + - key: + name: SimpleStringType + version: 0.0.1 + value: + key: + name: SimpleStringType + version: 0.0.1 + schemaFlavour: Java + schemaDefinition: java.lang.String + - key: + name: SubscriptionStatusType + version: 0.0.1 + value: + key: + name: SubscriptionStatusType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "type": "record", + "name": "ActivateSubscriptionStatus_Type", + "namespace": "org.onap.policy.apex.onap.helloworld", + "fields": [ + { + "name": "subscriptionName", + "type": "string" + }, + { + "name": "measurementGroupName", + "type": "string" + }, + { + "name": "nfName", + "type": "string" + }, + { + "name": "changeType", + "type": "string" + }, + { + "name": "message", + "type": "string" + } + ] + } + - key: + name: SubscriptionType + version: 0.0.1 + value: + key: + name: SubscriptionType + version: 0.0.1 + schemaFlavour: Avro + schemaDefinition: |- + { + "name": "subscription", + "type": "record", + "default": "null", + "fields": [ + { + "name": "subscriptionName", + "type": "string" + }, + { + "name": "fileBasedGP", + "type": "int" + }, + { + "name": "fileLocation", + "type": "string" + }, + { + "name": "measurementGroup", + "type": { + "name": "Measurement_Group_Type", + "type": "record", + "fields": [ + { + "name": "measurementGroupName", + "type": "string" + }, + { + "name": "measurementTypes", + "type": { + "type": "array", + "items": { + "name": "Measurement_Types_Type", + "type": "record", + "fields": [ + { + "name": "measurementType", + "type": "string" + } + ] + } + } + }, + { + "name": "managedObjectDNsBasic", + "type": { + "type": "array", + "items": { + "name": "Managed_Object_Dns_Basic_Type", + "type": "record", + "fields": [ + { + "name": "DN", + "type": "string" + } + ] + } + } + } + ] + } + } + ] + } + - key: + name: UUIDType + version: 0.0.1 + value: + key: + name: UUIDType + version: 0.0.1 + schemaFlavour: Java + schemaDefinition: java.util.UUID + eventInputParameters: + DCAEConsumer: + carrierTechnologyParameters: + carrierTechnology: RESTCLIENT + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters + parameters: + consumerPollTime: '50' + url: https://message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT/cg1/sg1 + eventProtocolParameters: + eventProtocol: JSON + parameters: + nameAlias: operationalPolicyName + eventName: pmsh-operational-policy + eventNameFilter: pmsh-operational-policy + CDSRequestConsumer: + carrierTechnologyParameters: + carrierTechnology: RESTREQUESTOR + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters + parameters: + url: http://cds-blueprints-processor-http:8080/api/v1/execution-service/process + httpMethod: POST + restRequestTimeout: 2000 + httpHeaders: + - - Authorization + - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== + eventProtocolParameters: + eventProtocol: JSON + eventName: CDSCreateResponseEvent + eventNameFilter: CDSCreateResponseEvent + requestorMode: true + requestorPeer: CDSRequestProducer + requestorTimeout: 500 + CDSDeleteRequestConsumer: + carrierTechnologyParameters: + carrierTechnology: RESTREQUESTOR + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters + parameters: + url: http://cds-blueprints-processor-http:8080/api/v1/execution-service/process + httpMethod: POST + restRequestTimeout: 2000 + httpHeaders: + - - Authorization + - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== + eventProtocolParameters: + eventProtocol: JSON + eventName: CDSDeleteResponseEvent + eventNameFilter: CDSDeleteResponseEvent + requestorMode: true + requestorPeer: CDSDeleteRequestProducer + requestorTimeout: 500 + eventOutputParameters: + logOutputter: + carrierTechnologyParameters: + carrierTechnology: FILE + parameters: + standardIo: true + eventProtocolParameters: + eventProtocol: JSON + StdOutOutputter: + carrierTechnologyParameters: + carrierTechnology: FILE + parameters: + standardIo: true + eventProtocolParameters: + eventProtocol: JSON + CDSRequestProducer: + carrierTechnologyParameters: + carrierTechnology: RESTREQUESTOR + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters + eventProtocolParameters: + eventProtocol: JSON + eventNameFilter: CDSCreateSubscriptionRequestEvent + requestorMode: true + requestorPeer: CDSRequestConsumer + requestorTimeout: 500 + CDSDeleteRequestProducer: + carrierTechnologyParameters: + carrierTechnology: RESTREQUESTOR + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters + eventProtocolParameters: + eventProtocol: JSON + eventNameFilter: CDSDeleteSubscriptionRequestEvent + requestorMode: true + requestorPeer: CDSDeleteRequestConsumer + requestorTimeout: 500 + CDSReplyProducer: + carrierTechnologyParameters: + carrierTechnology: RESTCLIENT + parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters + parameters: + url: https://message-router:3905/events/unauthenticated.PMSH_CL_INPUT + httpMethod: POST + restRequestTimeout: 2000 + eventProtocolParameters: + eventProtocol: JSON + eventNameFilter: CDSResponseStatusEvent diff --git a/docs/development/devtools/policy-cds.rst b/docs/development/devtools/policy-cds.rst deleted file mode 100644 index be6fd319..00000000 --- a/docs/development/devtools/policy-cds.rst +++ /dev/null @@ -1,135 +0,0 @@ -.. This work is licensed under a -.. Creative Commons Attribution 4.0 International License. -.. http://creativecommons.org/licenses/by/4.0 - -.. _policy-cds-pairwise-testing-label: - -.. toctree:: - :maxdepth: 2 - -Policy <-> CDS -~~~~~~~~~~~~~~ - -The pairwise testing is executed against a default ONAP installation as per OOM charts. -Apex-PDP or Drools-PDP engine interacts with CDS to execute an Automation Composition action. -This test verifies the interaction between Policy and CDS to make sure the contract works as expected. - -General Setup -************* - -The kubernetes installation will allocate all onap components across multiple worker node VMs. -The normal worker VM hosting onap components has the following spec: - -- 16GB RAM -- 8 VCPU -- 160GB Ephemeral Disk - - -The ONAP components used during the pairwise tests are: - -- AAI for creating dummy VNF & PNF for testing purpose. -- CDS for publishing the blueprints & triggering the actions. -- DMaaP for the communication between components. -- Policy API to perform CRUD of policies. -- Policy PAP to perform runtime administration (deploy/undeploy/status/statistics/etc). -- Policy Apex-PDP to execute policies for both VNF & PNF scenarios. -- Policy Drools-PDP to execute policies for both VNF & PNF scenarios. -- Policy Xacml-PDP to execute decisions for guard requests. - - -Testing procedure -***************** - -The test set is focused on the following use cases: - -- End to end testing of a sample VNF based policy using Apex-PDP & Drools-PDP. -- End to end testing of a sample PNF based policy using Apex-PDP & Drools-PDP. - -Creation of VNF & PNF in AAI ----------------------------- -In order for PDP engines to fetch the resource details from AAI during runtime execution, we need to create dummy VNF & PNF entities in AAI. -In a real Automation Composition flow, the entities in AAI will be either created during orchestration phase or provisioned in AAI separately. - -Download & execute the steps in postman collection for creating the entities along with its dependencies. -The steps need to be performed sequentially one after another. And no input is required from user. - -:download:`Create VNF & PNF in AAI ` - -Make sure to skip the delete VNF & PNF steps. - - -Publish Blueprints in CDS -------------------------- -In order for PDP engines to trigger an action in CDS during runtime execution, we need to publish relevant blueprints in CDS. - -Download the zip files containing the blueprint for VNF & PNF specific actions. - -:download:`VNF Test CBA ` -:download:`PNF Test CBA ` - -Download & execute the steps in postman collection for publishing the blueprints in CDS. -In the enrich & publish CBA step, provide the previously downloaded zip file one by one. -The execute steps are provided to verify that the blueprints are working as expected. - -:download:`Publish Blueprints in CDS ` - -Make sure to skip the delete CBA step. - - -Apex-PDP VNF & PNF testing --------------------------- -The below provided postman collection is prepared to have end to end testing experience of apex-pdp engine. -Including both VNF & PNF scenarios. -List of steps covered in the postman collection: - -- Create & Verify VNF & PNF policies as per policy type supported by apex-pdp. -- Deploy both VNF & PNF policies to apex-pdp engine. -- Query PdpGroup at multiple stages to verify current set of policies deployed. -- Fetch policy status at multiple stages to verify policy deployment & undeployment status. -- Fetch policy audit information at multiple stages to verify policy deployment & undeployment operations. -- Fetch PDP Statistics at multiple stages to verify deployment, undeployment & execution counts. -- Send onset events to DMaaP for triggering policies to test both success & failure secnarios. -- Read policy notifications from DMaaP to verify policy execution. -- Undeploy both VNF & PNF policies from apex-pdp engine. -- Delete both VNF & PNF policies at the end. - -Download & execute the steps in postman collection. -The steps need to be performed sequentially one after another. And no input is required from user. - -:download:`Apex-PDP VNF & PNF Testing ` - -Make sure to wait for 2 minutes (the default heartbeat interval) to verify PDP Statistics. - -Drools-PDP VNF & PNF testing ----------------------------- -The below provided postman collection is prepared to have end to end testing experience of drools-pdp engine. -Including both VNF & PNF scenarios. -List of steps covered in the postman collection: - -- Create & Verify VNF & PNF policies as per policy type supported by drools-pdp. -- Deploy both VNF & PNF policies to drools-pdp engine. -- Query PdpGroup at multiple stages to verify current set of policies deployed. -- Fetch policy status at multiple stages to verify policy deployment & undeployment status. -- Fetch policy audit information at multiple stages to verify policy deployment & undeployment operations. -- Fetch PDP Statistics at multiple stages to verify deployment, undeployment & execution counts. -- Send onset events to DMaaP for triggering policies to test both success & failure secnarios. -- Read policy notifications from DMaaP to verify policy execution. -- Undeploy both VNF & PNF policies from drools-pdp engine. -- Delete both VNF & PNF policies at the end. - -Download & execute the steps in postman collection. -The steps need to be performed sequentially one after another. And no input is required from user. - -:download:`Drools-PDP VNF & PNF Testing ` - -Make sure to wait for 2 minutes (the default heartbeat interval) to verify PDP Statistics. - - -Delete Blueprints in CDS ------------------------- -Use the previously downloaded CDS postman collection to delete the blueprints published in CDS for testing. - - -Delete VNF & PNF in AAI ------------------------ -Use the previously downloaded AAI postman collection to delete the VNF & PNF entities created in AAI for testing. diff --git a/docs/development/devtools/smoke/apex-smoke.rst b/docs/development/devtools/smoke/apex-smoke.rst index 3ad44fdd..b550ec54 100644 --- a/docs/development/devtools/smoke/apex-smoke.rst +++ b/docs/development/devtools/smoke/apex-smoke.rst @@ -50,7 +50,7 @@ In a real control loop flow, the entities in AAI will be either created during o Download & execute the steps in postman collection for creating the entities along with its dependencies. The steps need to be performed sequentially one after another. And no input is required from user. -:download:`Create VNF & PNF in AAI ` +:download:`Create VNF & PNF in AAI ` Make sure to skip the delete VNF & PNF steps. @@ -61,14 +61,14 @@ In order for PDP engines to trigger an action in CDS during runtime execution, w Download the zip files containing the blueprint for VNF & PNF specific actions. -:download:`VNF Test CBA ` -:download:`PNF Test CBA ` +:download:`VNF Test CBA ` +:download:`PNF Test CBA ` Download & execute the steps in postman collection for publishing the blueprints in CDS. In the enrich & publish CBA step, provide the previously downloaded zip file one by one. The execute steps are provided to verify that the blueprints are working as expected. -:download:`Publish Blueprints in CDS ` +:download:`Publish Blueprints in CDS ` Make sure to skip the delete CBA step. @@ -93,7 +93,7 @@ List of steps covered in the postman collection: Download & execute the steps in postman collection. The steps need to be performed sequentially one after another. And no input is required from user. -:download:`Apex-PDP VNF & PNF Testing ` +:download:`Apex-PDP VNF & PNF Testing ` Make sure to wait for 2 minutes (the default heartbeat interval) to verify PDP Statistics. diff --git a/docs/development/devtools/smoke/cds-cba/pnf-test-cba.zip b/docs/development/devtools/smoke/cds-cba/pnf-test-cba.zip deleted file mode 100644 index 393d4c5d..00000000 Binary files a/docs/development/devtools/smoke/cds-cba/pnf-test-cba.zip and /dev/null differ diff --git a/docs/development/devtools/smoke/cds-cba/vnf-test-cba.zip b/docs/development/devtools/smoke/cds-cba/vnf-test-cba.zip deleted file mode 100644 index 3c0a689b..00000000 Binary files a/docs/development/devtools/smoke/cds-cba/vnf-test-cba.zip and /dev/null differ diff --git a/docs/development/devtools/smoke/postman/apex-pdp-vnf-pnf-testing.postman_collection.json b/docs/development/devtools/smoke/postman/apex-pdp-vnf-pnf-testing.postman_collection.json deleted file mode 100644 index a5a2cff8..00000000 --- a/docs/development/devtools/smoke/postman/apex-pdp-vnf-pnf-testing.postman_collection.json +++ /dev/null @@ -1,1244 +0,0 @@ -{ - "info": { - "_postman_id": "1b22468c-e177-4ac2-8854-c246c35420a7", - "name": "Apex-PDP VNF & PNF Testing", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - { - "name": "Create VNF Policy", - "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.vnf.Example\": {\n \"type\": \"onap.policies.native.Apex\",\n \"type_version\": \"1.0.0\",\n \"name\": \"onap.policies.apex.vnf.Example\",\n \"version\": \"1.0.0\",\n \"properties\": {\n \"engineServiceParameters\": {\n \"name\": \"TestApexEngine\",\n \"version\": \"0.0.1\",\n \"id\": 45,\n \"instanceCount\": 1,\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 \"policy_type_impl\": {\n \"apexPolicyModel\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy\",\n \"version\": \"0.0.1\"\n },\n \"keyInformation\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"keyInfoMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"APEXExamplePolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"f99c27f7-24bf-3634-ac7a-1b3880b14bfc\",\n \"description\": \"Generated description for concept referred to by key \\\"APEXExamplePolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Albums\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Albums\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"c5a78c12-64b7-3a10-a253-c5bf632933de\",\n \"description\": \"Generated description for concept referred to by key \\\"APEXExamplePolicy_Albums:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Events\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Events\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b7146854-a0b4-3771-9c67-155cc8bf011a\",\n \"description\": \"Generated description for concept referred to by key \\\"APEXExamplePolicy_Events:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"APEXExamplePolicy_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_KeyInfo\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"77c36041-d09f-3299-bea5-daa1ba859b64\",\n \"description\": \"Generated description for concept referred to by key \\\"APEXExamplePolicy_KeyInfo:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Policies\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Policies\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"72a336b7-8093-32a2-9f77-cdb50fcd96d5\",\n \"description\": \"Generated description for concept referred to by key \\\"APEXExamplePolicy_Policies:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"d4a51349-3b55-35be-a7e2-a9df3db2bab4\",\n \"description\": \"Generated description for concept referred to by key \\\"APEXExamplePolicy_Schemas:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"dcf945e6-8191-3b1f-ad79-a456c287a5ab\",\n \"description\": \"Generated description for concept referred to by key \\\"APEXExamplePolicy_Tasks:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"fc0c1892-a2ae-3678-818f-b9b23939b241\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_AAIFailureResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ba931e7e-aee9-3af8-98d8-16b92a909e8a\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_AAIFailureResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b4dd59c5-0169-3810-800c-1396c2206de4\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_AAIRequestErrorType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"599c297e-96c8-3b21-ad1c-e643bddeacbf\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_AAIRequestEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b5e3f122-2dcd-3cdf-a0ec-8210b3f80478\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_AAISuccessResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"15504e23-78c5-305e-9fce-cf1f50e75013\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_AAISuccessResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"e2715e7d-835e-32c7-b433-a2e92bcad6ee\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSActionIdentifiersType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b492e841-2c03-36a9-9ec2-dda5852152c3\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSConfigModifyFailureResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ef4e45f4-1181-3121-a3b6-507126df25e7\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"91cb711a-0c73-3f51-83e6-fca9c547c71d\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSConfigModifyFailureResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"dda3c648-dc8b-38e0-855d-9cb72397f957\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSConfigModifyRequestEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"96b306bd-6dee-3d47-981c-eaac316d5ae1\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSConfigModifyResponsePayloadType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"1b65abfb-ce35-3765-9b9c-d2ee02bef28b\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSConfigModifySuccessResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"4dac3de7-3817-396f-91d6-ce701d162877\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"92dc9e6b-2082-3d90-ba5e-f2dba18b72b6\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSConfigModifySuccessResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"a6801c93-f15b-3158-ba33-7760197d3609\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSFailureResponseCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"e2da0a15-c542-3e77-874d-4512e9b4162e\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSFailureResponseStatusType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"f54edff0-532f-3142-8e65-a5c9d67888ef\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRequestCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b967dc44-a156-32d3-a796-f03dbf74316c\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRequestPayloadType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"f2aa4552-069d-3db8-8638-2d1f59124e7a\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRestartFailureResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"c2e3b07f-2c09-3195-9527-6b3ab0666d61\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRestartFailureResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"a7c28cc1-9fe5-30b7-9dd8-5a4f7f7d811e\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRestartFailureResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"d01d1022-48ac-391d-904d-282ccb063f8a\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRestartRequestEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ad8cbd94-6eb5-3743-8a7d-42cbe49a5320\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRestartResponsePayloadType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"bbb06330-9161-392e-a0ca-a6bb5e3376af\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRestartSuccessResponseEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"70c6c6e5-00da-30cb-8ec0-14437d657f39\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRestartSuccessResponseHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"77f16151-80b5-304c-a448-19d8528feed1\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSRestartSuccessResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"2f17aee2-fbdf-3c41-a779-f9c17b5bda5b\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSSuccessResponseCommonHeaderType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"8c554852-3ed6-3027-a0d3-fccd2db19875\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_CDSSuccessResponseStatusType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b402baca-915b-3952-97fc-d9899f9ca81c\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_EventDetailsAlbum:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"3626f32a-eee6-3254-b3d4-e4829518c381\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_EventDetailsAlbumType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"87abb453-a919-3131-8ffb-3e5c910c6049\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_HandleAAIFailureResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"8881e644-3cca-3aec-8201-312ca6f719e0\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_HandleAAISuccessResponseTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"057f6ddd-d6aa-3ce2-a060-d344de16d7f3\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_HandleVesEventTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"4867b1e7-a819-3b9f-be2b-a97fe6019827\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_LogStatusEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"975b3071-b775-3617-a888-f831fe5a31db\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_VesEvent:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"ad9efe17-a03e-3b64-8e8a-51e144f57d2c\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_VesEventHandlerPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"0054393c-10df-3214-af86-cb04a23325bf\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_VesEventType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_VnfRelationShipListType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_VnfRelationShipListType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"865a5903-201b-34ff-918b-2bfdde743576\",\n \"description\": \"Generated description for concept referred to by key \\\"ApexExample_VnfRelationShipListType:0.0.1\\\"\"\n }\n },\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\": \"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 }\n },\n \"policies\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Policies\",\n \"version\": \"0.0.1\"\n },\n \"policyMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"ApexExample_AAIFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_ReceiveAAIFailureResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ApexExample_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"ApexExample_ReceiveAAIFailureResponseState\"\n },\n \"trigger\": {\n \"name\": \"ApexExample_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_AAIFailureStateOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveAAIFailureResponseState\",\n \"localName\": \"ApexExample_AAIFailureStateOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ApexExample_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\": \"ApexExample_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveAAIFailureResponseState\",\n \"localName\": \"ApexExample_AAIFailureResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ApexExample_AAIFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveAAIFailureResponseState\",\n \"localName\": \"ApexExample_AAIFailureStateOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"ApexExample_ReceiveAAIFailureResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"ApexExample_AAISuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_ReceiveAAISuccessResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ApexExample_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"ApexExample_ReceiveAAISuccessResponseState\"\n },\n \"trigger\": {\n \"name\": \"ApexExample_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_AAISuccessStateOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveAAISuccessResponseState\",\n \"localName\": \"ApexExample_AAISuccessStateOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ApexExample_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\": \"ApexExample_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveAAISuccessResponseState\",\n \"localName\": \"ApexExample_AAISuccessResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ApexExample_AAISuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveAAISuccessResponseState\",\n \"localName\": \"ApexExample_AAISuccessStateOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"ApexExample_ReceiveAAISuccessResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_CDSConfigModifyFailureResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"ApexExample_CDSConfigModifyFailureResponseState\"\n },\n \"trigger\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_ConfigModifyFailureResponseOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSConfigModifyFailureResponseState\",\n \"localName\": \"ApexExample_ConfigModifyFailureResponseOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ApexExample_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\": \"ApexExample_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSConfigModifyFailureResponseState\",\n \"localName\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSConfigModifyFailureResponseState\",\n \"localName\": \"ApexExample_ConfigModifyFailureResponseOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"ApexExample_CDSConfigModifyFailureResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_CDSConfigModifySuccessResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"ApexExample_CDSConfigModifySuccessResponseState\"\n },\n \"trigger\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_ConfigModifySuccessResponseOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSConfigModifySuccessResponseState\",\n \"localName\": \"ApexExample_ConfigModifySuccessResponseOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ApexExample_CDSRestartRequestEvent\",\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\": \"ApexExample_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSConfigModifySuccessResponseState\",\n \"localName\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSConfigModifySuccessResponseState\",\n \"localName\": \"ApexExample_ConfigModifySuccessResponseOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"ApexExample_CDSConfigModifySuccessResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_CDSRestartFailureResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"ApexExample_CDSRestartFailureResponseState\"\n },\n \"trigger\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_RestartFailureResponseOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSRestartFailureResponseState\",\n \"localName\": \"ApexExample_RestartFailureResponseOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ApexExample_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\": \"ApexExample_CDSRestartFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSRestartFailureResponseState\",\n \"localName\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ApexExample_CDSRestartFailureResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSRestartFailureResponseState\",\n \"localName\": \"ApexExample_RestartFailureResponseOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"ApexExample_CDSRestartFailureResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_CDSRestartSuccessResponseState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"ApexExample_CDSRestartSuccessResponseState\"\n },\n \"trigger\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_RestartSuccessResponseOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSRestartSuccessResponseState\",\n \"localName\": \"ApexExample_RestartSuccessResponseOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ApexExample_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\": \"ApexExample_CDSRestartSuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSRestartSuccessResponseState\",\n \"localName\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ApexExample_CDSRestartSuccessResponseHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_CDSRestartSuccessResponseState\",\n \"localName\": \"ApexExample_RestartSuccessResponseOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"ApexExample_CDSRestartSuccessResponseState\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"ApexExample_VesEventHandlerPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_ReceiveVesState\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ApexExample_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"ApexExample_ReceiveVesState\"\n },\n \"trigger\": {\n \"name\": \"ApexExample_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ApexExample_VesOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveVesState\",\n \"localName\": \"ApexExample_VesOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ApexExample_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\": \"ApexExample_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ApexExample_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveVesState\",\n \"localName\": \"ApexExample_VesEventHandlerPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ApexExample_VesEventHandlerPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"ApexExample_ReceiveVesState\",\n \"localName\": \"ApexExample_VesOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"ApexExample_ReceiveVesState\"\n }\n }\n ]\n }\n },\n \"tasks\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Tasks\",\n \"version\": \"0.0.1\"\n },\n \"taskMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"eventId\",\n \"value\": {\n \"key\": \"eventId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingEnd\",\n \"value\": {\n \"key\": \"eventProcessingEnd\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingStart\",\n \"value\": {\n \"key\": \"eventProcessingStart\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"from\",\n \"value\": {\n \"key\": \"from\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\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 \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\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\": \"ApexExample_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;\\n\\nvar albumID = uuidType.fromString(\\\"d0050623-18e5-46c9-9298-9a567990cd7c\\\");\\n\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"ApexExample_EventDetailsAlbum\\\").get(albumID.toString());\\nexecutor.outFields.put(\\\"eventProcessingStart\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"startEpochMicrosec\\\"));\\nexecutor.outFields.put(\\\"eventProcessingEnd\\\", longType(new Date().getTime()));\\nexecutor.outFields.put(\\\"eventId\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"eventId\\\"));\\nexecutor.outFields.put(\\\"from\\\", \\\"APEX\\\");\\nexecutor.outFields.put(\\\"status\\\", \\\"FAILURE\\\");\\nexecutor.outFields.put(\\\"message\\\", \\\"ConfigModify operation failed. \\\"+executor.inFields.get(\\\"status\\\").get(\\\"errorMessage\\\"));\\nexecutor.logger.info(executor.outFields);\\ntrue;\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSSuccessResponseStatusType\",\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\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"ApexExample_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"var uuidType = java.util.UUID;\\n\\nvar albumID = uuidType.fromString(\\\"d0050623-18e5-46c9-9298-9a567990cd7c\\\");\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"ApexExample_EventDetailsAlbum\\\").get(albumID.toString());\\nvar commonEventHeader = eventDetailsAlbum.get(\\\"commonEventHeader\\\");\\nvar faultFields = eventDetailsAlbum.get(\\\"faultFields\\\");\\nvar vnfDetails = eventDetailsAlbum.get(\\\"vnfDetails\\\");\\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\\\"commonHeader\\\").createNewInstance();\\ncommonHeader.put(\\\"subRequestId\\\", commonEventHeader.get(\\\"eventId\\\"));\\ncommonHeader.put(\\\"requestId\\\", uuidType.randomUUID().toString());\\ncommonHeader.put(\\\"originatorId\\\", \\\"POLICY\\\");\\n\\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\\\"actionIdentifiers\\\").createNewInstance();\\nactionIdentifiers.put(\\\"mode\\\", \\\"sync\\\");\\nactionIdentifiers.put(\\\"blueprintName\\\", \\\"vnf-test-cba\\\");\\nactionIdentifiers.put(\\\"blueprintVersion\\\", \\\"1.0.0\\\");\\nactionIdentifiers.put(\\\"actionName\\\", \\\"restart\\\");\\n\\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewSubInstance(\\\"update_DasH_properties_record\\\");\\npayloadProperties.put(\\\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\\\", vnfDetails.get(\\\"service-id\\\").toString())\\npayloadProperties.put(\\\"generic_DasH_vnf_DoT_vnf_DasH_id\\\", vnfDetails.get(\\\"vnf-name\\\").toString())\\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewSubInstance(\\\"update_DasH_data_record\\\");\\ndataRecord.put(\\\"active_DasH_streams\\\",\\\"7\\\")\\npayloadProperties.put(\\\"data\\\", dataRecord)\\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewSubInstance(\\\"CDSRequestPayloadEntry\\\");\\npayloadEntry.put(\\\"update_DasH_properties\\\", payloadProperties)\\npayloadEntry.put(\\\"vfStatus\\\", faultFields.get(\\\"vfStatus\\\"))\\nvar payload = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewInstance();\\npayload.put(\\\"restart_DasH_request\\\", payloadEntry);\\n\\nexecutor.outFields.put(\\\"commonHeader\\\", commonHeader);\\nexecutor.outFields.put(\\\"actionIdentifiers\\\", actionIdentifiers);\\nexecutor.outFields.put(\\\"payload\\\", payload);\\n\\nexecutor.logger.info(+executor.outFields);\\ntrue;\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSRestartResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"eventId\",\n \"value\": {\n \"key\": \"eventId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingEnd\",\n \"value\": {\n \"key\": \"eventProcessingEnd\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingStart\",\n \"value\": {\n \"key\": \"eventProcessingStart\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"from\",\n \"value\": {\n \"key\": \"from\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\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 \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\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\": \"ApexExample_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;\\n\\nvar albumID = uuidType.fromString(\\\"d0050623-18e5-46c9-9298-9a567990cd7c\\\");\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"ApexExample_EventDetailsAlbum\\\").get(albumID.toString());\\nexecutor.outFields.put(\\\"eventProcessingStart\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"startEpochMicrosec\\\"));\\nexecutor.outFields.put(\\\"eventProcessingEnd\\\", longType(new Date().getTime()));\\nexecutor.outFields.put(\\\"eventId\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"eventId\\\"));\\nexecutor.outFields.put(\\\"from\\\", \\\"APEX\\\");\\nexecutor.outFields.put(\\\"status\\\", \\\"FAILURE\\\");\\nexecutor.outFields.put(\\\"message\\\", \\\"Restart operation failed. \\\" + executor.inFields.get(\\\"status\\\").get(\\\"errorMessage\\\"));\\nexecutor.logger.info(executor.outFields);\\ntrue;\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSRestartResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"eventId\",\n \"value\": {\n \"key\": \"eventId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingEnd\",\n \"value\": {\n \"key\": \"eventProcessingEnd\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingStart\",\n \"value\": {\n \"key\": \"eventProcessingStart\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"from\",\n \"value\": {\n \"key\": \"from\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\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 \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\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\": \"ApexExample_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;\\n\\nvar albumID = uuidType.fromString(\\\"d0050623-18e5-46c9-9298-9a567990cd7c\\\");\\n\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"ApexExample_EventDetailsAlbum\\\").get(albumID.toString());\\nexecutor.outFields.put(\\\"eventProcessingStart\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"startEpochMicrosec\\\"));\\nexecutor.outFields.put(\\\"eventProcessingEnd\\\", longType(new Date().getTime()));\\nexecutor.outFields.put(\\\"eventId\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"eventId\\\"));\\nexecutor.outFields.put(\\\"from\\\", \\\"APEX\\\");\\nexecutor.outFields.put(\\\"status\\\", \\\"SUCCESS\\\");\\nexecutor.outFields.put(\\\"message\\\", \\\"Action Completed.\\\");\\nexecutor.logger.info(executor.outFields);\\ntrue;\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_HandleAAIFailureResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"requestError\",\n \"value\": {\n \"key\": \"requestError\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"eventId\",\n \"value\": {\n \"key\": \"eventId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingEnd\",\n \"value\": {\n \"key\": \"eventProcessingEnd\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingStart\",\n \"value\": {\n \"key\": \"eventProcessingStart\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"from\",\n \"value\": {\n \"key\": \"from\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\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 \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\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\": \"ApexExample_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;\\n\\nvar albumID = uuidType.fromString(\\\"d0050623-18e5-46c9-9298-9a567990cd7c\\\");\\n\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"ApexExample_EventDetailsAlbum\\\").get(albumID.toString());\\nvar aaiErrorMessage = executor.inFields.get(\\\"requestError\\\").get(\\\"serviceException\\\").get(\\\"text\\\");\\nexecutor.outFields.put(\\\"eventProcessingStart\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"startEpochMicrosec\\\"));\\nexecutor.outFields.put(\\\"eventProcessingEnd\\\", longType(new Date().getTime()));\\nexecutor.outFields.put(\\\"eventId\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"eventId\\\"));\\nexecutor.outFields.put(\\\"from\\\", \\\"APEX\\\");\\nexecutor.outFields.put(\\\"status\\\", \\\"FAILURE\\\");\\nexecutor.outFields.put(\\\"message\\\", aaiErrorMessage);\\ntrue;\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_HandleAAISuccessResponseTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\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\": \"is-closed-loop-disabled\",\n \"value\": {\n \"key\": \"is-closed-loop-disabled\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"model-customization-id\",\n \"value\": {\n \"key\": \"model-customization-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"model-invariant-id\",\n \"value\": {\n \"key\": \"model-invariant-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"model-version-id\",\n \"value\": {\n \"key\": \"model-version-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"orchestration-status\",\n \"value\": {\n \"key\": \"orchestration-status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"prov-status\",\n \"value\": {\n \"key\": \"prov-status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"relationship-list\",\n \"value\": {\n \"key\": \"relationship-list\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_VnfRelationShipListType\",\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 \"key\": \"service-id\",\n \"value\": {\n \"key\": \"service-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"vnf-id\",\n \"value\": {\n \"key\": \"vnf-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"vnf-name\",\n \"value\": {\n \"key\": \"vnf-name\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"vnf-type\",\n \"value\": {\n \"key\": \"vnf-type\",\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\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"ApexExample_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;\\n\\nvar albumID = uuidType.fromString(\\\"d0050623-18e5-46c9-9298-9a567990cd7c\\\");\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"ApexExample_EventDetailsAlbum\\\").get(albumID.toString());\\n\\nvar vnfDetails = executor.inFields;\\nexecutor.logger.info(\\\"ApexExample_HandleAAISuccessResponseTask processing event - \\\" + vnfDetails);\\neventDetailsAlbum.put(\\\"vnfDetails\\\", vnfDetails);\\nvar commonEventHeader = eventDetailsAlbum.get(\\\"commonEventHeader\\\");\\nvar faultFields = eventDetailsAlbum.get(\\\"faultFields\\\");\\n\\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\\\"commonHeader\\\").createNewInstance();\\ncommonHeader.put(\\\"subRequestId\\\", commonEventHeader.get(\\\"eventId\\\"));\\ncommonHeader.put(\\\"requestId\\\", uuidType.randomUUID().toString());\\ncommonHeader.put(\\\"originatorId\\\", \\\"POLICY\\\");\\n\\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\\\"actionIdentifiers\\\").createNewInstance();\\nactionIdentifiers.put(\\\"mode\\\", \\\"sync\\\");\\nactionIdentifiers.put(\\\"blueprintName\\\", \\\"vnf-test-cba\\\");\\nactionIdentifiers.put(\\\"blueprintVersion\\\", \\\"1.0.0\\\");\\nactionIdentifiers.put(\\\"actionName\\\", \\\"modify-config\\\");\\n\\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewSubInstance(\\\"update_DasH_properties_record\\\");\\npayloadProperties.put(\\\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\\\", vnfDetails.get(\\\"service-id\\\").toString())\\npayloadProperties.put(\\\"generic_DasH_vnf_DoT_vnf_DasH_id\\\", vnfDetails.get(\\\"vnf-id\\\").toString())\\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewSubInstance(\\\"update_DasH_data_record\\\");\\ndataRecord.put(\\\"active_DasH_streams\\\",\\\"7\\\")\\npayloadProperties.put(\\\"data\\\", dataRecord)\\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewSubInstance(\\\"CDSRequestPayloadEntry\\\");\\npayloadEntry.put(\\\"update_DasH_properties\\\", payloadProperties)\\npayloadEntry.put(\\\"vfStatus\\\", faultFields.get(\\\"vfStatus\\\"))\\nvar payload = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\").createNewInstance();\\nvar payloadSchemaHelper = executor.subject.getOutFieldSchemaHelper(\\\"payload\\\");\\npayload.put(\\\"modify_DasH_config_DasH_request\\\", payloadEntry);\\n\\n//always use the executor.stringify2json method instead of JSON.strngify\\nexecutor.logger.info(\\\"CDS modify config request payload - \\\" + executor.stringify2Json(payload, payloadSchemaHelper));\\n\\nexecutor.outFields.put(\\\"commonHeader\\\", commonHeader);\\nexecutor.outFields.put(\\\"actionIdentifiers\\\", actionIdentifiers);\\nexecutor.outFields.put(\\\"payload\\\", payload);\\ntrue;\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_HandleVesEventTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"event\",\n \"value\": {\n \"key\": \"event\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\\n//albumID will be used to fetch info from our album later\\nvar albumID = uuidType.fromString(\\\"d0050623-18e5-46c9-9298-9a567990cd7c\\\");\\nvar eventDetailsAlbum = executor.getContextAlbum(\\\"ApexExample_EventDetailsAlbum\\\").getSchemaHelper().createNewInstance();\\nvar returnValue = true;\\n\\nvar event = executor.inFields.get(\\\"event\\\");\\nexecutor.logger.info(\\\"ApexExample_HandleVesEventTask processing VesEvent - \\\" + event);\\n\\nvar commonEventHeader = event.get(\\\"commonEventHeader\\\");\\nvar faultFields = event.get(\\\"faultFields\\\");\\n// save the event processing start time in apex\\ncommonEventHeader.put(\\\"startEpochMicrosec\\\", longType(new Date().getTime()));\\n//save the incoming fault event details to album\\neventDetailsAlbum.put(\\\"commonEventHeader\\\", commonEventHeader)\\neventDetailsAlbum.put(\\\"faultFields\\\", faultFields)\\nexecutor.getContextAlbum(\\\"ApexExample_EventDetailsAlbum\\\").put(albumID.toString(), eventDetailsAlbum);\\n\\nexecutor.getExecutionProperties().setProperty(\\\"vnf-name\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"sourceName\\\"));\\n\\nexecutor.logger.info(executor.outFields);\\nexecutor.logger.info(\\\"sending the status to log.\\\");\\n\\nvar logData = new HashMapType();\\nlogData.put(\\\"eventProcessingStart\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"startEpochMicrosec\\\"));\\nlogData.put(\\\"eventProcessingEnd\\\", longType(new Date().getTime()));\\nlogData.put(\\\"eventId\\\", eventDetailsAlbum.get(\\\"commonEventHeader\\\").get(\\\"eventId\\\"));\\nlogData.put(\\\"from\\\", \\\"Apex-PDP\\\");\\nlogData.put(\\\"status\\\", \\\"ACTIVE\\\");\\nlogData.put(\\\"message\\\", \\\"VES Event received\\\");\\n\\n//always use the executor.stringify2json method instead of JSON.strngify\\nfireLogEvent(executor.stringify2Json(logData));\\nreturnValue;\\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\": \"APEXExamplePolicy_Events\",\n \"version\": \"0.0.1\"\n },\n \"eventMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAIFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"AAI\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"requestError\",\n \"value\": {\n \"key\": \"requestError\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAIRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\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 }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_AAISuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"AAI\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\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\": \"is-closed-loop-disabled\",\n \"value\": {\n \"key\": \"is-closed-loop-disabled\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"model-customization-id\",\n \"value\": {\n \"key\": \"model-customization-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"model-invariant-id\",\n \"value\": {\n \"key\": \"model-invariant-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"model-version-id\",\n \"value\": {\n \"key\": \"model-version-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"orchestration-status\",\n \"value\": {\n \"key\": \"orchestration-status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"prov-status\",\n \"value\": {\n \"key\": \"prov-status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"relationship-list\",\n \"value\": {\n \"key\": \"relationship-list\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_VnfRelationShipListType\",\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 \"key\": \"service-id\",\n \"value\": {\n \"key\": \"service-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"vnf-id\",\n \"value\": {\n \"key\": \"vnf-id\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"vnf-name\",\n \"value\": {\n \"key\": \"vnf-name\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"vnf-type\",\n \"value\": {\n \"key\": \"vnf-type\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"CDS\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifySuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"CDS\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartFailureResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"CDS\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSRestartResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartRequestEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartSuccessResponseEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"CDS\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"actionIdentifiers\",\n \"value\": {\n \"key\": \"actionIdentifiers\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_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\": \"ApexExample_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\": \"ApexExample_CDSRestartResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_LogStatusEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"APEX\",\n \"target\": \"DCAE\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"eventId\",\n \"value\": {\n \"key\": \"eventId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingEnd\",\n \"value\": {\n \"key\": \"eventProcessingEnd\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"eventProcessingStart\",\n \"value\": {\n \"key\": \"eventProcessingStart\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"from\",\n \"value\": {\n \"key\": \"from\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\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 \"key\": \"status\",\n \"value\": {\n \"key\": \"status\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_VesEvent\",\n \"version\": \"0.0.1\"\n },\n \"nameSpace\": \"org.onap.policy.apex.example\",\n \"source\": \"DCAE\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"event\",\n \"value\": {\n \"key\": \"event\",\n \"fieldSchemaKey\": {\n \"name\": \"ApexExample_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n }\n ]\n }\n },\n \"albums\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Albums\",\n \"version\": \"0.0.1\"\n },\n \"albums\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_EventDetailsAlbum\",\n \"version\": \"0.0.1\"\n },\n \"scope\": \"policy\",\n \"isWritable\": true,\n \"itemSchema\": {\n \"name\": \"ApexExample_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n }\n }\n }\n ]\n }\n },\n \"schemas\": {\n \"key\": {\n \"name\": \"APEXExamplePolicy_Schemas\",\n \"version\": \"0.0.1\"\n },\n \"schemas\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ApexExample_AAIRequestErrorType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_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\": \"ApexExample_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSActionIdentifiersType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSActionIdentifiers_Type\\\",\\n \\\"namespace\\\": \\\"org.onap.policy.apex.onap.helloworld\\\",\\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\": \"ApexExample_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSConfigModifyResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"CDSConfigResponsePayloadEntry\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"modify_DasH_config_DasH_response\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"modify_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\": \"ApexExample_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSFailureResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseCommonHeader_Type\\\",\\n \\\"namespace\\\": \\\"org.onap.policy.apex.onap.helloworld\\\",\\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\": \"ApexExample_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSFailureResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseStatus_Type\\\",\\n \\\"namespace\\\": \\\"org.onap.policy.apex.onap.helloworld\\\",\\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\": \"ApexExample_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRequestCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSRequestCommonHeader_Type\\\",\\n \\\"namespace\\\": \\\"org.onap.policy.apex.onap.helloworld\\\",\\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\": \"ApexExample_CDSRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRequestPayloadType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"map\\\",\\n \\\"values\\\": {\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSRequestPayloadEntry\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"vfStatus\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"update_DasH_properties\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"update_DasH_properties_record\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"generic_DasH_vnf_DoT_vnf_DasH_id\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"data\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"update_DasH_data_record\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"active_DasH_streams\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSRestartResponsePayloadType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"CDSRestartResponsePayloadEntry\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"restart_DasH_response\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"restart_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\": \"ApexExample_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSSuccessResponseCommonHeaderType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseCommonHeader_Type\\\",\\n \\\"namespace\\\": \\\"org.onap.policy.apex.onap.helloworld\\\",\\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\": \"ApexExample_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_CDSSuccessResponseStatusType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"CDSResponseStatus_Type\\\",\\n \\\"namespace\\\": \\\"org.onap.policy.apex.onap.helloworld\\\",\\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\": \"ApexExample_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_EventDetailsAlbumType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"eventDetails\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"namespace\\\": \\\"com.acme.avro\\\",\\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\\\": \\\"vesEventListenerVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"faultFields\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"faultFields\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"alarmAdditionalInformation\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"alarmAdditionalInformation\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"PilotNumberPoolSize\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"alarmCondition\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventSeverity\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventSourceType\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"faultFieldsVersion\\\",\\n \\\"type\\\": \\\"int\\\"\\n },\\n {\\n \\\"name\\\": \\\"specificProblem\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"vfStatus\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"vnfDetails\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"vnfDetails\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"vnf_DasH_id\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"vnf_DasH_name\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"vnf_DasH_type\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"service_DasH_id\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"prov_DasH_status\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"orchestration_DasH_status\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"in_DasH_maint\\\",\\n \\\"type\\\": \\\"boolean\\\"\\n },\\n {\\n \\\"name\\\": \\\"is_DasH_closed_DasH_loop_DasH_disabled\\\",\\n \\\"type\\\": \\\"boolean\\\"\\n },\\n {\\n \\\"name\\\": \\\"resource_DasH_version\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"model_DasH_invariant_DasH_id\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"model_DasH_version_DasH_id\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"model_DasH_customization_DasH_id\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_VesEventType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"event\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"namespace\\\": \\\"com.acme.avro\\\",\\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\\\": \\\"vesEventListenerVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"faultFields\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"faultFields\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"alarmAdditionalInformation\\\",\\n \\\"type\\\": {\\n \\\"name\\\": \\\"alarmAdditionalInformation\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"PilotNumberPoolSize\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"alarmCondition\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventSeverity\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"eventSourceType\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"faultFieldsVersion\\\",\\n \\\"type\\\": \\\"int\\\"\\n },\\n {\\n \\\"name\\\": \\\"specificProblem\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"vfStatus\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"ApexExample_VnfRelationShipListType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ApexExample_VnfRelationShipListType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"name\\\": \\\"VnfRelationShipListType\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"relationship\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": {\\n \\\"name\\\": \\\"relationship_record\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"related_DasH_to\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"relationship_DasH_label\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"related_DasH_link\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"relationship_DasH_data\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": {\\n \\\"name\\\": \\\"relationship_DasH_data_record\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"relationship_DasH_key\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"relationship_DasH_value\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n }\\n },\\n {\\n \\\"name\\\": \\\"related_DasH_to_DasH_property\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"array\\\",\\n \\\"items\\\": {\\n \\\"name\\\": \\\"related_DasH_to_DasH_property_record\\\",\\n \\\"type\\\": \\\"record\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"property_DasH_key\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"property_DasH_value\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n }\\n }\\n ]\\n }\\n }\\n }\\n ]\\n}\"\n }\n },\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\": \"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 \"eventInputParameters\": {\n \"ApexExample_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-vnf-input/cl1/apex1?timeout=30000\"\n }\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n },\n \"eventName\": \"ApexExample_VesEvent\"\n },\n \"ApexExample_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/generic-vnfs/generic-vnf?vnf-name={vnf-name}\",\n \"httpMethod\": \"GET\",\n \"httpCodeFilter\": \"[245][0-9][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\": \"ApexExample_AAISuccessResponseEvent|ApexExample_AAIFailureResponseEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"ApexExample_AAIProducer\",\n \"requestorTimeout\": 2000\n },\n \"ApexExample_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\": \"ApexExample_CDSConfigModifySuccessResponseEvent|ApexExample_CDSConfigModifyFailureResponseEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"ApexExample_CDSConfigModifyRequestProducer\",\n \"requestorTimeout\": 500\n },\n \"ApexExample_CDSRestartResponseConsumer\": {\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\": \"ApexExample_CDSRestartSuccessResponseEvent|ApexExample_CDSRestartFailureResponseEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"ApexExample_CDSRestartRequestProducer\",\n \"requestorTimeout\": 500\n }\n },\n \"eventOutputParameters\": {\n \"ApexExample_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\": \"ApexExample_AAIRequestEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"ApexExample_AAIResponseConsumer\",\n \"requestorTimeout\": 2000\n },\n \"ApexExample_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\": \"ApexExample_CDSConfigModifyRequestEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"ApexExample_CDSConfigModifyResponseConsumer\",\n \"requestorTimeout\": 500\n },\n \"ApexExample_CDSRestartRequestProducer\": {\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\": \"ApexExample_CDSRestartRequestEvent\",\n \"requestorMode\": true,\n \"requestorPeer\": \"ApexExample_CDSRestartResponseConsumer\",\n \"requestorTimeout\": 500\n },\n \"ApexExample_NotificationProducer\": {\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-CL-MGT\"\n }\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n },\n \"eventNameFilter\": \"ApexExample_LogStatusEvent\"\n },\n \"ApexExample_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" - ] - } - }, - "response": [] - }, - { - "name": "Verify VNF Policy", - "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/onap.policies.apex.vnf.Example/versions/1.0.0", - "host": [ - "{{POLICY-API-URL}}" - ], - "path": [ - "policy", - "api", - "v1", - "policies", - "onap.policies.apex.vnf.Example", - "versions", - "1.0.0" - ] - } - }, - "response": [] - }, - { - "name": "Create PNF Policy", - "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 \"properties\": {\n \"engineServiceParameters\": {\n \"name\": \"TestApexEngine\",\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 \"policy_type_impl\": {\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 }\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 }\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 }\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 }\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 }\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 }\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 }\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 }\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 \"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" - ] - } - }, - "response": [] - }, - { - "name": "Verify PNF Policy", - "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/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" - ] - } - }, - "response": [] - }, - { - "name": "PDP Group Query", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps" - ] - } - }, - "response": [] - }, - { - "name": "Deploy Policy", - "request": { - "method": "POST", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"groups\": [\r\n {\r\n \"name\": \"defaultGroup\",\r\n \"deploymentSubgroups\": [\r\n {\r\n \"pdpType\": \"apex\",\r\n \"action\": \"POST\",\r\n \"policies\": [\r\n {\r\n \"name\": \"onap.policies.apex.vnf.Example\",\r\n \"version\": \"1.0.0\"\r\n },\r\n {\r\n \"name\": \"onap.policies.apex.pnf.Example\",\r\n \"version\": \"1.0.0\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}" - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/deployments/batch", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps", - "deployments", - "batch" - ] - } - }, - "response": [] - }, - { - "name": "PDP Group Query", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps" - ] - } - }, - "response": [] - }, - { - "name": "VNF Policy Status", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.apex.vnf.Example/1.0.0", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "policies", - "status", - "defaultGroup", - "onap.policies.apex.vnf.Example", - "1.0.0" - ] - } - }, - "response": [] - }, - { - "name": "PNF Policy Status", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.apex.pnf.Example/1.0.0", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "policies", - "status", - "defaultGroup", - "onap.policies.apex.pnf.Example", - "1.0.0" - ] - } - }, - "response": [] - }, - { - "name": "VNF Policy Audit", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/defaultGroup/onap.policies.apex.vnf.Example/1.0.0?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "policies", - "audit", - "defaultGroup", - "onap.policies.apex.vnf.Example", - "1.0.0" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - } - }, - "response": [] - }, - { - "name": "PNF Policy Audit", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/defaultGroup/onap.policies.apex.pnf.Example/1.0.0?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "policies", - "audit", - "defaultGroup", - "onap.policies.apex.pnf.Example", - "1.0.0" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - } - }, - "response": [] - }, - { - "name": "Fetch PDP Statistics", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/apex?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps", - "statistics", - "defaultGroup", - "apex" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - }, - "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute" - }, - "response": [] - }, - { - "name": "Send event to dmaap - VNF Success", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "name": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"event\": {\n \"commonEventHeader\": {\n \"domain\": \"fault\",\n \"eventId\": \"fault0000245\",\n \"eventName\": \"Fault_Vscf:PilotNumberPoolExhaustion\",\n \"lastEpochMicrosec\": 1413378172000000,\n \"priority\": \"High\",\n \"reportingEntityName\": \"ibcx0001vm002oam001\",\n \"sequence\": 1,\n \"sourceId\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\n \"sourceName\": \"dummy-vnf\",\n \"startEpochMicrosec\": 1413378172000000,\n \"timeZoneOffset\": \"UTC-05:30\",\n \"version\": \"4.0.1\",\n \"vesEventListenerVersion\": \"7.0.1\"\n },\n \"faultFields\": {\n \"alarmAdditionalInformation\": {\n \"PilotNumberPoolSize\": \"1000\"\n },\n \"alarmCondition\": \"PilotNumberPoolExhaustion\",\n \"eventSeverity\": \"CRITICAL\",\n \"eventSourceType\": \"other\",\n \"faultFieldsVersion\": 4,\n \"specificProblem\": \"Calls cannot complete - pilot numbers are unavailable\",\n \"vfStatus\": \"Active\"\n }\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{DMAAP-URL}}/events/apex-vnf-input", - "host": [ - "{{DMAAP-URL}}" - ], - "path": [ - "events", - "apex-vnf-input" - ] - } - }, - "response": [] - }, - { - "name": "Read notifications from DMaaP", - "request": { - "auth": { - "type": "noauth" - }, - "method": "GET", - "header": [ - { - "key": "Content-Type", - "name": "Content-Type", - "type": "text", - "value": "application/json", - "disabled": true - } - ], - "url": { - "raw": "{{DMAAP-URL}}/events/APEX-CL-MGT/g1/c1?timeout=30000", - "host": [ - "{{DMAAP-URL}}" - ], - "path": [ - "events", - "APEX-CL-MGT", - "g1", - "c1" - ], - "query": [ - { - "key": "timeout", - "value": "30000" - } - ] - } - }, - "response": [] - }, - { - "name": "Fetch PDP Statistics", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/apex?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps", - "statistics", - "defaultGroup", - "apex" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - }, - "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute" - }, - "response": [] - }, - { - "name": "Send event to dmaap - VNF Failure", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "name": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"event\": {\n \"commonEventHeader\": {\n \"domain\": \"fault\",\n \"eventId\": \"fault0000245\",\n \"eventName\": \"Fault_Vscf:PilotNumberPoolExhaustion\",\n \"lastEpochMicrosec\": 1413378172000000,\n \"priority\": \"High\",\n \"reportingEntityName\": \"ibcx0001vm002oam001\",\n \"sequence\": 1,\n \"sourceId\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\n \"sourceName\": \"dummy-vnf\",\n \"startEpochMicrosec\": 1413378172000000,\n \"timeZoneOffset\": \"UTC-05:30\",\n \"version\": \"4.0.1\",\n \"vesEventListenerVersion\": \"7.0.1\"\n },\n \"faultFields\": {\n \"alarmAdditionalInformation\": {\n \"PilotNumberPoolSize\": \"1000\"\n },\n \"alarmCondition\": \"PilotNumberPoolExhaustion\",\n \"eventSeverity\": \"CRITICAL\",\n \"eventSourceType\": \"other\",\n \"faultFieldsVersion\": 4,\n \"specificProblem\": \"Calls cannot complete - pilot numbers are unavailable\",\n \"vfStatus\": \"Inactive\"\n }\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{DMAAP-URL}}/events/apex-vnf-input", - "host": [ - "{{DMAAP-URL}}" - ], - "path": [ - "events", - "apex-vnf-input" - ] - } - }, - "response": [] - }, - { - "name": "Read notifications from DMaaP", - "request": { - "auth": { - "type": "noauth" - }, - "method": "GET", - "header": [ - { - "key": "Content-Type", - "name": "Content-Type", - "type": "text", - "value": "application/json", - "disabled": true - } - ], - "url": { - "raw": "{{DMAAP-URL}}/events/APEX-CL-MGT/g1/c1?timeout=30000", - "host": [ - "{{DMAAP-URL}}" - ], - "path": [ - "events", - "APEX-CL-MGT", - "g1", - "c1" - ], - "query": [ - { - "key": "timeout", - "value": "30000" - } - ] - } - }, - "response": [] - }, - { - "name": "Fetch PDP Statistics", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/apex?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps", - "statistics", - "defaultGroup", - "apex" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - }, - "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute" - }, - "response": [] - }, - { - "name": "Send event to dmaap - PNF Success", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "name": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"event\" : {\n \"commonEventHeader\" : {\n \"startEpochMicrosec\" : 1597953057126,\n \"sourceId\" : \"927b2580-36d9-4f13-8421-3c9d43b7a57e\",\n \"eventId\" : \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\n \"lastEpochMicrosec\" : 1597952499468,\n \"eventName\" : \"Report hostname & IP\",\n \"sourceName\" : \"Simulated_Device\",\n \"reportingEntityName\" : \"cepe-nifi-Beefsteak\",\n \"vesEventListenerVersion\" : \"7.1\",\n \"internalHeaderFields\" : { },\n \"version\" : \"4.0.1\",\n \"priority\" : \"Normal\",\n \"sequence\" : 1,\n \"domain\" : \"other\"\n },\n \"otherFields\" : {\n \"hashMap\" : {\n \"hostname\" : \"the-hostname\",\n \"pnfId\": \"927b2580-36d9-4f13-8421-3c9d43b7a57e\",\n \"ip\" : \"10.195.200.40\",\n \"pnfName\": \"simple-cl-pnf\"\n },\n \"otherFieldsVersion\" : \"3.0\"\n }\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{DMAAP-URL}}/events/apex-pnf-input", - "host": [ - "{{DMAAP-URL}}" - ], - "path": [ - "events", - "apex-pnf-input" - ] - } - }, - "response": [] - }, - { - "name": "Read notifications from DMaaP", - "request": { - "auth": { - "type": "noauth" - }, - "method": "GET", - "header": [ - { - "key": "Content-Type", - "name": "Content-Type", - "type": "text", - "value": "application/json", - "disabled": true - } - ], - "url": { - "raw": "{{DMAAP-URL}}/events/APEX-CL-MGT/g1/c1?timeout=30000", - "host": [ - "{{DMAAP-URL}}" - ], - "path": [ - "events", - "APEX-CL-MGT", - "g1", - "c1" - ], - "query": [ - { - "key": "timeout", - "value": "30000" - } - ] - } - }, - "response": [] - }, - { - "name": "Fetch PDP Statistics", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/apex?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps", - "statistics", - "defaultGroup", - "apex" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - }, - "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute" - }, - "response": [] - }, - { - "name": "Send event to dmaap - PNF Failure", - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "name": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"event\" : {\n \"commonEventHeader\" : {\n \"startEpochMicrosec\" : 1597953057126,\n \"sourceId\" : \"927b2580-36d9-4f13-8421-3c9d43b7a57e\",\n \"eventId\" : \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\n \"lastEpochMicrosec\" : 1597952499468,\n \"eventName\" : \"Report hostname & IP\",\n \"sourceName\" : \"Simulated_Device\",\n \"reportingEntityName\" : \"cepe-nifi-Beefsteak\",\n \"vesEventListenerVersion\" : \"7.1\",\n \"internalHeaderFields\" : { },\n \"version\" : \"4.0.1\",\n \"priority\" : \"Normal\",\n \"sequence\" : 1,\n \"domain\" : \"other\"\n },\n \"otherFields\" : {\n \"hashMap\" : {\n \"hostname\" : \"the-hostname\",\n \"pnfId\": \"927b2580-36d9-4f13-8421-3c9d43b7a77e\",\n \"ip\" : \"10.195.200.40\",\n \"pnfName\": \"simple-cl-pnf-failure\"\n },\n \"otherFieldsVersion\" : \"3.0\"\n }\n }\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{DMAAP-URL}}/events/apex-pnf-input", - "host": [ - "{{DMAAP-URL}}" - ], - "path": [ - "events", - "apex-pnf-input" - ] - } - }, - "response": [] - }, - { - "name": "Read notifications from DMaaP", - "request": { - "auth": { - "type": "noauth" - }, - "method": "GET", - "header": [ - { - "key": "Content-Type", - "name": "Content-Type", - "type": "text", - "value": "application/json", - "disabled": true - } - ], - "url": { - "raw": "{{DMAAP-URL}}/events/APEX-CL-MGT/g1/c1?timeout=30000", - "host": [ - "{{DMAAP-URL}}" - ], - "path": [ - "events", - "APEX-CL-MGT", - "g1", - "c1" - ], - "query": [ - { - "key": "timeout", - "value": "30000" - } - ] - } - }, - "response": [] - }, - { - "name": "Fetch PDP Statistics", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/apex?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps", - "statistics", - "defaultGroup", - "apex" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - }, - "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute" - }, - "response": [] - }, - { - "name": "Undeploy Policy", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "username", - "value": "healthcheck", - "type": "string" - }, - { - "key": "password", - "value": "{{HEALTHCHECK-PASSWORD}}", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"groups\": [\n {\n \"name\": \"defaultGroup\",\n \"deploymentSubgroups\": [\n {\n \"pdpType\": \"apex\",\n \"action\": \"DELETE\",\n \"policies\": [\n {\n \"name\": \"onap.policies.apex.vnf.Example\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.apex.pnf.Example\",\n \"version\": \"1.0.0\"\n }\n ]\n }\n ]\n }\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/deployments/batch", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps", - "deployments", - "batch" - ] - } - }, - "response": [] - }, - { - "name": "PDP Group Query", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"groups\": [\r\n {\r\n \"name\": \"defaultGroup\",\r\n \"deploymentSubgroups\": [\r\n {\r\n \"pdpType\": \"apex\",\r\n \"action\": \"POST\",\r\n \"policies\": [{\r\n \"name\": \"onap.policies.controlloop.operational.apex.Sampledomain\",\r\n \"version\": \"1.0.0\"\r\n }]\r\n }\r\n ]\r\n }\r\n ]\r\n}" - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps" - ] - } - }, - "response": [] - }, - { - "name": "VNF Policy Status", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.apex.vnf.Example/1.0.0", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "policies", - "status", - "defaultGroup", - "onap.policies.apex.vnf.Example", - "1.0.0" - ] - } - }, - "response": [] - }, - { - "name": "PNF Policy Status", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.apex.pnf.Example/1.0.0", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "policies", - "status", - "defaultGroup", - "onap.policies.apex.pnf.Example", - "1.0.0" - ] - } - }, - "response": [] - }, - { - "name": "VNF Policy Audit", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/defaultGroup/onap.policies.apex.vnf.Example/1.0.0?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "policies", - "audit", - "defaultGroup", - "onap.policies.apex.vnf.Example", - "1.0.0" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - } - }, - "response": [] - }, - { - "name": "PNF Policy Audit", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/defaultGroup/onap.policies.apex.pnf.Example/1.0.0?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "policies", - "audit", - "defaultGroup", - "onap.policies.apex.pnf.Example", - "1.0.0" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - } - }, - "response": [] - }, - { - "name": "Fetch PDP Statistics", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/apex?recordCount=5", - "host": [ - "{{POLICY-PAP-URL}}" - ], - "path": [ - "policy", - "pap", - "v1", - "pdps", - "statistics", - "defaultGroup", - "apex" - ], - "query": [ - { - "key": "recordCount", - "value": "5" - } - ] - }, - "description": "This is an API to fetch current statistics information for the specified PDP instance (example - \"fireantsdev-policy-apex-pdp-0\") of the specified PdpGroup (example - \"defaultGroup\") & PdpSubgroup (example - \"apex\"). You can filter by the number of entries using recordCount attribute" - }, - "response": [] - }, - { - "name": "Delete VNF Policy", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - } - ], - "url": { - "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.apex.vnf.Example/versions/1.0.0", - "host": [ - "{{POLICY-API-URL}}" - ], - "path": [ - "policy", - "api", - "v1", - "policies", - "onap.policies.apex.vnf.Example", - "versions", - "1.0.0" - ] - } - }, - "response": [] - }, - { - "name": "Delete PNF Policy", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "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" - ] - } - }, - "response": [] - } - ], - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "{{HEALTHCHECK-PASSWORD}}", - "type": "string" - }, - { - "key": "username", - "value": "healthcheck", - "type": "string" - } - ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ] -} \ No newline at end of file diff --git a/docs/development/devtools/smoke/postman/create-vnf-pnf-aai.postman_collection.json b/docs/development/devtools/smoke/postman/create-vnf-pnf-aai.postman_collection.json deleted file mode 100644 index d6894bc6..00000000 --- a/docs/development/devtools/smoke/postman/create-vnf-pnf-aai.postman_collection.json +++ /dev/null @@ -1,788 +0,0 @@ -{ - "info": { - "_postman_id": "10fb21f9-99e5-4097-88c9-87b0eed85b3a", - "name": "Create VNF & PNF in AAI", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - { - "name": "Add Customer", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"global-customer-id\": \"DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf\",\r\n \"subscriber-name\": \"DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf\",\r\n \"subscriber-type\": \"INFRA\"\r\n}" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v11/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v11", - "business", - "customers", - "customer", - "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf" - ] - } - }, - "response": [] - }, - { - "name": "Add CloudRegion", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - }, - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Real-Time", - "value": "true", - "type": "text" - }, - { - "key": "X-TransactionId", - "value": "AAI-Temp-Tool", - "type": "text" - }, - { - "key": "X-FromAppId", - "value": "AAI-Temp-Tool", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"cloud-owner\": \"CloudOwner\",\n \"cloud-region-id\": \"RegionOne\",\n \"cloud-type\": \"openstack\",\n \"owner-defined-type\": \"owner-defined-type\",\n \"cloud-region-version\": \"titanium_cloud\",\n \"identity-url\": \"http://10.195.194.213:5000/v2.0\",\n \"cloud-zone\": \"CloudZone\",\n \"sriov-automation\": true,\n \"tenants\": {\n \"tenant\": [\n {\n \"tenant-id\": \"7320ec4a5b9d4589ba7c4412ccfd290f\",\n \"tenant-name\": \"nso-vnf\",\n \"vservers\": {\n \"vserver\": [\n {\n \"vserver-id\": \"c82153dc-8d84-4e69-9673-5e0a60030779\",\n \"vserver-name\": \"viptela_scripts\",\n \"vserver-name2\": \"viptela_scripts\",\n \"prov-status\": \"Running\",\n \"vserver-selflink\": \"http://10.195.194.213:8774/v2.1/7320ec4a5b9d4589ba7c4412ccfd290f/servers/c82153dc-8d84-4e69-9673-5e0a60030779\",\n \"in-maint\": false,\n \"is-closed-loop-disabled\": false\n }\n ]\n }\n }\n ]\n }\n}" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "cloud-infrastructure", - "cloud-regions", - "cloud-region", - "CloudOwner", - "RegionOne" - ] - } - }, - "response": [] - }, - { - "name": "Add Service Subscription", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"service-type\": \"vFWDT\",\r\n \"relationship-list\": {\r\n \"relationship\": [\r\n {\r\n \"related-to\": \"tenant\",\r\n \"related-link\": \"/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/7320ec4a5b9d4589ba7c4412ccfd290f\",\r\n \"relationship-data\": [\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-owner\",\r\n \"relationship-value\": \"CloudOwner\"\r\n },\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-region-id\",\r\n \"relationship-value\": \"RegionOne\"\r\n },\r\n {\r\n \"relationship-key\": \"tenant.tenant-id\",\r\n \"relationship-value\": \"7320ec4a5b9d4589ba7c4412ccfd290f\"\r\n }\r\n ],\r\n \"related-to-property\": [\r\n {\r\n \"property-key\": \"tenant.tenant-name\",\r\n \"property-value\": \"nso-vnf\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v11/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v11", - "business", - "customers", - "customer", - "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf", - "service-subscriptions", - "service-subscription", - "vFWDT" - ] - } - }, - "response": [] - }, - { - "name": "Add Model", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"model-invariant-id\": \"vTEST_VITELA\",\r\n \"model-type\": \"model_type\",\r\n \"model-vers\": {\r\n \"model-ver\": [\r\n {\r\n \"model-version-id\": \"vTEST\",\r\n \"model-name\": \"vTEST\",\r\n \"model-version\": \"v1.4.0\"\r\n }\r\n ]\r\n }\r\n}\r\n" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v14/service-design-and-creation/models/model/vTEST_VITELA", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "service-design-and-creation", - "models", - "model", - "vTEST_VITELA" - ] - } - }, - "response": [] - }, - { - "name": "Add Service Instance", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"service-instance-name\": \"Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659\",\r\n \"environment-context\": \"General_Revenue-Bearing\",\r\n \"workload-context\": \"Production\",\r\n \"model-invariant-id\": \"vTEST_VITELA\",\r\n \"model-version-id\": \"vTEST\",\r\n \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/55322ada-145a-492e-b196-0d171539a4b2/service-data/service-topology/\",\r\n \"orchestration-status\": \"Active\"\r\n}" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v11/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v11", - "business", - "customers", - "customer", - "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf", - "service-subscriptions", - "service-subscription", - "vFWDT", - "service-instances", - "service-instance", - "55322ada-145a-492e-b196-0d171539a4b2" - ] - } - }, - "response": [] - }, - { - "name": "Add dummy-vnf", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - }, - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Real-Time", - "value": "true", - "type": "text" - }, - { - "key": "X-TransactionId", - "value": "AAI-Temp-Tool", - "type": "text" - }, - { - "key": "X-FromAppId", - "value": "AAI-Temp-Tool", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n \"vnf-name\": \"dummy-vnf\",\r\n \"vnf-type\": \"vfw_cnf_cds/null\",\r\n \"service-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"prov-status\": \"ACTIVE\",\r\n \"orchestration-status\": \"Assigned\",\r\n \"in-maint\": false,\r\n \"is-closed-loop-disabled\": false,\r\n \"model-invariant-id\": \"vTEST_XYZ\",\r\n \"model-version-id\": \"vTEST\",\r\n \"model-customization-id\": \"37b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n \"relationship-list\": {\r\n \"relationship\": [\r\n {\r\n \"related-to\": \"service-instance\",\r\n \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\",\r\n \"related-link\": \"/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"relationship-data\": [\r\n {\r\n \"relationship-key\": \"customer.global-customer-id\",\r\n \"relationship-value\": \"DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf\"\r\n },\r\n {\r\n \"relationship-key\": \"service-subscription.service-type\",\r\n \"relationship-value\": \"vFWDT\"\r\n },\r\n {\r\n \"relationship-key\": \"service-instance.service-instance-id\",\r\n \"relationship-value\": \"55322ada-145a-492e-b196-0d171539a4b2\"\r\n }\r\n ],\r\n \"related-to-property\": [\r\n {\r\n \"property-key\": \"service-instance.service-instance-name\",\r\n \"property-value\": \"Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659\"\r\n }\r\n ]\r\n },\r\n {\r\n \"related-to\": \"tenant\",\r\n \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\",\r\n \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/7320ec4a5b9d4589ba7c4412ccfd290f\",\r\n \"relationship-data\": [\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-owner\",\r\n \"relationship-value\": \"CloudOwner\"\r\n },\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-region-id\",\r\n \"relationship-value\": \"RegionOne\"\r\n },\r\n {\r\n \"relationship-key\": \"tenant.tenant-id\",\r\n \"relationship-value\": \"7320ec4a5b9d4589ba7c4412ccfd290f\"\r\n }\r\n ],\r\n \"related-to-property\": [\r\n {\r\n \"property-key\": \"tenant.tenant-name\",\r\n \"property-value\": \"nso-vnf\"\r\n }\r\n ]\r\n },\r\n {\r\n \"related-to\": \"vserver\",\r\n \"relationship-label\": \"tosca.relationships.HostedOn\",\r\n \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/7320ec4a5b9d4589ba7c4412ccfd290f/vservers/vserver/c82153dc-8d84-4e69-9673-5e0a60030779\",\r\n \"relationship-data\": [\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-owner\",\r\n \"relationship-value\": \"CloudOwner\"\r\n },\r\n {\r\n \"relationship-key\": \"cloud-region.cloud-region-id\",\r\n \"relationship-value\": \"RegionOne\"\r\n },\r\n {\r\n \"relationship-key\": \"tenant.tenant-id\",\r\n \"relationship-value\": \"7320ec4a5b9d4589ba7c4412ccfd290f\"\r\n },\r\n {\r\n \"relationship-key\": \"vserver.vserver-id\",\r\n \"relationship-value\": \"c82153dc-8d84-4e69-9673-5e0a60030779\"\r\n }\r\n ],\r\n \"related-to-property\": [\r\n {\r\n \"property-key\": \"vserver.vserver-name\",\r\n \"property-value\": \"viptela_scripts\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v14/network/generic-vnfs/generic-vnf/57b008b9-b367-4359-93fd-74d3ce0ee1a0", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "network", - "generic-vnfs", - "generic-vnf", - "57b008b9-b367-4359-93fd-74d3ce0ee1a0" - ] - } - }, - "response": [] - }, - { - "name": "Verify dummy-vnf", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - }, - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Real-Time", - "value": "true", - "type": "text" - }, - { - "key": "X-TransactionId", - "value": "AAI-Temp-Tool", - "type": "text" - }, - { - "key": "X-FromAppId", - "value": "AAI-Temp-Tool", - "type": "text" - } - ], - "url": { - "raw": "{{AAI-URL}}/aai/v14/network/generic-vnfs/generic-vnf/57b008b9-b367-4359-93fd-74d3ce0ee1a0", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "network", - "generic-vnfs", - "generic-vnf", - "57b008b9-b367-4359-93fd-74d3ce0ee1a0" - ] - } - }, - "response": [] - }, - { - "name": "Add simple-cl-pnf", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - }, - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Real-Time", - "value": "true", - "type": "text" - }, - { - "key": "X-TransactionId", - "value": "AAI-Temp-Tool", - "type": "text" - }, - { - "key": "X-FromAppId", - "value": "AAI-Temp-Tool", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"pnf-name\": \"simple-cl-pnf\",\n \"pnf-name2\": \"the-hostname\",\n \"pnf-id\": \"927b2580-36d9-4f13-8421-3c9d43b7a57e\",\n \"equip-type\": \"example-equip-type-val-20348\",\n \"equip-vendor\": \"example-equip-vendor-val-52182\",\n \"equip-model\": \"example-equip-model-val-8370\",\n \"management-option\": \"example-management-option-val-72881\",\n \"ipaddress-v4-oam\": \"10.195.200.23\",\n \"in-maint\": false,\n \"ipaddress-v6-oam\": \"\"\n }" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v15/network/pnfs/pnf/simple-cl-pnf", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v15", - "network", - "pnfs", - "pnf", - "simple-cl-pnf" - ] - } - }, - "response": [] - }, - { - "name": "Verify simple-cl-pnf", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "url": { - "raw": "{{AAI-URL}}/aai/v14/network/pnfs/pnf/simple-cl-pnf", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "network", - "pnfs", - "pnf", - "simple-cl-pnf" - ] - } - }, - "response": [] - }, - { - "name": "Add simple-cl-pnf-failure", - "request": { - "method": "PUT", - "header": [ - { - "key": "Content-Type", - "value": "application/json", - "type": "text" - }, - { - "key": "Accept", - "value": "application/json", - "type": "text" - }, - { - "key": "Real-Time", - "value": "true", - "type": "text" - }, - { - "key": "X-TransactionId", - "value": "AAI-Temp-Tool", - "type": "text" - }, - { - "key": "X-FromAppId", - "value": "AAI-Temp-Tool", - "type": "text" - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"pnf-name\": \"simple-cl-pnf-failure\",\n \"pnf-name2\": \"the-hostname\",\n \"pnf-id\": \"927b2580-36d9-4f13-8421-3c9d43b7a77e\",\n \"equip-type\": \"example-equip-type-val-20348\",\n \"equip-vendor\": \"example-equip-vendor-val-52182\",\n \"equip-model\": \"example-equip-model-val-8370\",\n \"management-option\": \"example-management-option-val-72881\",\n \"ipaddress-v4-oam\": \"10.195.200.23\",\n \"in-maint\": false,\n \"ipaddress-v6-oam\": \"\"\n }" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v15/network/pnfs/pnf/simple-cl-pnf-failure", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v15", - "network", - "pnfs", - "pnf", - "simple-cl-pnf-failure" - ] - } - }, - "response": [] - }, - { - "name": "Verify simple-cl-pnf-failure", - "request": { - "method": "GET", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "url": { - "raw": "{{AAI-URL}}/aai/v14/network/pnfs/pnf/simple-cl-pnf-failure", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "network", - "pnfs", - "pnf", - "simple-cl-pnf-failure" - ] - } - }, - "response": [] - }, - { - "name": "Delete dummy-vnf", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v14/network/generic-vnfs/generic-vnf/57b008b9-b367-4359-93fd-74d3ce0ee1a0?resource-version=1633120087974", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "network", - "generic-vnfs", - "generic-vnf", - "57b008b9-b367-4359-93fd-74d3ce0ee1a0" - ], - "query": [ - { - "key": "resource-version", - "value": "1633120087974" - } - ] - } - }, - "response": [] - }, - { - "name": "Delete simple-cl-pnf", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v14/network/pnfs/pnf/simple-cl-pnf?resource-version=1621307213843", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "network", - "pnfs", - "pnf", - "simple-cl-pnf" - ], - "query": [ - { - "key": "resource-version", - "value": "1621307213843" - } - ] - } - }, - "response": [] - }, - { - "name": "Delete simple-cl-pnf-failure", - "request": { - "method": "DELETE", - "header": [ - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - }, - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Real-Time", - "type": "text", - "value": "true" - }, - { - "key": "X-TransactionId", - "type": "text", - "value": "AAI-Temp-Tool" - }, - { - "key": "X-FromAppId", - "type": "text", - "value": "AAI-Temp-Tool" - } - ], - "body": { - "mode": "raw", - "raw": "" - }, - "url": { - "raw": "{{AAI-URL}}/aai/v14/network/pnfs/pnf/simple-cl-pnf-failure?resource-version=1621307213843", - "host": [ - "{{AAI-URL}}" - ], - "path": [ - "aai", - "v14", - "network", - "pnfs", - "pnf", - "simple-cl-pnf-failure" - ], - "query": [ - { - "key": "resource-version", - "value": "1621307213843" - } - ] - } - }, - "response": [] - } - ], - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "demo123456!", - "type": "string" - }, - { - "key": "username", - "value": "aai@aai.onap.org", - "type": "string" - } - ] - }, - "event": [ - { - "listen": "prerequest", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ] -} \ No newline at end of file diff --git a/docs/development/devtools/smoke/postman/publish-cba-CDS.postman_collection.json b/docs/development/devtools/smoke/postman/publish-cba-CDS.postman_collection.json deleted file mode 100644 index 3e69f5f0..00000000 --- a/docs/development/devtools/smoke/postman/publish-cba-CDS.postman_collection.json +++ /dev/null @@ -1,598 +0,0 @@ -{ - "info": { - "_postman_id": "c8fa181e-0210-4f6c-a754-da377939c299", - "name": "Publish CBA in CDS", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" - }, - "item": [ - { - "name": "Bootstrap", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"loadModelType\" : true,\r\n \"loadResourceDictionary\" : true,\r\n \"loadCBA\" : false\r\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/blueprint-model/bootstrap", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "blueprint-model", - "bootstrap" - ] - } - }, - "response": [] - }, - { - "name": "Enrich and Publish CBA", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "formdata", - "formdata": [ - { - "key": "file", - "type": "file", - "src": "/Users/rpujar/repos/bell/controlloop-examples/simple-cl-use-case-cba/Archive.zip" - } - ] - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/blueprint-model/enrichandpublish", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "blueprint-model", - "enrichandpublish" - ] - } - }, - "response": [] - }, - { - "name": "Get all CBAs", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"loadModelType\" : true,\r\n \"loadResourceDictionary\" : true,\r\n \"loadCBA\" : false\r\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/blueprint-model/paged", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "blueprint-model", - "paged" - ] - } - }, - "response": [] - }, - { - "name": "Execute pnf-test-cba success", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"actionIdentifiers\": {\r\n \"mode\": \"sync\",\r\n \"blueprintName\": \"pnf-test-cba\",\r\n \"blueprintVersion\": \"1.0.0\",\r\n \"actionName\": \"update-config\"\r\n },\r\n \"payload\": {\r\n \"update-config-request\": {\r\n \"update-config-properties\": {\r\n \"hostname\": \"host\",\r\n \"IP\": \"10.43.230.146\",\r\n \"pnfName\": \"simple-cl-pnf\"\r\n }\r\n }\r\n },\r\n \"commonHeader\": {\r\n \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n \"originatorId\": \"POLICY\"\r\n }\r\n}" - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/execution-service/process", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "execution-service", - "process" - ] - } - }, - "response": [] - }, - { - "name": "Execute pnf-test-cba failure", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"actionIdentifiers\": {\r\n \"mode\": \"sync\",\r\n \"blueprintName\": \"pnf-test-cba\",\r\n \"blueprintVersion\": \"1.0.0\",\r\n \"actionName\": \"update-config\"\r\n },\r\n \"payload\": {\r\n \"update-config-request\": {\r\n \"update-config-properties\": {\r\n \"hostname\": \"host\",\r\n \"IP\": \"10.43.230.146\",\r\n \"pnfName\": \"simple-cl-pnf-failure\"\r\n }\r\n }\r\n },\r\n \"commonHeader\": {\r\n \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n \"originatorId\": \"POLICY\"\r\n }\r\n}" - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/execution-service/process", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "execution-service", - "process" - ] - } - }, - "response": [] - }, - { - "name": "Execute vnf-test-cba success", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"actionIdentifiers\": {\r\n \"mode\": \"sync\",\r\n \"blueprintName\": \"vnf-test-cba\",\r\n \"blueprintVersion\": \"1.0.0\",\r\n \"actionName\": \"modify-config\"\r\n },\r\n \"payload\": {\r\n \"modify-config-request\": {\r\n \"modify-config-properties\": {\r\n \"vfStatus\": \"Active\",\r\n \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n \"data\": {\r\n \"active-streams\": \"7\"\r\n }\r\n }\r\n }\r\n },\r\n \"commonHeader\": {\r\n \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n \"originatorId\": \"POLICY\"\r\n }\r\n}" - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/execution-service/process", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "execution-service", - "process" - ] - } - }, - "response": [] - }, - { - "name": "Execute vnf-test-cba failure", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"actionIdentifiers\": {\r\n \"mode\": \"sync\",\r\n \"blueprintName\": \"vnf-test-cba\",\r\n \"blueprintVersion\": \"1.0.0\",\r\n \"actionName\": \"modify-config\"\r\n },\r\n \"payload\": {\r\n \"modify-config-request\": {\r\n \"modify-config-properties\": {\r\n \"vfStatus\": \"InActive\",\r\n \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n \"data\": {\r\n \"active-streams\": \"7\"\r\n }\r\n }\r\n }\r\n },\r\n \"commonHeader\": {\r\n \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n \"originatorId\": \"POLICY\"\r\n }\r\n}" - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/execution-service/process", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "execution-service", - "process" - ] - } - }, - "response": [] - }, - { - "name": "Execute vnf-test-cba success", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"actionIdentifiers\": {\r\n \"mode\": \"sync\",\r\n \"blueprintName\": \"vnf-test-cba\",\r\n \"blueprintVersion\": \"1.0.0\",\r\n \"actionName\": \"restart\"\r\n },\r\n \"payload\": {\r\n \"restart-request\": {\r\n \"restart-properties\": {\r\n \"vfStatus\": \"Active\",\r\n \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n \"data\": {\r\n \"active-streams\": \"7\"\r\n }\r\n }\r\n }\r\n },\r\n \"commonHeader\": {\r\n \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n \"originatorId\": \"POLICY\"\r\n }\r\n}" - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/execution-service/process", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "execution-service", - "process" - ] - } - }, - "response": [] - }, - { - "name": "Execute vnf-test-cba failure", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"actionIdentifiers\": {\r\n \"mode\": \"sync\",\r\n \"blueprintName\": \"vnf-test-cba\",\r\n \"blueprintVersion\": \"1.0.0\",\r\n \"actionName\": \"restart\"\r\n },\r\n \"payload\": {\r\n \"restart-request\": {\r\n \"restart-properties\": {\r\n \"vfStatus\": \"InActive\",\r\n \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n \"data\": {\r\n \"active-streams\": \"7\"\r\n }\r\n }\r\n }\r\n },\r\n \"commonHeader\": {\r\n \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n \"originatorId\": \"POLICY\"\r\n }\r\n}" - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/execution-service/process", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "execution-service", - "process" - ] - } - }, - "response": [] - }, - { - "name": "Download CBA", - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "GET", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"loadModelType\" : true,\r\n \"loadResourceDictionary\" : true,\r\n \"loadCBA\" : false\r\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/blueprint-model/download/by-name/controlloop-hostname-update-cba/version/1.0.0", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "blueprint-model", - "download", - "by-name", - "controlloop-hostname-update-cba", - "version", - "1.0.0" - ] - } - }, - "response": [] - }, - { - "name": "Delete a specific CBA", - "request": { - "auth": { - "type": "basic", - "basic": [ - { - "key": "password", - "value": "ccsdkapps", - "type": "string" - }, - { - "key": "username", - "value": "ccsdkapps", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [ - { - "key": "Accept", - "type": "text", - "value": "application/json" - }, - { - "key": "Content-Type", - "type": "text", - "value": "application/json" - } - ], - "body": { - "mode": "raw", - "raw": "{\r\n \"loadModelType\" : true,\r\n \"loadResourceDictionary\" : true,\r\n \"loadCBA\" : false\r\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{CDS-URL}}/api/v1/blueprint-model/name/pnf-test-cba/version/1.0.0", - "host": [ - "{{CDS-URL}}" - ], - "path": [ - "api", - "v1", - "blueprint-model", - "name", - "pnf-test-cba", - "version", - "1.0.0" - ] - } - }, - "response": [] - } - ] -} \ No newline at end of file diff --git a/docs/development/devtools/tosca/pairwise-testing.yml b/docs/development/devtools/tosca/pairwise-testing.yml deleted file mode 100644 index 108ea4a9..00000000 --- a/docs/development/devtools/tosca/pairwise-testing.yml +++ /dev/null @@ -1,3388 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_3 -data_types: - onap.datatypes.ToscaConceptIdentifier: - derived_from: tosca.datatypes.Root - properties: - name: - type: string - required: true - version: - type: string - required: true - onap.datatype.controlloop.Target: - derived_from: tosca.datatypes.Root - description: Definition for a entity in A&AI to perform a control loop operation - on - properties: - targetType: - type: string - description: Category for the target type - required: true - constraints: - - valid_values: - - VNF - - VM - - VFMODULE - - PNF - entityIds: - type: map - description: | - Map of values that identify the resource. If none are provided, it is assumed that the - entity that generated the ONSET event will be the target. - required: false - metadata: - clamp_possible_values: ClampExecution:CSAR_RESOURCES - entry_schema: - type: string - onap.datatype.controlloop.Actor: - derived_from: tosca.datatypes.Root - description: An actor/operation/target definition - properties: - actor: - type: string - description: The actor performing the operation. - required: true - metadata: - clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor - operation: - type: string - description: The operation the actor is performing. - metadata: - clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation - required: true - target: - type: onap.datatype.controlloop.Target - description: The resource the operation should be performed on. - required: true - payload: - type: map - description: Name/value pairs of payload information passed by Policy to the - actor - required: false - metadata: - clamp_possible_values: ClampExecution:CDS/payload - entry_schema: - type: string - onap.datatype.controlloop.Operation: - derived_from: tosca.datatypes.Root - description: An operation supported by an actor - properties: - id: - type: string - description: Unique identifier for the operation - required: true - description: - type: string - description: A user-friendly description of the intent for the operation - required: false - operation: - type: onap.datatype.controlloop.Actor - description: The definition of the operation to be performed. - required: true - timeout: - type: integer - description: The amount of time for the actor to perform the operation. - required: true - retries: - type: integer - description: The number of retries the actor should attempt to perform the - operation. - required: true - default: 0 - success: - type: string - description: Points to the operation to invoke on success. A value of "final_success" - indicates and end to the operation. - required: false - default: final_success - failure: - type: string - description: Points to the operation to invoke on Actor operation failure. - required: false - default: final_failure - failure_timeout: - type: string - description: Points to the operation to invoke when the time out for the operation - occurs. - required: false - default: final_failure_timeout - failure_retries: - type: string - description: Points to the operation to invoke when the current operation - has exceeded its max retries. - required: false - default: final_failure_retries - failure_exception: - type: string - description: Points to the operation to invoke when the current operation - causes an exception. - required: false - default: final_failure_exception - failure_guard: - type: string - description: Points to the operation to invoke when the current operation - is blocked due to guard policy enforcement. - required: false - default: final_failure_guard - org.onap.datatypes.policy.clamp.acm.httpControlLoopElement.RestRequest: - version: 1.0.0 - derived_from: tosca.datatypes.Root - properties: - restRequestId: - type: onap.datatypes.ToscaConceptIdentifier - type_version: 0.0.0 - required: true - description: The name and version of a REST request to be sent to a REST endpoint - httpMethod: - type: string - required: true - constraints: - - valid_values: - - POST - - PUT - - GET - - DELETE - description: The REST method to use - path: - type: string - required: true - description: The path of the REST request relative to the base URL - body: - type: string - required: false - description: The body of the REST request for PUT and POST requests - expectedResponse: - type: integer - required: true - constraints: [] - description: THe expected HTTP status code for the REST request - org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity: - version: 1.0.0 - derived_from: tosca.datatypes.Root - properties: - configurationEntityId: - type: onap.datatypes.ToscaConceptIdentifier - type_version: 0.0.0 - required: true - description: The name and version of a Configuration Entity to be handled - by the HTTP Automation Composition Element - restSequence: - type: list - entry_schema: - type: org.onap.datatypes.policy.clamp.acm.httpControlLoopElement.RestRequest - type_version: 1.0.0 - description: A sequence of REST commands to send to the REST endpoint -policy_types: - onap.policies.Monitoring: - derived_from: tosca.policies.Root - description: a base policy type for all policies that govern monitoring provisioning - version: 1.0.0 - name: onap.policies.Monitoring - onap.policies.customPolicyType: - derived_from: tosca.policies.Root - description: a base policy type for all policies that govern monitoring provisioning - version: 1.0.0 - name: onap.policies.customPolicyType - onap.policies.controlloop.operational.Common: - derived_from: tosca.policies.Root - version: 1.0.0 - name: onap.policies.controlloop.operational.Common - description: | - Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant - Policy Types. This does NOT support the legacy Policy YAML policy type. - properties: - id: - type: string - description: The unique control loop id. - required: true - timeout: - type: integer - description: | - Overall timeout for executing all the operations. This timeout should equal or exceed the total - timeout for each operation listed. - required: true - abatement: - type: boolean - description: Whether an abatement event message will be expected for the control - loop from DCAE. - required: true - default: false - trigger: - type: string - description: Initial operation to execute upon receiving an Onset event message - for the Control Loop. - required: true - operations: - type: list - description: List of operations to be performed when Control Loop is triggered. - required: true - entry_schema: - type: onap.datatype.controlloop.Operation - onap.policies.controlloop.operational.common.Apex: - derived_from: onap.policies.controlloop.operational.Common - type_version: 1.0.0 - version: 1.0.0 - name: onap.policies.controlloop.operational.common.Apex - description: Operational policies for Apex PDP - properties: - engineServiceParameters: - type: string - description: The engine parameters like name, instanceCount, policy implementation, - parameters etc. - required: true - eventInputParameters: - type: string - description: The event input parameters. - required: true - eventOutputParameters: - type: string - description: The event output parameters. - required: true - javaProperties: - type: string - description: Name/value pairs of properties to be set for APEX if needed. - required: false - -node_types: - org.onap.policy.clamp.acm.Participant: - version: 1.0.1 - derived_from: tosca.nodetypes.Root - properties: - provider: - type: string - required: false - org.onap.policy.clamp.acm.AutomationCompositionElement: - version: 1.0.1 - derived_from: tosca.nodetypes.Root - properties: - provider: - type: string - required: false - metadata: - common: true - description: Specifies the organization that provides the automation composition element - participant_id: - type: onap.datatypes.ToscaConceptIdentifier - required: true - metadata: - common: true - participantType: - type: onap.datatypes.ToscaConceptIdentifier - required: true - metadata: - common: true - description: The identity of the participant type that hosts this type of Automation Composition Element - startPhase: - type: integer - required: false - constraints: - - greater_or_equal: 0 - metadata: - common: true - description: A value indicating the start phase in which this automation composition element will be started, the - first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped - in reverse start phase order. Automation Composition Elements with the same start phase are started and - stopped simultaneously - uninitializedToPassiveTimeout: - type: integer - required: false - constraints: - - greater_or_equal: 0 - default: 60 - metadata: - common: true - description: The maximum time in seconds to wait for a state chage from uninitialized to passive - passiveToRunningTimeout: - type: integer - required: false - constraints: - - greater_or_equal: 0 - default: 60 - metadata: - common: true - description: The maximum time in seconds to wait for a state chage from passive to running - runningToPassiveTimeout: - type: integer - required: false - constraints: - - greater_or_equal: 0 - default: 60 - metadata: - common: true - description: The maximum time in seconds to wait for a state chage from running to passive - passiveToUninitializedTimeout: - type: integer - required: false - constraints: - - greater_or_equal: 0 - default: 60 - metadata: - common: true - description: The maximum time in seconds to wait for a state chage from passive to uninitialized - org.onap.policy.clamp.acm.AutomationComposition: - version: 1.0.1 - derived_from: tosca.nodetypes.Root - properties: - provider: - type: string - required: false - metadata: - common: true - description: Specifies the organization that provides the automation composition element - elements: - type: list - required: true - metadata: - common: true - entry_schema: - type: onap.datatypes.ToscaConceptIdentifier - description: Specifies a list of automation composition element definitions that make up this automation composition definition - org.onap.policy.clamp.acm.PolicyAutomationCompositionElement: - version: 1.0.1 - derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement - properties: - policy_type_id: - type: onap.datatypes.ToscaConceptIdentifier - required: true - policy_id: - type: onap.datatypes.ToscaConceptIdentifier - required: false - org.onap.policy.clamp.acm.CDSAutomationCompositionElement: - version: 1.0.1 - derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement - properties: - cds_blueprint_id: - type: onap.datatypes.ToscaConceptIdentifier - required: true - org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement: - version: 1.0.1 - derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement - properties: - chart: - type: string - required: true - configs: - type: list - required: false - requirements: - type: string - required: false - templates: - type: list - required: false - entry_schema: - values: - type: string - required: true - org.onap.policy.clamp.acm.HttpAutomationCompositionElement: - version: 1.0.1 - derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement - properties: - baseUrl: - type: string - required: true - description: The base URL to be prepended to each path, identifies the host for the REST endpoints. - httpHeaders: - type: map - required: false - entry_schema: - type: string - description: HTTP headers to send on REST requests - configurationEntities: - type: map - required: true - entry_schema: - type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity - type_version: 1.0.0 - description: The connfiguration entities the Automation Composition Element is managing and their associated REST requests - -topology_template: - inputs: - pmsh_operational_policy: - type: onap.datatypes.ToscaConceptIdentifier - description: The ID of the PMSH operational policy to use - default: - name: operational.apex.pmcontrol - version: 1.0.0 - node_templates: - org.onap.policy.clamp.acm.PolicyParticipant: - version: 2.3.1 - type: org.onap.policy.clamp.acm.Participant - type_version: 1.0.1 - description: Participant for DCAE microservices - properties: - provider: ONAP - org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement: - version: 1.2.3 - type: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement - type_version: 1.0.1 - description: Automation composition element for the operational policy for Performance Management Subscription Handling - properties: - provider: Ericsson - participant_id: - name: org.onap.PM_Policy - version: 1.0.0 - participantType: - name: org.onap.policy.clamp.acm.PolicyParticipant - version: 2.3.1 - policy_type_id: - name: onap.policies.operational.pm-subscription-handler - version: 1.0.0 - policy_id: - get_input: pmsh_operational_policy - - - org.onap.policy.clamp.acm.KubernetesParticipant: - version: 2.3.4 - type: org.onap.policy.clamp.acm.Participant - type_version: 1.0.1 - description: Participant for K8S - properties: - provider: ONAP - org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement: - # Chart from new repository - version: 1.2.3 - type: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement - type_version: 1.0.1 - description: Automation composition element for the K8S microservice for PMSH - properties: - provider: ONAP - participant_id: - name: K8sParticipant0 - version: 1.0.0 - participantType: - name: org.onap.policy.clamp.acm.KubernetesParticipant - version: 2.3.4 - chart: - chartId: - name: dcae-pmsh - version: 10.0.0 - namespace: onap - releaseName: onap-dcae-pmsh - repository: - repoName: chartmuseum - address: http://chart-museum:80 - userName: onapinitializer - password: demo123456! - overrideParams: - global.masterPassword: test - org.onap.policy.clamp.acm.HttpParticipant: - version: 2.3.4 - type: org.onap.policy.clamp.acm.Participant - type_version: 1.0.1 - description: Participant for Http requests - properties: - provider: ONAP - org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement: - # Consul http config for PMSH. - version: 1.2.3 - type: org.onap.policy.clamp.acm.HttpAutomationCompositionElement - type_version: 1.0.1 - description: Automation composition element for the http requests of PMSH microservice - properties: - provider: ONAP - participant_id: - name: HttpParticipant0 - version: 1.0.0 - participantType: - name: org.onap.policy.clamp.acm.HttpParticipant - version: 2.3.4 - uninitializedToPassiveTimeout: 180 - startPhase: 1 - baseUrl: https://dcae-pmsh:8443 - httpHeaders: - Content-Type: application/json - configurationEntities: - - configurationEntityId: - name: entity1 - version: 1.0.1 - restSequence: - - restRequestId: - name: request1 - version: 1.0.1 - httpMethod: POST - path: subscription - body: '{ - "subscription":{ - "subscriptionName":"new_sub_01", - "operationalPolicyName":"pmsh-operational-policy", - "controlLoopName":"controlLoop-name", - "nfFilter":{ - "nfNames":[ - "^pnf*" - ], - "modelInvariantIDs":[ - "7129e420-d396-4efb-af02-6b83499b12f5" - ], - "modelVersionIDs":[ - "e80a6ae3-cafd-4d24-850d-e14c084a5ca7" - ], - "modelNames":[ - "pnf_134" - ] - }, - "measurementGroups":[ - { - "measurementGroup":{ - "measurementGroupName":"msgroup_01", - "administrativeState":"UNLOCKED", - "fileBasedGP":15, - "fileLocation":"/pm/pm.xml", - "measurementTypes":[ - { - "measurementType":"EutranCell.*" - }, - { - "measurementType":"EutranCellRelation.pmCounter1" - }, - { - "measurementType":"EutranCellRelation.pmCounter2" - } - ], - "managedObjectDNsBasic":[ - { - "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1" - }, - { - "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter2" - }, - { - "DN":"ManagedElement=1,ENodeBFunction=1,EUtranCell=CityCenter1, EUtranCellRelation=CityCenter3" - } - ] - } - } - ] - } - }' - expectedResponse: 201 - - - org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition: - version: 1.2.3 - type: org.onap.policy.clamp.acm.AutomationComposition - type_version: 1.0.1 - description: Automation composition for Hello World - properties: - provider: ONAP - elements: - - name: org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement - version: 1.2.3 - - name: org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement - version: 1.2.3 - - name: org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement - version: 1.2.3 - policies: - - operational.apex.pmcontrol: - type: onap.policies.controlloop.operational.common.Apex - type_version: 1.0.0 - version: 1.0.0 - properties: - engineServiceParameters: - name: MyApexEngine - version: 0.0.1 - id: 45 - instanceCount: 2 - deploymentPort: 12561 - engineParameters: - executorParameters: - JAVASCRIPT: - parameterClassName: org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters - contextParameters: - parameterClassName: org.onap.policy.apex.context.parameters.ContextParameters - schemaParameters: - Avro: - parameterClassName: org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters - Java: - parameterClassName: org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters - jsonAdapters: - Instant: - adaptedClass: java.time.Instant - adaptorClass: org.onap.policy.common.gson.InstantAsMillisTypeAdapter - policy_type_impl: - apexPolicyModel: - key: - name: PMControlPolicy - version: 0.0.1 - keyInformation: - key: - name: PMControlPolicy_KeyInfo - version: 0.0.1 - keyInfoMap: - entry: - - key: - name: CDSActionIdentifiersType - version: 0.0.1 - value: - key: - name: CDSActionIdentifiersType - version: 0.0.1 - UUID: 6e5fa19b-14df-37e3-a4ae-8c537e861a82 - description: Generated description for concept referred to by - key "CDSActionIdentifiersType:0.0.1" - - key: - name: CDSCreateResponseEvent - version: 0.0.1 - value: - key: - name: CDSCreateResponseEvent - version: 0.0.1 - UUID: 14b29e38-ac75-3273-aa4e-8583c0aa7dad - description: Generated description for concept referred to by - key "CDSCreateResponseEvent:0.0.1" - - key: - name: CDSCreateResponsePayloadType - version: 0.0.1 - value: - key: - name: CDSCreateResponsePayloadType - version: 0.0.1 - UUID: 04573f8f-e772-30a5-b1d9-d7318d4a1e13 - description: Generated description for concept referred to by - key "CDSCreateResponsePayloadType:0.0.1" - - key: - name: CDSCreateResponsePolicy - version: 0.0.1 - value: - key: - name: CDSCreateResponsePolicy - version: 0.0.1 - UUID: e126c965-fc09-3bfe-8f55-70f380a4a49c - description: Generated description for concept referred to by - key "CDSCreateResponsePolicy:0.0.1" - - key: - name: CDSCreateResponseTask - version: 0.0.1 - value: - key: - name: CDSCreateResponseTask - version: 0.0.1 - UUID: 6165ee82-afd2-3aab-a517-f00b3f2461d2 - description: Generated description for concept referred to by - key "CDSCreateResponseTask:0.0.1" - - key: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - value: - key: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - UUID: 8350ac5e-c157-38b9-9614-a0f93a830e60 - description: Generated description for concept referred to by - key "CDSCreateSubscriptionPayloadType:0.0.1" - - key: - name: CDSCreateSubscriptionRequestEvent - version: 0.0.1 - value: - key: - name: CDSCreateSubscriptionRequestEvent - version: 0.0.1 - UUID: cfa325ba-226b-3a31-9183-ec43e2b6e9a2 - description: Generated description for concept referred to by - key "CDSCreateSubscriptionRequestEvent:0.0.1" - - key: - name: CDSDeleteResponseEvent - version: 0.0.1 - value: - key: - name: CDSDeleteResponseEvent - version: 0.0.1 - UUID: 8be9c0fa-7437-3841-aff2-b3cec6ae3bd8 - description: Generated description for concept referred to by - key "CDSDeleteResponseEvent:0.0.1" - - key: - name: CDSDeleteResponsePayloadType - version: 0.0.1 - value: - key: - name: CDSDeleteResponsePayloadType - version: 0.0.1 - UUID: 3fbfe0c9-152e-34d3-a504-09cd13c058d0 - description: Generated description for concept referred to by - key "CDSDeleteResponsePayloadType:0.0.1" - - key: - name: CDSDeleteResponsePolicy - version: 0.0.1 - value: - key: - name: CDSDeleteResponsePolicy - version: 0.0.1 - UUID: a780251c-edd5-3132-b865-04313246b43c - description: Generated description for concept referred to by - key "CDSDeleteResponsePolicy:0.0.1" - - key: - name: CDSDeleteResponseTask - version: 0.0.1 - value: - key: - name: CDSDeleteResponseTask - version: 0.0.1 - UUID: afce4555-3aa3-3521-a7d8-ee8cdf0d3efc - description: Generated description for concept referred to by - key "CDSDeleteResponseTask:0.0.1" - - key: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - value: - key: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - UUID: 12658406-9147-3c9d-a38c-5ad5e30b092b - description: Generated description for concept referred to by - key "CDSDeleteSubscriptionPayloadType:0.0.1" - - key: - name: CDSDeleteSubscriptionRequestEvent - version: 0.0.1 - value: - key: - name: CDSDeleteSubscriptionRequestEvent - version: 0.0.1 - UUID: 24380c95-9289-36e6-8cbf-0edefa15ccd9 - description: Generated description for concept referred to by - key "CDSDeleteSubscriptionRequestEvent:0.0.1" - - key: - name: CDSRequestCommonHeaderType - version: 0.0.1 - value: - key: - name: CDSRequestCommonHeaderType - version: 0.0.1 - UUID: 35590ac0-062c-39f1-8786-b4ff716e30b1 - description: Generated description for concept referred to by - key "CDSRequestCommonHeaderType:0.0.1" - - key: - name: CDSResponseCommonHeaderType - version: 0.0.1 - value: - key: - name: CDSResponseCommonHeaderType - version: 0.0.1 - UUID: dd7e1805-885a-350b-aaf9-ed541321ae3c - description: Generated description for concept referred to by - key "CDSResponseCommonHeaderType:0.0.1" - - key: - name: CDSResponseStatusEvent - version: 0.0.1 - value: - key: - name: CDSResponseStatusEvent - version: 0.0.1 - UUID: 7986e21b-32f7-302e-9554-31f21b673493 - description: Generated description for concept referred to by - key "CDSResponseStatusEvent:0.0.1" - - key: - name: CDSResponseStatusType - version: 0.0.1 - value: - key: - name: CDSResponseStatusType - version: 0.0.1 - UUID: 92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa - description: Generated description for concept referred to by - key "CDSResponseStatusType:0.0.1" - - key: - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - value: - key: - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - UUID: 92162397-1a8e-3a3f-a469-d2af7700af4a - description: Generated description for concept referred to by - key "CreateSubscriptionPayloadEvent:0.0.1" - - key: - name: CreateSubscriptionPayloadTask - version: 0.0.1 - value: - key: - name: CreateSubscriptionPayloadTask - version: 0.0.1 - UUID: bc0c69f0-52ed-38ea-b468-ae4a6fd1730d - description: Generated description for concept referred to by - key "CreateSubscriptionPayloadTask:0.0.1" - - key: - name: CreateSubscriptionRequestTask - version: 0.0.1 - value: - key: - name: CreateSubscriptionRequestTask - version: 0.0.1 - UUID: 89cb75e9-f06c-30d3-b4ff-698d45f63869 - description: Generated description for concept referred to by - key "CreateSubscriptionRequestTask:0.0.1" - - key: - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - value: - key: - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - UUID: 994fa441-04ab-33bb-832d-1cd12ab5d074 - description: Generated description for concept referred to by - key "DeleteSubscriptionPayloadEvent:0.0.1" - - key: - name: DeleteSubscriptionPayloadTask - version: 0.0.1 - value: - key: - name: DeleteSubscriptionPayloadTask - version: 0.0.1 - UUID: 0f519117-5fea-3e4b-941f-8f778100465f - description: Generated description for concept referred to by - key "DeleteSubscriptionPayloadTask:0.0.1" - - key: - name: DeleteSubscriptionRequestTask - version: 0.0.1 - value: - key: - name: DeleteSubscriptionRequestTask - version: 0.0.1 - UUID: acb772fe-d442-39e3-98f9-b1080caf4150 - description: Generated description for concept referred to by - key "DeleteSubscriptionRequestTask:0.0.1" - - key: - name: MRResponseEvent - version: 0.0.1 - value: - key: - name: MRResponseEvent - version: 0.0.1 - UUID: 13c747a3-6bae-3bcf-9c80-b152e01dc194 - description: Generated description for concept referred to by - key "MRResponseEvent:0.0.1" - - key: - name: PMControlPolicy - version: 0.0.1 - value: - key: - name: PMControlPolicy - version: 0.0.1 - UUID: acf1e55c-7bc5-3bd5-975a-0ca54afcd8a4 - description: Generated description for concept referred to by - key "PMControlPolicy:0.0.1" - - key: - name: PMControlPolicy_Albums - version: 0.0.1 - value: - key: - name: PMControlPolicy_Albums - version: 0.0.1 - UUID: b38ad204-c2c8-32f4-9b5a-dda0aeb0145b - description: Generated description for concept referred to by - key "PMControlPolicy_Albums:0.0.1" - - key: - name: PMControlPolicy_Events - version: 0.0.1 - value: - key: - name: PMControlPolicy_Events - version: 0.0.1 - UUID: be3871a0-c42a-3113-a066-82d192840eca - description: Generated description for concept referred to by - key "PMControlPolicy_Events:0.0.1" - - key: - name: PMControlPolicy_KeyInfo - version: 0.0.1 - value: - key: - name: PMControlPolicy_KeyInfo - version: 0.0.1 - UUID: ced37634-28a4-3178-b7f6-2980794927b0 - description: Generated description for concept referred to by - key "PMControlPolicy_KeyInfo:0.0.1" - - key: - name: PMControlPolicy_Policies - version: 0.0.1 - value: - key: - name: PMControlPolicy_Policies - version: 0.0.1 - UUID: be3d180d-ef9c-3a75-8e9c-84271a038bed - description: Generated description for concept referred to by - key "PMControlPolicy_Policies:0.0.1" - - key: - name: PMControlPolicy_Schemas - version: 0.0.1 - value: - key: - name: PMControlPolicy_Schemas - version: 0.0.1 - UUID: e61973f1-189c-39e5-82f6-0d3afe298a20 - description: Generated description for concept referred to by - key "PMControlPolicy_Schemas:0.0.1" - - key: - name: PMControlPolicy_Tasks - version: 0.0.1 - value: - key: - name: PMControlPolicy_Tasks - version: 0.0.1 - UUID: 5658adb3-2962-30a3-a241-fae75bb8eb4a - description: Generated description for concept referred to by - key "PMControlPolicy_Tasks:0.0.1" - - key: - name: PMSubscriptionAlbum - version: 0.0.1 - value: - key: - name: PMSubscriptionAlbum - version: 0.0.1 - UUID: c2bd6f0d-6854-317a-9be2-97c08338428c - description: Generated description for concept referred to by - key "PMSubscriptionAlbum:0.0.1" - - key: - name: PMSubscriptionOutputEvent - version: 0.0.1 - value: - key: - name: PMSubscriptionOutputEvent - version: 0.0.1 - UUID: 992b7819-9f69-3aa0-bb0f-6e45ea15ce05 - description: Generated description for concept referred to by - key "PMSubscriptionOutputEvent:0.0.1" - - key: - name: PMSubscriptionType - version: 0.0.1 - value: - key: - name: PMSubscriptionType - version: 0.0.1 - UUID: 73c1c397-4fc3-357f-93b6-a8ad707fbaae - description: Generated description for concept referred to by - key "PMSubscriptionType:0.0.1" - - key: - name: ReceiveEventPolicy - version: 0.0.1 - value: - key: - name: ReceiveEventPolicy - version: 0.0.1 - UUID: 568b7345-9de1-36d3-b6a3-9b857e6809a1 - description: Generated description for concept referred to by - key "ReceiveEventPolicy:0.0.1" - - key: - name: ReceiveSubscriptionTask - version: 0.0.1 - value: - key: - name: ReceiveSubscriptionTask - version: 0.0.1 - UUID: f596afc8-100c-35eb-92c8-352355ea457d - description: Generated description for concept referred to by - key "ReceiveSubscriptionTask:0.0.1" - - key: - name: SimpleIntType - version: 0.0.1 - value: - key: - name: SimpleIntType - version: 0.0.1 - UUID: 153791fd-ae0a-36a7-88a5-309a7936415d - description: Generated description for concept referred to by - key "SimpleIntType:0.0.1" - - key: - name: SimpleStringType - version: 0.0.1 - value: - key: - name: SimpleStringType - version: 0.0.1 - UUID: 8a4957cf-9493-3a76-8c22-a208e23259af - description: Generated description for concept referred to by - key "SimpleStringType:0.0.1" - - key: - name: SubscriptionStatusType - version: 0.0.1 - value: - key: - name: SubscriptionStatusType - version: 0.0.1 - UUID: 597643b1-9db1-31ce-85d0-e1c63c43b30b - description: Generated description for concept referred to by - key "SubscriptionStatusType:0.0.1" - - key: - name: SubscriptionType - version: 0.0.1 - value: - key: - name: SubscriptionType - version: 0.0.1 - UUID: 184547bb-7d64-3cb2-a273-d7185102c5ce - description: Generated description for concept referred to by - key "SubscriptionType:0.0.1" - - key: - name: UUIDType - version: 0.0.1 - value: - key: - name: UUIDType - version: 0.0.1 - UUID: 6a8cc68e-dfc8-3403-9c6d-071c886b319c - description: Generated description for concept referred to by - key "UUIDType:0.0.1" - - key: - name: pmsh-operational-policy - version: 0.0.1 - value: - key: - name: pmsh-operational-policy - version: 0.0.1 - UUID: fdf2c9ff-6422-3ea6-b6b6-49b12116265d - description: Generated description for concept referred to by - key "pmsh-operational-policy:0.0.1" - policies: - key: - name: PMControlPolicy_Policies - version: 0.0.1 - policyMap: - entry: - - key: - name: CDSCreateResponsePolicy - version: 0.0.1 - value: - policyKey: - name: CDSCreateResponsePolicy - version: 0.0.1 - template: Freestyle - state: - entry: - - key: CDSCreateResponseState - value: - stateKey: - parentKeyName: CDSCreateResponsePolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: CDSCreateResponseState - trigger: - name: CDSCreateResponseEvent - version: 0.0.1 - stateOutputs: - entry: - - key: ResponseOutput - value: - key: - parentKeyName: CDSCreateResponsePolicy - parentKeyVersion: 0.0.1 - parentLocalName: CDSCreateResponseState - localName: ResponseOutput - outgoingEvent: - name: CDSResponseStatusEvent - version: 0.0.1 - outgoingEventReference: - - name: CDSResponseStatusEvent - version: 0.0.1 - nextState: - parentKeyName: 'NULL' - parentKeyVersion: 0.0.0 - parentLocalName: 'NULL' - localName: 'NULL' - contextAlbumReference: [ ] - taskSelectionLogic: - key: 'NULL' - logicFlavour: UNDEFINED - logic: '' - stateFinalizerLogicMap: - entry: [ ] - defaultTask: - name: CDSCreateResponseTask - version: 0.0.1 - taskReferences: - entry: - - key: - name: CDSCreateResponseTask - version: 0.0.1 - value: - key: - parentKeyName: CDSCreateResponsePolicy - parentKeyVersion: 0.0.1 - parentLocalName: CDSCreateResponseState - localName: CDSCreateResponsePolicy - outputType: DIRECT - output: - parentKeyName: CDSCreateResponsePolicy - parentKeyVersion: 0.0.1 - parentLocalName: CDSCreateResponseState - localName: ResponseOutput - firstState: CDSCreateResponseState - - key: - name: CDSDeleteResponsePolicy - version: 0.0.1 - value: - policyKey: - name: CDSDeleteResponsePolicy - version: 0.0.1 - template: Freestyle - state: - entry: - - key: CDSDeleteResponseState - value: - stateKey: - parentKeyName: CDSDeleteResponsePolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: CDSDeleteResponseState - trigger: - name: CDSDeleteResponseEvent - version: 0.0.1 - stateOutputs: - entry: - - key: ResponseOutput - value: - key: - parentKeyName: CDSDeleteResponsePolicy - parentKeyVersion: 0.0.1 - parentLocalName: CDSDeleteResponseState - localName: ResponseOutput - outgoingEvent: - name: CDSResponseStatusEvent - version: 0.0.1 - outgoingEventReference: - - name: CDSResponseStatusEvent - version: 0.0.1 - nextState: - parentKeyName: 'NULL' - parentKeyVersion: 0.0.0 - parentLocalName: 'NULL' - localName: 'NULL' - contextAlbumReference: [ ] - taskSelectionLogic: - key: 'NULL' - logicFlavour: UNDEFINED - logic: '' - stateFinalizerLogicMap: - entry: [ ] - defaultTask: - name: CDSDeleteResponseTask - version: 0.0.1 - taskReferences: - entry: - - key: - name: CDSDeleteResponseTask - version: 0.0.1 - value: - key: - parentKeyName: CDSDeleteResponsePolicy - parentKeyVersion: 0.0.1 - parentLocalName: CDSDeleteResponseState - localName: CDSDeleteResponsePolicy - outputType: DIRECT - output: - parentKeyName: CDSDeleteResponsePolicy - parentKeyVersion: 0.0.1 - parentLocalName: CDSDeleteResponseState - localName: ResponseOutput - firstState: CDSDeleteResponseState - - key: - name: ReceiveEventPolicy - version: 0.0.1 - value: - policyKey: - name: ReceiveEventPolicy - version: 0.0.1 - template: Freestyle - state: - entry: - - key: CreateOrDeleteState - value: - stateKey: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: CreateOrDeleteState - trigger: - name: PMSubscriptionOutputEvent - version: 0.0.1 - stateOutputs: - entry: - - key: CreateSubscriptionPayload - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateOrDeleteState - localName: CreateSubscriptionPayload - outgoingEvent: - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - outgoingEventReference: - - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - nextState: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: CreateSubscription - - key: DeleteSubscriptionPayload - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateOrDeleteState - localName: DeleteSubscriptionPayload - outgoingEvent: - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - outgoingEventReference: - - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - nextState: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: DeleteSubscription - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskSelectionLogic: - key: TaskSelectionLogic - logicFlavour: JAVASCRIPT - logic: |- - /* - * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - executor.logger.info(executor.subject.id); - var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) - var changeType = pmSubscriptionInfo.get("changeType").toString() - executor.logger.info("Change Type is " + changeType) - if ("CREATE".equals(changeType)) { - executor.logger.info("Choosing to create a subscription") - executor.subject.getTaskKey("CreateSubscriptionPayloadTask").copyTo(executor.selectedTask); - } - else if ("DELETE".equals(changeType)) { - executor.logger.info("Choosing to delete a subscription") - executor.subject.getTaskKey("DeleteSubscriptionPayloadTask").copyTo(executor.selectedTask); - } - returnValue = executor.isTrue; - true; - stateFinalizerLogicMap: - entry: [ ] - defaultTask: - name: CreateSubscriptionPayloadTask - version: 0.0.1 - taskReferences: - entry: - - key: - name: CreateSubscriptionPayloadTask - version: 0.0.1 - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateOrDeleteState - localName: ReceiveEventPolicy - outputType: DIRECT - output: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateOrDeleteState - localName: CreateSubscriptionPayload - - key: - name: DeleteSubscriptionPayloadTask - version: 0.0.1 - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateOrDeleteState - localName: ReceiveEventPolicy - outputType: DIRECT - output: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateOrDeleteState - localName: DeleteSubscriptionPayload - - key: CreateSubscription - value: - stateKey: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: CreateSubscription - trigger: - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - stateOutputs: - entry: - - key: IssueCreateSubscriptionRequestOutput - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateSubscription - localName: IssueCreateSubscriptionRequestOutput - outgoingEvent: - name: CDSCreateSubscriptionRequestEvent - version: 0.0.1 - outgoingEventReference: - - name: CDSCreateSubscriptionRequestEvent - version: 0.0.1 - nextState: - parentKeyName: 'NULL' - parentKeyVersion: 0.0.0 - parentLocalName: 'NULL' - localName: 'NULL' - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskSelectionLogic: - key: 'NULL' - logicFlavour: UNDEFINED - logic: '' - stateFinalizerLogicMap: - entry: [ ] - defaultTask: - name: CreateSubscriptionRequestTask - version: 0.0.1 - taskReferences: - entry: - - key: - name: CreateSubscriptionRequestTask - version: 0.0.1 - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateSubscription - localName: ReceiveEventPolicy - outputType: DIRECT - output: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: CreateSubscription - localName: IssueCreateSubscriptionRequestOutput - - key: DeleteSubscription - value: - stateKey: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: DeleteSubscription - trigger: - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - stateOutputs: - entry: - - key: IssueDeleteSubscriptionRequestOutput - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: DeleteSubscription - localName: IssueDeleteSubscriptionRequestOutput - outgoingEvent: - name: CDSDeleteSubscriptionRequestEvent - version: 0.0.1 - outgoingEventReference: - - name: CDSDeleteSubscriptionRequestEvent - version: 0.0.1 - nextState: - parentKeyName: 'NULL' - parentKeyVersion: 0.0.0 - parentLocalName: 'NULL' - localName: 'NULL' - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskSelectionLogic: - key: 'NULL' - logicFlavour: UNDEFINED - logic: '' - stateFinalizerLogicMap: - entry: [ ] - defaultTask: - name: DeleteSubscriptionRequestTask - version: 0.0.1 - taskReferences: - entry: - - key: - name: DeleteSubscriptionRequestTask - version: 0.0.1 - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: DeleteSubscription - localName: ReceiveEventPolicy - outputType: DIRECT - output: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: DeleteSubscription - localName: IssueDeleteSubscriptionRequestOutput - - key: ReceiveSubscriptionState - value: - stateKey: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: ReceiveSubscriptionState - trigger: - name: pmsh-operational-policy - version: 0.0.1 - stateOutputs: - entry: - - key: ReceivePMSubscriptionOutput - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: ReceiveSubscriptionState - localName: ReceivePMSubscriptionOutput - outgoingEvent: - name: PMSubscriptionOutputEvent - version: 0.0.1 - outgoingEventReference: - - name: PMSubscriptionOutputEvent - version: 0.0.1 - nextState: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: 'NULL' - localName: CreateOrDeleteState - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskSelectionLogic: - key: 'NULL' - logicFlavour: UNDEFINED - logic: '' - stateFinalizerLogicMap: - entry: [ ] - defaultTask: - name: ReceiveSubscriptionTask - version: 0.0.1 - taskReferences: - entry: - - key: - name: ReceiveSubscriptionTask - version: 0.0.1 - value: - key: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: ReceiveSubscriptionState - localName: ReceiveEventPolicy - outputType: DIRECT - output: - parentKeyName: ReceiveEventPolicy - parentKeyVersion: 0.0.1 - parentLocalName: ReceiveSubscriptionState - localName: ReceivePMSubscriptionOutput - firstState: ReceiveSubscriptionState - tasks: - key: - name: PMControlPolicy_Tasks - version: 0.0.1 - taskMap: - entry: - - key: - name: CDSCreateResponseTask - version: 0.0.1 - value: - key: - name: CDSCreateResponseTask - version: 0.0.1 - inputEvent: - key: - name: CDSCreateResponseEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: CDS - target: APEX - parameter: - entry: - - key: actionIdentifiers - value: - key: actionIdentifiers - fieldSchemaKey: - name: CDSActionIdentifiersType - version: 0.0.1 - optional: false - - key: commonHeader - value: - key: commonHeader - fieldSchemaKey: - name: CDSResponseCommonHeaderType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSCreateResponsePayloadType - version: 0.0.1 - optional: false - - key: status - value: - key: status - fieldSchemaKey: - name: CDSResponseStatusType - version: 0.0.1 - optional: false - outputEvents: - entry: - - key: CDSResponseStatusEvent - value: - key: - name: CDSResponseStatusEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: DCAE - parameter: - entry: - - key: status - value: - key: status - fieldSchemaKey: - name: SubscriptionStatusType - version: 0.0.1 - optional: false - taskParameters: - entry: [ ] - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskLogic: - key: TaskLogic - logicFlavour: JAVASCRIPT - logic: |- - /* - * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - executor.logger.info(executor.subject.id); - var commonHeader = executor.inFields.get("commonHeader") - var response = executor.inFields.get("payload") - var albumID = commonHeader.get("requestId") - var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString()); - var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance(); - var changeType = pmSubscriptionInfo.get("changeType").toUpperCase() - responseStatus.put("nfName", pmSubscriptionInfo.get("nfName")) - responseStatus.put("changeType", pmSubscriptionInfo.get("changeType")) - if ("CREATE".equals(changeType)) { - responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName")) - responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("subscription").get("measurementGroup").get("measurementGroupName")) - } - else if ("DELETE".equals(changeType)) { - responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName")) - responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName")) - } - var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status") - executor.logger.info("RESPONSE STATUS = " + status) - if(status == "success") { - responseStatus.put("message", "success") - } else { - responseStatus.put("message", "failed") - } - executor.outFields.put("status", responseStatus) - returnValue = executor.isTrue; - true; - - key: - name: CDSDeleteResponseTask - version: 0.0.1 - value: - key: - name: CDSDeleteResponseTask - version: 0.0.1 - inputEvent: - key: - name: CDSDeleteResponseEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: CDS - target: APEX - parameter: - entry: - - key: actionIdentifiers - value: - key: actionIdentifiers - fieldSchemaKey: - name: CDSActionIdentifiersType - version: 0.0.1 - optional: false - - key: commonHeader - value: - key: commonHeader - fieldSchemaKey: - name: CDSResponseCommonHeaderType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSDeleteResponsePayloadType - version: 0.0.1 - optional: false - - key: status - value: - key: status - fieldSchemaKey: - name: CDSResponseStatusType - version: 0.0.1 - optional: false - outputEvents: - entry: - - key: CDSResponseStatusEvent - value: - key: - name: CDSResponseStatusEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: DCAE - parameter: - entry: - - key: status - value: - key: status - fieldSchemaKey: - name: SubscriptionStatusType - version: 0.0.1 - optional: false - taskParameters: - entry: [ ] - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskLogic: - key: TaskLogic - logicFlavour: JAVASCRIPT - logic: |- - /* - * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - executor.logger.info(executor.subject.id); - var commonHeader = executor.inFields.get("commonHeader") - var response = executor.inFields.get("payload") - var albumID = commonHeader.get("requestId") - var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(albumID.toString()); - var responseStatus = executor.subject.getOutFieldSchemaHelper("status").createNewInstance(); - var changeType = pmSubscriptionInfo.get("changeType").toUpperCase() - responseStatus.put("nfName", pmSubscriptionInfo.get("nfName")) - responseStatus.put("changeType", pmSubscriptionInfo.get("changeType")) - if ("CREATE".equals(changeType)) { - responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName")) - responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("subscription").get("measurementGroup").get("measurementGroupName")) - } - else if ("DELETE".equals(changeType)) { - responseStatus.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName")) - responseStatus.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName")) - } - var status = response.get(pmSubscriptionInfo.get("changeType").toLowerCase() + "_DasH_subscription_DasH_response").get("odl_DasH_response").get("status") - executor.logger.info("RESPONSE STATUS = " + status) - if(status == "success") { - responseStatus.put("message", "success") - } else { - responseStatus.put("message", "failed") - } - executor.outFields.put("status", responseStatus) - returnValue = executor.isTrue; - true; - - key: - name: CreateSubscriptionPayloadTask - version: 0.0.1 - value: - key: - name: CreateSubscriptionPayloadTask - version: 0.0.1 - inputEvent: - key: - name: PMSubscriptionOutputEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - outputEvents: - entry: - - key: CreateSubscriptionPayloadEvent - value: - key: - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - optional: false - taskParameters: - entry: [ ] - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskLogic: - key: TaskLogic - logicFlavour: JAVASCRIPT - logic: |- - /* - * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - executor.logger.info(executor.subject.id); - var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) - var changeType = pmSubscriptionInfo.get("changeType").toLowerCase() - var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record"); - payloadProperties.put("nfName", pmSubscriptionInfo.get("nfName")) - payloadProperties.put("ipAddress", pmSubscriptionInfo.get("ipAddress")) - if ("create".equals(changeType)) { - payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName")) - payloadProperties.put("fileBasedGP", pmSubscriptionInfo.get("subscription").get("fileBasedGP").toString()) - payloadProperties.put("fileLocation", pmSubscriptionInfo.get("subscription").get("fileLocation")) - payloadProperties.put("measurementGroup", pmSubscriptionInfo.get("subscription").get("measurementGroup")) - } - else if ("delete".equals(changeType)) { - payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName")) - payloadProperties.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName")) - } - var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry"); - payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties) - var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance(); - payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry); - executor.outFields.put("albumID", executor.inFields.get("albumID")) - executor.outFields.put("payload", payload); - returnValue = executor.isTrue; - true; - - key: - name: CreateSubscriptionRequestTask - version: 0.0.1 - value: - key: - name: CreateSubscriptionRequestTask - version: 0.0.1 - inputEvent: - key: - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - optional: false - outputEvents: - entry: - - key: CDSCreateSubscriptionRequestEvent - value: - key: - name: CDSCreateSubscriptionRequestEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: actionIdentifiers - value: - key: actionIdentifiers - fieldSchemaKey: - name: CDSActionIdentifiersType - version: 0.0.1 - optional: false - - key: commonHeader - value: - key: commonHeader - fieldSchemaKey: - name: CDSRequestCommonHeaderType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - optional: false - taskParameters: - entry: [ ] - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskLogic: - key: TaskLogic - logicFlavour: JAVASCRIPT - logic: |- - /* - * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - executor.logger.info(executor.subject.id); - var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) - executor.logger.info(pmSubscriptionInfo) - var changeType = pmSubscriptionInfo.get("changeType").toLowerCase() - var blueprintName = pmSubscriptionInfo.get("blueprintName").toLowerCase() - var blueprintVersion = pmSubscriptionInfo.get("blueprintVersion").toLowerCase() - var payload = executor.inFields.get("payload") - var actionName = changeType + "-subscription" - var commonHeader = executor.subject.getOutFieldSchemaHelper("commonHeader").createNewInstance(); - commonHeader.put("originatorId", "sdnc"); - commonHeader.put("requestId", executor.inFields.get("albumID").toString()); - commonHeader.put("subRequestId", "sub-123456-1000"); - var actionIdentifiers = executor.subject.getOutFieldSchemaHelper("actionIdentifiers").createNewInstance(); - actionIdentifiers.put("actionName", actionName); - actionIdentifiers.put("blueprintName", blueprintName); - actionIdentifiers.put("blueprintVersion", blueprintVersion); - actionIdentifiers.put("mode", "sync"); - executor.outFields.put("commonHeader", commonHeader); - executor.outFields.put("actionIdentifiers", actionIdentifiers); - executor.outFields.put("payload", payload); - returnValue = executor.isTrue; - true; - - key: - name: DeleteSubscriptionPayloadTask - version: 0.0.1 - value: - key: - name: DeleteSubscriptionPayloadTask - version: 0.0.1 - inputEvent: - key: - name: PMSubscriptionOutputEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - outputEvents: - entry: - - key: DeleteSubscriptionPayloadEvent - value: - key: - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - optional: false - taskParameters: - entry: [ ] - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskLogic: - key: TaskLogic - logicFlavour: JAVASCRIPT - logic: |- - /* - * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - executor.logger.info(executor.subject.id); - var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) - var changeType = pmSubscriptionInfo.get("changeType").toLowerCase() - var payloadProperties = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance(changeType + "_DasH_subscription_DasH_properties_record"); - payloadProperties.put("nfName", pmSubscriptionInfo.get("nfName")) - payloadProperties.put("ipAddress", pmSubscriptionInfo.get("ipAddress")) - if ("create".equals(changeType)) { - payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscription").get("subscriptionName")) - payloadProperties.put("fileBasedGP", pmSubscriptionInfo.get("subscription").get("fileBasedGP").toString()) - payloadProperties.put("fileLocation", pmSubscriptionInfo.get("subscription").get("fileLocation")) - payloadProperties.put("measurementGroup", pmSubscriptionInfo.get("subscription").get("measurementGroup")) - } - else if ("delete".equals(changeType)) { - payloadProperties.put("subscriptionName", pmSubscriptionInfo.get("subscriptionName")) - payloadProperties.put("measurementGroupName", pmSubscriptionInfo.get("measurementGroupName")) - } - var payloadEntry = executor.subject.getOutFieldSchemaHelper("payload").createNewSubInstance("CDSRequestPayloadEntry"); - payloadEntry.put(changeType + "_DasH_subscription_DasH_properties", payloadProperties) - var payload = executor.subject.getOutFieldSchemaHelper("payload").createNewInstance(); - payload.put(changeType + "_DasH_subscription_DasH_request", payloadEntry); - executor.outFields.put("albumID", executor.inFields.get("albumID")) - executor.outFields.put("payload", payload); - returnValue = executor.isTrue; - true; - - key: - name: DeleteSubscriptionRequestTask - version: 0.0.1 - value: - key: - name: DeleteSubscriptionRequestTask - version: 0.0.1 - inputEvent: - key: - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - optional: false - outputEvents: - entry: - - key: CDSDeleteSubscriptionRequestEvent - value: - key: - name: CDSDeleteSubscriptionRequestEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: actionIdentifiers - value: - key: actionIdentifiers - fieldSchemaKey: - name: CDSActionIdentifiersType - version: 0.0.1 - optional: false - - key: commonHeader - value: - key: commonHeader - fieldSchemaKey: - name: CDSRequestCommonHeaderType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - optional: false - taskParameters: - entry: [ ] - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskLogic: - key: TaskLogic - logicFlavour: JAVASCRIPT - logic: |- - /* - * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - executor.logger.info(executor.subject.id); - var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").get(executor.inFields.get("albumID").toString()) - executor.logger.info(pmSubscriptionInfo) - var changeType = pmSubscriptionInfo.get("changeType").toLowerCase() - var blueprintName = pmSubscriptionInfo.get("blueprintName").toLowerCase() - var blueprintVersion = pmSubscriptionInfo.get("blueprintVersion").toLowerCase() - var payload = executor.inFields.get("payload") - var actionName = changeType + "-subscription" - var commonHeader = executor.subject.getOutFieldSchemaHelper("commonHeader").createNewInstance(); - commonHeader.put("originatorId", "sdnc"); - commonHeader.put("requestId", executor.inFields.get("albumID").toString()); - commonHeader.put("subRequestId", "sub-123456-1000"); - var actionIdentifiers = executor.subject.getOutFieldSchemaHelper("actionIdentifiers").createNewInstance(); - actionIdentifiers.put("actionName", actionName); - actionIdentifiers.put("blueprintName", blueprintName); - actionIdentifiers.put("blueprintVersion", blueprintVersion); - actionIdentifiers.put("mode", "sync"); - executor.outFields.put("commonHeader", commonHeader); - executor.outFields.put("actionIdentifiers", actionIdentifiers); - executor.outFields.put("payload", payload); - returnValue = executor.isTrue; - true; - - key: - name: ReceiveSubscriptionTask - version: 0.0.1 - value: - key: - name: ReceiveSubscriptionTask - version: 0.0.1 - inputEvent: - key: - name: pmsh-operational-policy - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: DCAE - target: APEX - parameter: - entry: - - key: blueprintName - value: - key: blueprintName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: blueprintVersion - value: - key: blueprintVersion - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: changeType - value: - key: changeType - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: controlLoopName - value: - key: controlLoopName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: ipAddress - value: - key: ipAddress - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: measurementGroupName - value: - key: measurementGroupName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: true - - key: nfName - value: - key: nfName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: operationalPolicyName - value: - key: operationalPolicyName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: subscription - value: - key: subscription - fieldSchemaKey: - name: SubscriptionType - version: 0.0.1 - optional: true - - key: subscriptionName - value: - key: subscriptionName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: true - outputEvents: - entry: - - key: PMSubscriptionOutputEvent - value: - key: - name: PMSubscriptionOutputEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - taskParameters: - entry: [ ] - contextAlbumReference: - - name: PMSubscriptionAlbum - version: 0.0.1 - taskLogic: - key: TaskLogic - logicFlavour: JAVASCRIPT - logic: |- - /* - * ============LICENSE_START======================================================= - * Copyright (C) 2020 Nordix. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - var uuidType = java.util.UUID; - executor.logger.info(executor.subject.id); - //albumID will be used to fetch info from our album later - var albumID = uuidType.randomUUID(); - var pmSubscriptionInfo = executor.getContextAlbum("PMSubscriptionAlbum").getSchemaHelper().createNewInstance(); - var returnValue = true; - if(executor.inFields.get("operationalPolicyName") != null) { - executor.logger.info("nfName in receive sub event " + executor.inFields.get("nfName")); - var changeType = executor.inFields.get("changeType") - var nfName = executor.inFields.get("nfName") - var ipAddress = executor.inFields.get("ipAddress") - var operationalPolicyName = executor.inFields.get("operationalPolicyName") - var controlLoopName = executor.inFields.get("controlLoopName") - var subscription = executor.inFields.get("subscription") - var blueprintName = executor.inFields.get("blueprintName") - var blueprintVersion = executor.inFields.get("blueprintVersion") - pmSubscriptionInfo.put("nfName", executor.inFields.get("nfName")); - pmSubscriptionInfo.put("ipAddress", executor.inFields.get("ipAddress")); - pmSubscriptionInfo.put("changeType", executor.inFields.get("changeType")) - pmSubscriptionInfo.put("operationalPolicyName", executor.inFields.get("operationalPolicyName")) - pmSubscriptionInfo.put("controlLoopName", executor.inFields.get("controlLoopName")) - pmSubscriptionInfo.put("subscription", subscription) - pmSubscriptionInfo.put("blueprintName", blueprintName) - pmSubscriptionInfo.put("blueprintVersion", blueprintVersion) - if ("delete".equals(changeType.toLowerCase())) { - pmSubscriptionInfo.put("subscriptionName", executor.inFields.get("subscriptionName")) - pmSubscriptionInfo.put("measurementGroupName", executor.inFields.get("measurementGroupName")) - } - executor.getContextAlbum("PMSubscriptionAlbum").put(albumID.toString(), pmSubscriptionInfo); - executor.outFields.put("albumID", albumID) - } else { - executor.message = "Received invalid event" - returnValue = false; - } - returnValue; - events: - key: - name: PMControlPolicy_Events - version: 0.0.1 - eventMap: - entry: - - key: - name: CDSCreateResponseEvent - version: 0.0.1 - value: - key: - name: CDSCreateResponseEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: CDS - target: APEX - parameter: - entry: - - key: actionIdentifiers - value: - key: actionIdentifiers - fieldSchemaKey: - name: CDSActionIdentifiersType - version: 0.0.1 - optional: false - - key: commonHeader - value: - key: commonHeader - fieldSchemaKey: - name: CDSResponseCommonHeaderType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSCreateResponsePayloadType - version: 0.0.1 - optional: false - - key: status - value: - key: status - fieldSchemaKey: - name: CDSResponseStatusType - version: 0.0.1 - optional: false - - key: - name: CDSCreateSubscriptionRequestEvent - version: 0.0.1 - value: - key: - name: CDSCreateSubscriptionRequestEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: actionIdentifiers - value: - key: actionIdentifiers - fieldSchemaKey: - name: CDSActionIdentifiersType - version: 0.0.1 - optional: false - - key: commonHeader - value: - key: commonHeader - fieldSchemaKey: - name: CDSRequestCommonHeaderType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - optional: false - - key: - name: CDSDeleteResponseEvent - version: 0.0.1 - value: - key: - name: CDSDeleteResponseEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: CDS - target: APEX - parameter: - entry: - - key: actionIdentifiers - value: - key: actionIdentifiers - fieldSchemaKey: - name: CDSActionIdentifiersType - version: 0.0.1 - optional: false - - key: commonHeader - value: - key: commonHeader - fieldSchemaKey: - name: CDSResponseCommonHeaderType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSDeleteResponsePayloadType - version: 0.0.1 - optional: false - - key: status - value: - key: status - fieldSchemaKey: - name: CDSResponseStatusType - version: 0.0.1 - optional: false - - key: - name: CDSDeleteSubscriptionRequestEvent - version: 0.0.1 - value: - key: - name: CDSDeleteSubscriptionRequestEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: actionIdentifiers - value: - key: actionIdentifiers - fieldSchemaKey: - name: CDSActionIdentifiersType - version: 0.0.1 - optional: false - - key: commonHeader - value: - key: commonHeader - fieldSchemaKey: - name: CDSRequestCommonHeaderType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - optional: false - - key: - name: CDSResponseStatusEvent - version: 0.0.1 - value: - key: - name: CDSResponseStatusEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: DCAE - parameter: - entry: - - key: status - value: - key: status - fieldSchemaKey: - name: SubscriptionStatusType - version: 0.0.1 - optional: false - - key: - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - value: - key: - name: CreateSubscriptionPayloadEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - optional: false - - key: - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - value: - key: - name: DeleteSubscriptionPayloadEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - - key: payload - value: - key: payload - fieldSchemaKey: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - optional: false - - key: - name: MRResponseEvent - version: 0.0.1 - value: - key: - name: MRResponseEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: DCAE - target: APEX - parameter: - entry: - - key: count - value: - key: count - fieldSchemaKey: - name: SimpleIntType - version: 0.0.1 - optional: false - - key: serverTimeMs - value: - key: serverTimeMs - fieldSchemaKey: - name: SimpleIntType - version: 0.0.1 - optional: false - - key: - name: PMSubscriptionOutputEvent - version: 0.0.1 - value: - key: - name: PMSubscriptionOutputEvent - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: APEX - target: APEX - parameter: - entry: - - key: albumID - value: - key: albumID - fieldSchemaKey: - name: UUIDType - version: 0.0.1 - optional: false - - key: - name: pmsh-operational-policy - version: 0.0.1 - value: - key: - name: pmsh-operational-policy - version: 0.0.1 - nameSpace: org.onap.policy.apex.onap.pmcontrol - source: DCAE - target: APEX - parameter: - entry: - - key: blueprintName - value: - key: blueprintName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: blueprintVersion - value: - key: blueprintVersion - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: changeType - value: - key: changeType - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: controlLoopName - value: - key: controlLoopName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: ipAddress - value: - key: ipAddress - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: measurementGroupName - value: - key: measurementGroupName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: true - - key: nfName - value: - key: nfName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: operationalPolicyName - value: - key: operationalPolicyName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: false - - key: subscription - value: - key: subscription - fieldSchemaKey: - name: SubscriptionType - version: 0.0.1 - optional: true - - key: subscriptionName - value: - key: subscriptionName - fieldSchemaKey: - name: SimpleStringType - version: 0.0.1 - optional: true - albums: - key: - name: PMControlPolicy_Albums - version: 0.0.1 - albums: - entry: - - key: - name: PMSubscriptionAlbum - version: 0.0.1 - value: - key: - name: PMSubscriptionAlbum - version: 0.0.1 - scope: policy - isWritable: true - itemSchema: - name: PMSubscriptionType - version: 0.0.1 - schemas: - key: - name: PMControlPolicy_Schemas - version: 0.0.1 - schemas: - entry: - - key: - name: CDSActionIdentifiersType - version: 0.0.1 - value: - key: - name: CDSActionIdentifiersType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "type": "record", - "name": "ActionIdentifiers_Type", - "namespace": "org.onap.policy.apex.onap.helloworld", - "fields": [ - { - "name": "actionName", - "type": "string" - }, - { - "name": "blueprintName", - "type": "string" - }, - { - "name": "blueprintVersion", - "type": "string" - }, - { - "name": "mode", - "type": "string" - } - ] - } - - key: - name: CDSCreateResponsePayloadType - version: 0.0.1 - value: - key: - name: CDSCreateResponsePayloadType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "name": "CreateResponsePayloadEntry", - "type": "record", - "namespace": "com.acme.avro", - "fields": [ - { - "name": "create_DasH_subscription_DasH_response", - "type": { - "name": "create_DasH_subscription_DasH_response", - "type": "record", - "fields": [ - { - "name": "odl_DasH_response", - "type": { - "name": "odl_DasH_response", - "type": "record", - "fields": [ - { - "name": "status", - "type": "string" - } - ] - } - } - ] - } - } - ] - } - - key: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - value: - key: - name: CDSCreateSubscriptionPayloadType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "type":"map", - "values":{ - "type":"record", - "name":"CDSRequestPayloadEntry", - "fields":[ - { - "name":"create_DasH_subscription_DasH_properties", - "type":{ - "name":"create_DasH_subscription_DasH_properties_record", - "type":"record", - "fields":[ - { - "name":"nfName", - "type":"string" - }, - { - "name":"ipAddress", - "type":"string" - }, - { - "name":"subscriptionName", - "type":"string" - }, - { - "name":"fileBasedGP", - "type":"string" - }, - { - "name":"fileLocation", - "type":"string" - }, - { - "name":"measurementGroup", - "type":{ - "name":"Measurement_Group_Type", - "type":"record", - "fields":[ - { - "name":"measurementGroupName", - "type":"string" - }, - { - "name":"measurementTypes", - "type":{ - "type":"array", - "items":{ - "name":"Measurement_Types_Type", - "type":"record", - "fields":[ - { - "name":"measurementType", - "type":"string" - } - ] - } - } - }, - { - "name":"managedObjectDNsBasic", - "type":{ - "type":"array", - "items":{ - "name":"Managed_Object_Dns_Basic_Type", - "type":"record", - "fields":[ - { - "name":"DN", - "type":"string" - } - ] - } - } - } - ] - } - } - ] - } - } - ] - } - } - - key: - name: CDSDeleteResponsePayloadType - version: 0.0.1 - value: - key: - name: CDSDeleteResponsePayloadType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "name": "DeleteResponsePayloadEntry", - "type": "record", - "namespace": "com.acme.avro", - "fields": [ - { - "name": "delete_DasH_subscription_DasH_response", - "type": { - "name": "delete_DasH_subscription_DasH_response", - "type": "record", - "fields": [ - { - "name": "odl_DasH_response", - "type": { - "name": "odl_DasH_response", - "type": "record", - "fields": [ - { - "name": "status", - "type": "string" - } - ] - } - } - ] - } - } - ] - } - - key: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - value: - key: - name: CDSDeleteSubscriptionPayloadType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "type":"map", - "values":{ - "type":"record", - "name":"CDSRequestPayloadEntry", - "fields":[ - { - "name":"delete_DasH_subscription_DasH_properties", - "type":{ - "name":"delete_DasH_subscription_DasH_properties_record", - "type":"record", - "fields":[ - { - "name":"nfName", - "type":"string" - }, - { - "name":"ipAddress", - "type":"string" - }, - { - "name":"subscriptionName", - "type":"string" - }, - { - "name":"measurementGroupName", - "type":"string" - } - ] - } - } - ] - } - } - - key: - name: CDSRequestCommonHeaderType - version: 0.0.1 - value: - key: - name: CDSRequestCommonHeaderType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "type": "record", - "name": "RequestCommonHeader_Type", - "namespace": "org.onap.policy.apex.onap.helloworld", - "fields": [ - { - "name": "originatorId", - "type": "string" - }, - { - "name": "requestId", - "type": "string" - }, - { - "name": "subRequestId", - "type": "string" - } - ] - } - - key: - name: CDSResponseCommonHeaderType - version: 0.0.1 - value: - key: - name: CDSResponseCommonHeaderType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "type": "record", - "name": "ResponseCommonHeader_Type", - "namespace": "org.onap.policy.apex.onap.helloworld", - "fields": [ - { - "name": "originatorId", - "type": "string" - }, - { - "name": "requestId", - "type": "string" - }, - { - "name": "subRequestId", - "type": "string" - }, - { - "name": "timestamp", - "type": "string" - }, - { - "name": "flags", - "type": ["null", "string"] - } - ] - } - - key: - name: CDSResponseStatusType - version: 0.0.1 - value: - key: - name: CDSResponseStatusType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "type": "record", - "name": "ResponseStatus_Type", - "namespace": "org.onap.policy.apex.onap.helloworld", - "fields": [ - { - "name": "code", - "type": "int" - }, - { - "name": "eventType", - "type": "string" - }, - { - "name": "timestamp", - "type": "string" - }, - { - "name": "message", - "type": "string" - } - ] - } - - key: - name: PMSubscriptionType - version: 0.0.1 - value: - key: - name: PMSubscriptionType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "name": "PMSubscription", - "type": "record", - "namespace": "org.onap.policy.apex.onap.pmcontrol", - "fields": [ - { - "name": "nfName", - "type": "string" - }, - { - "name": "ipAddress", - "type": "string" - }, - { - "name": "changeType", - "type": "string" - }, - { - "name": "controlLoopName", - "type": "string" - }, - { - "name": "operationalPolicyName", - "type": "string" - }, - { - "name": "blueprintName", - "type": "string" - }, - { - "name": "blueprintVersion", - "type": "string" - }, - { - "name": "subscriptionName", - "type": "string" - }, - { - "name": "measurementGroupName", - "type": "string" - }, - { - "name": "subscription", - "type": { - "name": "subscription", - "type": "record", - "fields": [ - { - "name": "subscriptionName", - "type": "string" - }, - { - "name": "fileBasedGP", - "type": "int" - }, - { - "name": "fileLocation", - "type": "string" - }, - { - "name": "measurementGroup", - "type": { - "name": "Measurement_Group_Type", - "type": "record", - "fields": [ - { - "name": "measurementGroupName", - "type": "string" - }, - { - "name": "measurementTypes", - "type": { - "type": "array", - "items": { - "name": "Measurement_Types_Type", - "type": "record", - "fields": [ - { - "name": "measurementType", - "type": "string" - } - ] - } - } - }, - { - "name": "managedObjectDNsBasic", - "type": { - "type": "array", - "items": { - "name": "Managed_Object_Dns_Basic_Type", - "type": "record", - "fields": [ - { - "name": "DN", - "type": "string" - } - ] - } - } - } - ] - } - } - ] - } - } - ] - } - - key: - name: SimpleIntType - version: 0.0.1 - value: - key: - name: SimpleIntType - version: 0.0.1 - schemaFlavour: Java - schemaDefinition: java.lang.Integer - - key: - name: SimpleStringType - version: 0.0.1 - value: - key: - name: SimpleStringType - version: 0.0.1 - schemaFlavour: Java - schemaDefinition: java.lang.String - - key: - name: SubscriptionStatusType - version: 0.0.1 - value: - key: - name: SubscriptionStatusType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "type": "record", - "name": "ActivateSubscriptionStatus_Type", - "namespace": "org.onap.policy.apex.onap.helloworld", - "fields": [ - { - "name": "subscriptionName", - "type": "string" - }, - { - "name": "measurementGroupName", - "type": "string" - }, - { - "name": "nfName", - "type": "string" - }, - { - "name": "changeType", - "type": "string" - }, - { - "name": "message", - "type": "string" - } - ] - } - - key: - name: SubscriptionType - version: 0.0.1 - value: - key: - name: SubscriptionType - version: 0.0.1 - schemaFlavour: Avro - schemaDefinition: |- - { - "name": "subscription", - "type": "record", - "default": "null", - "fields": [ - { - "name": "subscriptionName", - "type": "string" - }, - { - "name": "fileBasedGP", - "type": "int" - }, - { - "name": "fileLocation", - "type": "string" - }, - { - "name": "measurementGroup", - "type": { - "name": "Measurement_Group_Type", - "type": "record", - "fields": [ - { - "name": "measurementGroupName", - "type": "string" - }, - { - "name": "measurementTypes", - "type": { - "type": "array", - "items": { - "name": "Measurement_Types_Type", - "type": "record", - "fields": [ - { - "name": "measurementType", - "type": "string" - } - ] - } - } - }, - { - "name": "managedObjectDNsBasic", - "type": { - "type": "array", - "items": { - "name": "Managed_Object_Dns_Basic_Type", - "type": "record", - "fields": [ - { - "name": "DN", - "type": "string" - } - ] - } - } - } - ] - } - } - ] - } - - key: - name: UUIDType - version: 0.0.1 - value: - key: - name: UUIDType - version: 0.0.1 - schemaFlavour: Java - schemaDefinition: java.util.UUID - eventInputParameters: - DCAEConsumer: - carrierTechnologyParameters: - carrierTechnology: RESTCLIENT - parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters - parameters: - consumerPollTime: '50' - url: https://message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT/cg1/sg1 - eventProtocolParameters: - eventProtocol: JSON - parameters: - nameAlias: operationalPolicyName - eventName: pmsh-operational-policy - eventNameFilter: pmsh-operational-policy - CDSRequestConsumer: - carrierTechnologyParameters: - carrierTechnology: RESTREQUESTOR - parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters - parameters: - url: http://cds-blueprints-processor-http:8080/api/v1/execution-service/process - httpMethod: POST - restRequestTimeout: 2000 - httpHeaders: - - - Authorization - - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== - eventProtocolParameters: - eventProtocol: JSON - eventName: CDSCreateResponseEvent - eventNameFilter: CDSCreateResponseEvent - requestorMode: true - requestorPeer: CDSRequestProducer - requestorTimeout: 500 - CDSDeleteRequestConsumer: - carrierTechnologyParameters: - carrierTechnology: RESTREQUESTOR - parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters - parameters: - url: http://cds-blueprints-processor-http:8080/api/v1/execution-service/process - httpMethod: POST - restRequestTimeout: 2000 - httpHeaders: - - - Authorization - - Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== - eventProtocolParameters: - eventProtocol: JSON - eventName: CDSDeleteResponseEvent - eventNameFilter: CDSDeleteResponseEvent - requestorMode: true - requestorPeer: CDSDeleteRequestProducer - requestorTimeout: 500 - eventOutputParameters: - logOutputter: - carrierTechnologyParameters: - carrierTechnology: FILE - parameters: - standardIo: true - eventProtocolParameters: - eventProtocol: JSON - StdOutOutputter: - carrierTechnologyParameters: - carrierTechnology: FILE - parameters: - standardIo: true - eventProtocolParameters: - eventProtocol: JSON - CDSRequestProducer: - carrierTechnologyParameters: - carrierTechnology: RESTREQUESTOR - parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters - eventProtocolParameters: - eventProtocol: JSON - eventNameFilter: CDSCreateSubscriptionRequestEvent - requestorMode: true - requestorPeer: CDSRequestConsumer - requestorTimeout: 500 - CDSDeleteRequestProducer: - carrierTechnologyParameters: - carrierTechnology: RESTREQUESTOR - parameterClassName: org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters - eventProtocolParameters: - eventProtocol: JSON - eventNameFilter: CDSDeleteSubscriptionRequestEvent - requestorMode: true - requestorPeer: CDSDeleteRequestConsumer - requestorTimeout: 500 - CDSReplyProducer: - carrierTechnologyParameters: - carrierTechnology: RESTCLIENT - parameterClassName: org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters - parameters: - url: https://message-router:3905/events/unauthenticated.PMSH_CL_INPUT - httpMethod: POST - restRequestTimeout: 2000 - eventProtocolParameters: - eventProtocol: JSON - eventNameFilter: CDSResponseStatusEvent -- cgit 1.2.3-korg