3 "_postman_id": "20eb42db-f0a7-4b65-8ccd-c3a5f56cb526",
4 "name": "Policy Application Tutorial",
5 "description": "Collection of Postman API calls to support the Policy Enforcement Tutorial",
6 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
10 "name": "Api Healthcheck",
22 "value": "healthcheck",
30 "key": "Content-Type",
32 "value": "application/json"
37 "value": "application/json"
41 "raw": "{{POLICY-API-URL}}/policy/api/v1/healthcheck",
57 "name": "Create Authorization Policy Type",
69 "value": "healthcheck",
79 "value": "application/yaml"
82 "key": "Content-Type",
84 "value": "application/yaml"
89 "raw": "tosca_definitions_version: tosca_simple_yaml_1_1_0\npolicy_types:\n onap.policies.Authorization:\n derived_from: tosca.policies.Root\n version: 1.0.0\n description: Example tutorial policy type for doing user authorization\n properties:\n user:\n type: string\n required: true\n description: The unique user name\n permissions:\n type: list\n required: true\n description: A list of resource permissions\n entry_schema:\n type: onap.datatypes.Tutorial\ndata_types:\n onap.datatypes.Tutorial:\n derived_from: tosca.datatypes.Root\n version: 1.0.0\n properties:\n entity:\n type: string\n required: true\n description: The resource\n permission:\n type: string\n required: true\n description: The permission level\n constraints:\n - valid_values: [read, write, delete]\n",
97 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
113 "name": "Create policies",
120 "value": "zb!XztG34",
125 "value": "healthcheck",
135 "value": "application/yaml"
138 "key": "Content-Type",
140 "value": "application/yaml"
145 "raw": "tosca_definitions_version: tosca_simple_yaml_1_1_0\ntopology_template:\n policies:\n -\n onap.policy.tutorial.demo:\n type: onap.policies.Authorization\n type_version: 1.0.0\n version: 1.0.0\n metadata:\n policy-id: onap.policy.tutorial.demo\n policy-version: 1\n properties:\n user: demo\n permissions:\n -\n entity: foo\n permission: read\n -\n entity: foo\n permission: write\n -\n onap.policy.tutorial.audit:\n type: onap.policies.Authorization\n version: 1.0.0\n type_version: 1.0.0\n metadata:\n policy-id: onap.policy.tutorial.bar\n policy-version: 1\n properties:\n user: audit\n permissions:\n -\n entity: foo\n permission: read\n",
153 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.Authorization/versions/1.0.0/policies",
162 "onap.policies.Authorization",
173 "name": "PAP Healthcheck",
180 "value": "zb!XztG34",
185 "value": "healthcheck",
193 "key": "Content-Type",
195 "value": "application/json"
200 "value": "application/json"
204 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/healthcheck",
220 "name": "PAP Get PDPs",
227 "value": "zb!XztG34",
232 "value": "healthcheck",
242 "value": "application/json"
245 "key": "Content-Type",
247 "value": "application/json"
251 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
267 "name": "PdpGroup State Change PASSIVE",
274 "value": "zb!XztG34",
279 "value": "healthcheck",
287 "key": "Content-Type",
288 "value": "application/json",
293 "value": "application/json",
298 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE",
317 "description": "This is an API to change the current state of a PdpGroup (example - \"defaultGroup\") resulting in changing state of all the PDP instances registered with the PdpGroup. As of now, the allowed states are ACTIVE and PASSIVE."
323 "name": "Delete PdpGroup",
330 "value": "zb!XztG34",
335 "value": "healthcheck",
345 "value": "application/json"
348 "key": "Content-Type",
350 "value": "application/json"
354 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/groups/defaultGroup",
367 "description": "This is an API to delete a specific PdpGroup (example - \"SampleGroup\") currently available in Policy DB, resulting in removing all the PDP instances registered with the group."
373 "name": "Create/Update PdpGroup",
380 "value": "zb!XztG34",
385 "value": "healthcheck",
393 "key": "Content-Type",
395 "value": "application/json"
400 "value": "application/json"
405 "raw": "{\n \"groups\": [\n {\n \"name\": \"defaultGroup\",\n \"pdpGroupState\": \"ACTIVE\",\n \"properties\": {},\n \"pdpSubgroups\": [\n {\n \"pdpType\": \"xacml\",\n \"desiredInstanceCount\": 1,\n \"properties\": {},\n \"supportedPolicyTypes\": [\n {\n \"name\": \"onap.policies.Authorization\",\n \"version\": \"1.0.0\"\n }\n ],\n \"policies\": []\n }\n ]\n }\n ]\n}"
408 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/groups/batch",
421 "description": "This is a generic API to create/update PdpGroups in Policy DB. However, the supportedPolicyTypes field of PdpSubGroup cannot be changed once created."
427 "name": "Simple Deploy Policy - onap.policy.tutorial.demo",
434 "value": "zb!XztG34",
439 "value": "healthcheck",
447 "key": "Content-Type",
449 "value": "application/json"
454 "value": "application/json"
459 "raw": "{\r\n \"policies\" : [\r\n {\r\n \"policy-id\": \"onap.policy.tutorial.demo\",\r\n \"policy-version\": \"1.0.0\"\r\n },\r\n {\r\n \"policy-id\": \"onap.policy.tutorial.audit\",\r\n \"policy-version\": \"1.0.0\"\r\n }\r\n ]\r\n}"
462 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies",
479 "name": "Dmaap Simulator - Policy Update Notification",
480 "protocolProfileBehavior": {
481 "disableBodyPruning": true
490 "key": "Content-Type",
492 "value": "application/json"
497 "value": "application/json"
505 "raw": "{{DMAAP-URL}}/events/POLICY-NOTIFICATION/group/id?timeout=5000",
511 "POLICY-NOTIFICATION",
527 "name": "Xacml Healthcheck",
534 "value": "zb!XztG34",
539 "value": "healthcheck",
547 "key": "Content-Type",
549 "value": "application/json"
554 "value": "application/json"
558 "raw": "{{POLICY-XACML-URL}}/policy/pdpx/v1/healthcheck",
560 "{{POLICY-XACML-URL}}"
574 "name": "Xacml Statistics",
581 "value": "zb!XztG34",
586 "value": "healthcheck",
594 "key": "Content-Type",
596 "value": "application/json"
601 "value": "application/json"
605 "raw": "{{POLICY-XACML-URL}}/policy/pdpx/v1/statistics",
607 "{{POLICY-XACML-URL}}"
621 "name": "Xacml Decision - Authorization policy-type",
628 "value": "zb!XztG34",
633 "value": "healthcheck",
641 "key": "Content-Type",
643 "value": "application/json"
648 "value": "application/json"
653 "raw": "{\n \"ONAPName\": \"TutorialPEP\",\n \"ONAPComponent\": \"TutorialPEPComponent\",\n \"ONAPInstance\": \"TutorialPEPInstance\",\n \"requestId\": \"unique-request-id-tutorial\",\n \"action\": \"authorize\",\n \"resource\": {\n \"user\": \"audit\",\n \"entity\": \"foo\",\n \"permission\" : \"read\"\n }\n}"
656 "raw": "{{POLICY-XACML-URL}}/policy/pdpx/v1/decision",
658 "{{POLICY-XACML-URL}}"
672 "name": "Simple Undeploy Policy",
679 "value": "zb!XztG34",
684 "value": "healthcheck",
693 "value": "application/json",
697 "key": "Content-Type",
698 "value": "application/json",
703 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies/onap.policy.tutorial.demo",
713 "onap.policy.tutorial.demo"
736 "protocolProfileBehavior": {