3 "_postman_id": "82b9e85d-e9cd-4161-9b11-837465918e7c",
4 "name": "Drools-PDP VNF & PNF Testing",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
9 "name": "Create VNF Policy",
16 "value": "application/json"
19 "key": "Content-Type",
21 "value": "application/json"
26 "raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"topology_template\": {\n \"policies\": [\n {\n \"onap.policies.drools.vnf.Example\": {\n \"type\": \"onap.policies.controlloop.operational.common.Drools\",\n \"type_version\": \"1.0.0\",\n \"version\": \"1.0.0\",\n \"name\": \"onap.policies.drools.vnf.Example\",\n \"properties\": {\n \"id\": \"ControlLoop-vnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438831b\",\n \"timeout\": 1200,\n \"abatement\": false,\n \"trigger\": \"vnf-modifyConfig\",\n \"operations\": [\n {\n \"id\": \"vnf-modifyConfig\",\n \"description\": \"Test policy for vnf modify config\",\n \"operation\": {\n \"actor\": \"CDS\",\n \"operation\": \"modify-config\",\n \"target\": {\n \"targetType\": \"VNF\",\n \"entityIds\": {\n \"resourceID\": \"vTEST_XYZ\"\n }\n },\n \"payload\": {\n \"artifact_name\": \"vnf-test-cba\",\n \"artifact_version\": \"1.0.0\",\n \"data\": \"{\\\"test\\\": \\\"test\\\"}\"\n }\n },\n \"timeout\": 300,\n \"retries\": 0,\n \"success\": \"vnf-restart\",\n \"failure\": \"final_failure\",\n \"failure_timeout\": \"final_failure_timeout\",\n \"failure_retries\": \"final_failure_retries\",\n \"failure_exception\": \"final_failure_exception\",\n \"failure_guard\": \"final_failure_guard\"\n },\n {\n \"id\": \"vnf-restart\",\n \"description\": \"Test policy for vnf restart\",\n \"operation\": {\n \"actor\": \"CDS\",\n \"operation\": \"restart\",\n \"target\": {\n \"targetType\": \"VNF\",\n \"entityIds\": {\n \"resourceID\": \"vTEST_XYZ\"\n }\n },\n \"payload\": {\n \"artifact_name\": \"vnf-test-cba\",\n \"artifact_version\": \"1.0.0\",\n \"data\": \"{\\\"test\\\": \\\"test\\\"}\"\n }\n },\n \"timeout\": 300,\n \"retries\": 0,\n \"success\": \"final_success\",\n \"failure\": \"final_failure\",\n \"failure_timeout\": \"final_failure_timeout\",\n \"failure_retries\": \"final_failure_retries\",\n \"failure_exception\": \"final_failure_exception\",\n \"failure_guard\": \"final_failure_guard\"\n }\n ],\n \"controllerName\": \"usecases\"\n }\n }\n }\n ]\n }\n}"
29 "raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
44 "name": "Verify VNF Policy",
51 "value": "application/json"
54 "key": "Content-Type",
56 "value": "application/json"
60 "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.drools.vnf.Example/versions/1.0.0",
69 "onap.policies.drools.vnf.Example",
78 "name": "Create PNF Policy",
85 "value": "application/json"
88 "key": "Content-Type",
90 "value": "application/json"
95 "raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"topology_template\": {\n \"policies\": [\n {\n \"onap.policies.drools.pnf.Example\": {\n \"type\": \"onap.policies.controlloop.operational.common.Drools\",\n \"type_version\": \"1.0.0\",\n \"version\": \"1.0.0\",\n \"name\": \"onap.policies.drools.pnf.Example\",\n \"properties\": {\n \"id\": \"ControlLoop-pnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438851b\",\n \"timeout\": 1200,\n \"abatement\": false,\n \"trigger\": \"pnf-updateConfig\",\n \"operations\": [\n {\n \"id\": \"pnf-updateConfig\",\n \"description\": \"Test the pnf update config\",\n \"operation\": {\n \"actor\": \"CDS\",\n \"operation\": \"update-config\",\n \"target\": {\n \"targetType\": \"PNF\"\n },\n \"payload\": {\n \"artifact_name\": \"pnf-test-cba\",\n \"artifact_version\": \"1.0.0\",\n \"data\": \"test\"\n }\n },\n \"timeout\": 300,\n \"retries\": 0,\n \"success\": \"final_success\",\n \"failure\": \"final_failure\",\n \"failure_timeout\": \"final_failure_timeout\",\n \"failure_retries\": \"final_failure_retries\",\n \"failure_exception\": \"final_failure_exception\",\n \"failure_guard\": \"final_failure_guard\"\n }\n ],\n \"controllerName\": \"usecases\"\n }\n }\n }\n ]\n }\n}"
98 "raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
113 "name": "Verify PNF Policy",
120 "value": "application/json"
123 "key": "Content-Type",
125 "value": "application/json"
129 "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.drools.pnf.Example/versions/1.0.0",
138 "onap.policies.drools.pnf.Example",
147 "name": "PDP Group Query",
148 "protocolProfileBehavior": {
149 "disableBodyPruning": true
155 "key": "Content-Type",
157 "value": "application/json"
162 "value": "application/json"
167 "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}"
170 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
185 "name": "Deploy Policy",
190 "key": "Content-Type",
192 "value": "application/json"
197 "value": "application/json"
202 "raw": "{\r\n \"groups\": [\r\n {\r\n \"name\": \"defaultGroup\",\r\n \"deploymentSubgroups\": [\r\n {\r\n \"pdpType\": \"drools\",\r\n \"action\": \"POST\",\r\n \"policies\": [\r\n {\r\n \"name\": \"onap.policies.drools.vnf.Example\",\r\n \"version\": \"1.0.0\"\r\n },\r\n {\r\n \"name\": \"onap.policies.drools.pnf.Example\",\r\n \"version\": \"1.0.0\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}"
205 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/deployments/batch",
222 "name": "PDP Group Query",
223 "protocolProfileBehavior": {
224 "disableBodyPruning": true
230 "key": "Content-Type",
232 "value": "application/json"
237 "value": "application/json"
242 "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}"
245 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
260 "name": "VNF Policy Status",
265 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.drools.vnf.Example/1.0.0",
276 "onap.policies.drools.vnf.Example",
284 "name": "PNF Policy Status",
289 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.drools.pnf.Example/1.0.0",
300 "onap.policies.drools.pnf.Example",
308 "name": "VNF Policy Audit",
313 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/onap.policies.drools.vnf.Example/1.0.0?recordCount=5",
323 "onap.policies.drools.vnf.Example",
328 "key": "recordCount",
337 "name": "PNF Policy Audit",
342 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/onap.policies.drools.pnf.Example/1.0.0?recordCount=5",
352 "onap.policies.drools.pnf.Example",
357 "key": "recordCount",
366 "name": "Fetch PDP Statistics",
367 "protocolProfileBehavior": {
368 "disableBodyPruning": true
374 "key": "Content-Type",
376 "value": "application/json"
381 "value": "application/json"
389 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
404 "key": "recordCount",
409 "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"
414 "name": "Send event to dmaap - VNF Success",
422 "key": "Content-Type",
423 "name": "Content-Type",
425 "value": "application/json"
430 "raw": "{\n \"closedLoopControlName\": \"ControlLoop-vnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438831b\",\n \"closedLoopAlarmStart\": 1463679805324,\n \"closedLoopEventClient\": \"testClient\",\n \"closedLoopEventStatus\": \"ONSET\",\n \"requestID\": \"c7c6a4aa-bb61-4a15-b831-ba1472dd4a65\",\n \"target_type\": \"VNF\",\n \"target\": \"generic-vnf.vnf-id\",\n \"AAI\": {\n \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\n \"vserver.vserver-name\": \"viptela_scripts\"\n },\n \"from\": \"TEST\",\n \"version\": \"1.0.2\",\n \"additionalEventParams\": {\n \"vfStatus\": \"Active\"\n }\n}",
438 "raw": "{{DMAAP-URL}}/events/unauthenticated.DCAE_CL_OUTPUT",
444 "unauthenticated.DCAE_CL_OUTPUT"
451 "name": "Read notifications from DMaaP",
459 "key": "Content-Type",
460 "name": "Content-Type",
462 "value": "application/json",
467 "raw": "{{DMAAP-URL}}/events/POLICY-CL-MGT/g1/c1?timeout=30000",
488 "name": "Fetch PDP Statistics",
489 "protocolProfileBehavior": {
490 "disableBodyPruning": true
496 "key": "Content-Type",
498 "value": "application/json"
503 "value": "application/json"
511 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
526 "key": "recordCount",
531 "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"
536 "name": "Send event to dmaap - VNF Failure",
544 "key": "Content-Type",
545 "name": "Content-Type",
547 "value": "application/json"
552 "raw": "{\n \"closedLoopControlName\": \"ControlLoop-vnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438831b\",\n \"closedLoopAlarmStart\": 1463679805324,\n \"closedLoopEventClient\": \"testClient\",\n \"closedLoopEventStatus\": \"ONSET\",\n \"requestID\": \"c7c6a4aa-bb61-4a15-b831-ba1472dd4a75\",\n \"target_type\": \"VNF\",\n \"target\": \"generic-vnf.vnf-id\",\n \"AAI\": {\n \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\n \"vserver.vserver-name\": \"viptela_scripts\"\n },\n \"from\": \"TEST\",\n \"version\": \"1.0.2\",\n \"additionalEventParams\": {\n \"vfStatus\": \"InActive\"\n }\n}",
560 "raw": "{{DMAAP-URL}}/events/unauthenticated.DCAE_CL_OUTPUT",
566 "unauthenticated.DCAE_CL_OUTPUT"
573 "name": "Read notifications from DMaaP",
581 "key": "Content-Type",
582 "name": "Content-Type",
584 "value": "application/json",
589 "raw": "{{DMAAP-URL}}/events/POLICY-CL-MGT/g1/c1?timeout=30000",
610 "name": "Fetch PDP Statistics",
611 "protocolProfileBehavior": {
612 "disableBodyPruning": true
618 "key": "Content-Type",
620 "value": "application/json"
625 "value": "application/json"
633 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
648 "key": "recordCount",
653 "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"
658 "name": "Send event to dmaap - PNF Success",
666 "key": "Content-Type",
667 "name": "Content-Type",
669 "value": "application/json"
674 "raw": "{\n \"closedLoopControlName\": \"ControlLoop-pnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438851b\",\n \"closedLoopAlarmStart\": 1463679805324,\n \"closedLoopEventClient\": \"testClient\",\n \"closedLoopEventStatus\": \"ONSET\",\n \"requestID\": \"c7c6a4aa-bb61-4a15-b831-ba1472dd4a85\",\n \"target_type\": \"PNF\",\n \"target\": \"pnf.pnf-name\",\n \"AAI\": {\n \"pnf.pnf-name\": \"simple-cl-pnf\"\n },\n \"from\": \"TEST\",\n \"version\": \"1.0.2\",\n \"additionalEventParams\": {\n \"hostname\": \"host\",\n \"IP\": \"10.43.230.146\",\n \"pnfName\": \"simple-cl-pnf\"\n }\n}",
682 "raw": "{{DMAAP-URL}}/events/unauthenticated.DCAE_CL_OUTPUT",
688 "unauthenticated.DCAE_CL_OUTPUT"
695 "name": "Read notifications from DMaaP",
703 "key": "Content-Type",
704 "name": "Content-Type",
706 "value": "application/json",
711 "raw": "{{DMAAP-URL}}/events/POLICY-CL-MGT/g1/c1?timeout=30000",
732 "name": "Fetch PDP Statistics",
733 "protocolProfileBehavior": {
734 "disableBodyPruning": true
740 "key": "Content-Type",
742 "value": "application/json"
747 "value": "application/json"
755 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
770 "key": "recordCount",
775 "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"
780 "name": "Send event to dmaap - PNF Failure",
788 "key": "Content-Type",
789 "name": "Content-Type",
791 "value": "application/json"
796 "raw": "{\n \"closedLoopControlName\": \"ControlLoop-pnf-d0a1dfc6-94f5-4fd4-a5b5-4630b438851b\",\n \"closedLoopAlarmStart\": 1463679805324,\n \"closedLoopEventClient\": \"testClient\",\n \"closedLoopEventStatus\": \"ONSET\",\n \"requestID\": \"c7c6a4aa-bb61-4a15-b831-ba1472dd4a95\",\n \"target_type\": \"PNF\",\n \"target\": \"pnf.pnf-name\",\n \"AAI\": {\n \"pnf.pnf-name\": \"simple-cl-pnf-failure\"\n },\n \"from\": \"TEST\",\n \"version\": \"1.0.2\",\n \"additionalEventParams\": {\n \"hostname\": \"host\",\n \"IP\": \"10.43.230.146\",\n \"pnfName\": \"simple-cl-pnf-failure\"\n }\n}",
804 "raw": "{{DMAAP-URL}}/events/unauthenticated.DCAE_CL_OUTPUT",
810 "unauthenticated.DCAE_CL_OUTPUT"
817 "name": "Read notifications from DMaaP",
825 "key": "Content-Type",
826 "name": "Content-Type",
828 "value": "application/json",
833 "raw": "{{DMAAP-URL}}/events/POLICY-CL-MGT/g1/c1?timeout=30000",
854 "name": "Fetch PDP Statistics",
855 "protocolProfileBehavior": {
856 "disableBodyPruning": true
862 "key": "Content-Type",
864 "value": "application/json"
869 "value": "application/json"
877 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
892 "key": "recordCount",
897 "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"
902 "name": "Undeploy Policy",
909 "value": "healthcheck",
914 "value": "{{HEALTHCHECK-PASSWORD}}",
922 "key": "Content-Type",
924 "value": "application/json"
929 "value": "application/json"
934 "raw": "{\n \"groups\": [\n {\n \"name\": \"defaultGroup\",\n \"deploymentSubgroups\": [\n {\n \"pdpType\": \"drools\",\n \"action\": \"DELETE\",\n \"policies\": [\n {\n \"name\": \"onap.policies.drools.vnf.Example\",\n \"version\": \"1.0.0\"\n },\n {\n \"name\": \"onap.policies.drools.pnf.Example\",\n \"version\": \"1.0.0\"\n }\n ]\n }\n ]\n }\n ]\n}",
942 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/deployments/batch",
959 "name": "PDP Group Query",
960 "protocolProfileBehavior": {
961 "disableBodyPruning": true
967 "key": "Content-Type",
969 "value": "application/json"
974 "value": "application/json"
979 "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}"
982 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
997 "name": "VNF Policy Status",
1002 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.drools.vnf.Example/1.0.0",
1004 "{{POLICY-PAP-URL}}"
1013 "onap.policies.drools.vnf.Example",
1021 "name": "PNF Policy Status",
1026 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/status/defaultGroup/onap.policies.drools.pnf.Example/1.0.0",
1028 "{{POLICY-PAP-URL}}"
1037 "onap.policies.drools.pnf.Example",
1045 "name": "VNF Policy Audit",
1050 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/onap.policies.drools.vnf.Example/1.0.0?recordCount=5",
1052 "{{POLICY-PAP-URL}}"
1060 "onap.policies.drools.vnf.Example",
1065 "key": "recordCount",
1074 "name": "PNF Policy Audit",
1079 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/policies/audit/onap.policies.drools.pnf.Example/1.0.0?recordCount=5",
1081 "{{POLICY-PAP-URL}}"
1089 "onap.policies.drools.pnf.Example",
1094 "key": "recordCount",
1103 "name": "Fetch PDP Statistics",
1104 "protocolProfileBehavior": {
1105 "disableBodyPruning": true
1111 "key": "Content-Type",
1113 "value": "application/json"
1118 "value": "application/json"
1126 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/statistics/defaultGroup/drools?recordCount=5",
1128 "{{POLICY-PAP-URL}}"
1141 "key": "recordCount",
1146 "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"
1151 "name": "Delete VNF Policy",
1156 "key": "Content-Type",
1158 "value": "application/json"
1163 "value": "application/json"
1167 "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.drools.vnf.Example/versions/1.0.0",
1169 "{{POLICY-API-URL}}"
1176 "onap.policies.drools.vnf.Example",
1185 "name": "Delete PNF Policy",
1190 "key": "Content-Type",
1192 "value": "application/json"
1197 "value": "application/json"
1201 "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/onap.policies.drools.pnf.Example/versions/1.0.0",
1203 "{{POLICY-API-URL}}"
1210 "onap.policies.drools.pnf.Example",
1224 "value": "{{HEALTHCHECK-PASSWORD}}",
1229 "value": "healthcheck",
1236 "listen": "prerequest",
1238 "type": "text/javascript",
1247 "type": "text/javascript",