{ "info": { "_postman_id": "f00b4c77-8f4b-423f-a132-2bcdd4adf598", "name": "Policy Enforcement Tutorial", "description": "Collection of Postman API calls to support the Policy Enforcement Tutorial", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Api Healthcheck", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "url": { "raw": "https://0.0.0.0:6767/policy/api/v1/healthcheck", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6767", "path": [ "policy", "api", "v1", "healthcheck" ] } }, "response": [] }, { "name": "Create MyAnalytic Policy Type", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "type": "text", "value": "application/yaml" }, { "key": "Content-Type", "type": "text", "value": "application/yaml" } ], "body": { "mode": "raw", "raw": "tosca_definitions_version: tosca_simple_yaml_1_1_0\npolicy_types:\n onap.policies.Monitoring:\n derived_from: tosca.policies.Root\n version: 1.0.0\n name: onap.policies.Monitoring\n description: a base policy type for all policies that govern monitoring provisioning\n onap.policies.monitoring.MyAnalytic:\n derived_from: onap.policies.Monitoring\n type_version: 1.0.0\n version: 1.0.0\n description: Example analytic\n properties:\n myProperty:\n type: string\n required: true" }, "url": { "raw": "https://0.0.0.0:6767/policy/api/v1/policytypes", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6767", "path": [ "policy", "api", "v1", "policytypes" ] } }, "response": [] }, { "name": "Create policy1 MyAnalytic Policy", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "type": "text", "value": "application/yaml" }, { "key": "Content-Type", "type": "text", "value": "application/yaml" } ], "body": { "mode": "raw", "raw": "tosca_definitions_version: tosca_simple_yaml_1_1_0\ntopology_template:\n policies:\n -\n policy1:\n type: onap.policies.monitoring.MyAnalytic\n type_version: 1.0.0\n version: 1.0.0\n name: policy1\n metadata:\n policy-id: policy1\n policy-version: 1.0.0\n properties:\n myProperty: value1\n " }, "url": { "raw": "https://0.0.0.0:6767/policy/api/v1/policytypes/onap.policies.monitoring.MyAnalytic/versions/1.0.0/policies", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6767", "path": [ "policy", "api", "v1", "policytypes", "onap.policies.monitoring.MyAnalytic", "versions", "1.0.0", "policies" ] } }, "response": [] }, { "name": "PAP Healthcheck", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "url": { "raw": "https://0.0.0.0:6868/policy/pap/v1/healthcheck", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6868", "path": [ "policy", "pap", "v1", "healthcheck" ] } }, "response": [] }, { "name": "PAP Get PDPs", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Content-Type", "type": "text", "value": "application/json" } ], "url": { "raw": "https://0.0.0.0:6868/policy/pap/v1/pdps", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6868", "path": [ "policy", "pap", "v1", "pdps" ] } }, "response": [] }, { "name": "Simple Deploy Policy - policy1", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"policies\" : [\r\n {\r\n \"policy-id\": \"policy1\",\r\n \"policy-version\": \"1.0.0\"\r\n }\r\n ]\r\n}" }, "url": { "raw": "{https://0.0.0.0:6868/policy/pap/v1/pdps/policies", "protocol": "{https", "host": [ "0", "0", "0", "0" ], "port": "6868", "path": [ "policy", "pap", "v1", "pdps", "policies" ] } }, "response": [] }, { "name": "Xacml Healthcheck", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "url": { "raw": "https://0.0.0.0:6969/policy/pdpx/v1/healthcheck", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6969", "path": [ "policy", "pdpx", "v1", "healthcheck" ] } }, "response": [] }, { "name": "Xacml Statistics", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "url": { "raw": "https://0.0.0.0:6969/policy/pdpx/v1/healthcheck", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6969", "path": [ "policy", "pdpx", "v1", "healthcheck" ] } }, "response": [] }, { "name": "Xacml Decision - MyAnalytic policy-type", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "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 \"ONAPName\": \"myName\",\n \"ONAPComponent\": \"myComponent\",\n \"ONAPInstance\": \"myInstanceId\",\n \"requestId\": \"1\",\n \"action\": \"configure\",\n \"resource\": {\n \"policy-type\": \"onap.policies.monitoring.MyAnalytic\"\n }\n}" }, "url": { "raw": "https://0.0.0.0:6969/policy/pdpx/v1/decision", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6969", "path": [ "policy", "pdpx", "v1", "decision" ] } }, "response": [] }, { "name": "Simple Undeploy Policy Copy", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "zb!XztG34", "type": "string" }, { "key": "username", "value": "policyadmin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "https://0.0.0.0:6868/policy/pap/v1/pdps/policies/onap.policies.monitoring.MyAnalytic", "protocol": "https", "host": [ "0", "0", "0", "0" ], "port": "6868", "path": [ "policy", "pap", "v1", "pdps", "policies", "onap.policies.monitoring.MyAnalytic" ] } }, "response": [] } ], "auth": { "type": "basic", "basic": [ { "key": "password", "value": "", "type": "string" }, { "key": "username", "value": "", "type": "string" } ] }, "protocolProfileBehavior": {} }