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",
56 "name": "Create Authorization Policy Type",
68 "value": "healthcheck",
78 "value": "application/yaml"
81 "key": "Content-Type",
83 "value": "application/yaml"
88 "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",
96 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
111 "name": "Create policies",
118 "value": "zb!XztG34",
123 "value": "healthcheck",
133 "value": "application/yaml"
136 "key": "Content-Type",
138 "value": "application/yaml"
143 "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",
151 "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.Authorization/versions/1.0.0/policies",
160 "onap.policies.Authorization",
170 "name": "PAP Healthcheck",
177 "value": "zb!XztG34",
182 "value": "healthcheck",
190 "key": "Content-Type",
192 "value": "application/json"
197 "value": "application/json"
201 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/healthcheck",
216 "name": "PAP Get PDPs",
223 "value": "zb!XztG34",
228 "value": "healthcheck",
238 "value": "application/json"
241 "key": "Content-Type",
243 "value": "application/json"
247 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
262 "name": "PdpGroup State Change PASSIVE",
269 "value": "zb!XztG34",
274 "value": "healthcheck",
282 "key": "Content-Type",
283 "value": "application/json",
288 "value": "application/json",
293 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/groups/defaultGroup?state=PASSIVE",
312 "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."
317 "name": "Delete PdpGroup",
324 "value": "zb!XztG34",
329 "value": "healthcheck",
339 "value": "application/json"
342 "key": "Content-Type",
344 "value": "application/json"
348 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/groups/defaultGroup",
361 "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."
366 "name": "Create/Update PdpGroup",
373 "value": "zb!XztG34",
378 "value": "healthcheck",
386 "key": "Content-Type",
388 "value": "application/json"
393 "value": "application/json"
398 "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}"
401 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/groups/batch",
414 "description": "This is a generic API to create/update PdpGroups in Policy DB. However, the supportedPolicyTypes field of PdpSubGroup cannot be changed once created."
419 "name": "Simple Deploy Policy - onap.policy.tutorial.demo",
426 "value": "zb!XztG34",
431 "value": "healthcheck",
439 "key": "Content-Type",
441 "value": "application/json"
446 "value": "application/json"
451 "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}"
454 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies",
470 "name": "Dmaap Simulator - Policy Update Notification",
471 "protocolProfileBehavior": {
472 "disableBodyPruning": true
481 "key": "Content-Type",
483 "value": "application/json"
488 "value": "application/json"
496 "raw": "{{DMAAP-URL}}/events/POLICY-NOTIFICATION/group/id?timeout=5000",
502 "POLICY-NOTIFICATION",
517 "name": "Xacml Healthcheck",
524 "value": "zb!XztG34",
529 "value": "healthcheck",
537 "key": "Content-Type",
539 "value": "application/json"
544 "value": "application/json"
548 "raw": "{{POLICY-XACML-URL}}/policy/pdpx/v1/healthcheck",
550 "{{POLICY-XACML-URL}}"
563 "name": "Xacml Statistics",
570 "value": "zb!XztG34",
575 "value": "healthcheck",
583 "key": "Content-Type",
585 "value": "application/json"
590 "value": "application/json"
594 "raw": "{{POLICY-XACML-URL}}/policy/pdpx/v1/statistics",
596 "{{POLICY-XACML-URL}}"
609 "name": "Xacml Decision - Authorization policy-type",
616 "value": "zb!XztG34",
621 "value": "healthcheck",
629 "key": "Content-Type",
631 "value": "application/json"
636 "value": "application/json"
641 "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}"
644 "raw": "{{POLICY-XACML-URL}}/policy/pdpx/v1/decision",
646 "{{POLICY-XACML-URL}}"
659 "name": "Simple Undeploy Policy",
666 "value": "zb!XztG34",
671 "value": "healthcheck",
680 "value": "application/json",
684 "key": "Content-Type",
685 "value": "application/json",
690 "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies/onap.policy.tutorial.demo",
700 "onap.policy.tutorial.demo"
722 "protocolProfileBehavior": {}