Support for kafka within xacml tutorial
[policy/xacml-pdp.git] / tutorials / tutorial-enforcement / src / test / resources / postman / Policy_Enforcement_Tutorial.postman_collection.json
1 {
2         "info": {
3                 "_postman_id": "f00b4c77-8f4b-423f-a132-2bcdd4adf598",
4                 "name": "Policy Enforcement 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"
7         },
8         "item": [
9                 {
10                         "name": "Api Healthcheck",
11                         "request": {
12                                 "auth": {
13                                         "type": "basic",
14                                         "basic": [
15                                                 {
16                                                         "key": "password",
17                                                         "value": "zb!XztG34",
18                                                         "type": "string"
19                                                 },
20                                                 {
21                                                         "key": "username",
22                                                         "value": "policyadmin",
23                                                         "type": "string"
24                                                 }
25                                         ]
26                                 },
27                                 "method": "GET",
28                                 "header": [
29                                         {
30                                                 "key": "Content-Type",
31                                                 "type": "text",
32                                                 "value": "application/json"
33                                         },
34                                         {
35                                                 "key": "Accept",
36                                                 "type": "text",
37                                                 "value": "application/json"
38                                         }
39                                 ],
40                                 "url": {
41                                         "raw": "https://0.0.0.0:6767/policy/api/v1/healthcheck",
42                                         "protocol": "https",
43                                         "host": [
44                                                 "0",
45                                                 "0",
46                                                 "0",
47                                                 "0"
48                                         ],
49                                         "port": "6767",
50                                         "path": [
51                                                 "policy",
52                                                 "api",
53                                                 "v1",
54                                                 "healthcheck"
55                                         ]
56                                 }
57                         },
58                         "response": []
59                 },
60                 {
61                         "name": "Create MyAnalytic Policy Type",
62                         "request": {
63                                 "auth": {
64                                         "type": "basic",
65                                         "basic": [
66                                                 {
67                                                         "key": "password",
68                                                         "value": "zb!XztG34",
69                                                         "type": "string"
70                                                 },
71                                                 {
72                                                         "key": "username",
73                                                         "value": "policyadmin",
74                                                         "type": "string"
75                                                 }
76                                         ]
77                                 },
78                                 "method": "POST",
79                                 "header": [
80                                         {
81                                                 "key": "Accept",
82                                                 "type": "text",
83                                                 "value": "application/yaml"
84                                         },
85                                         {
86                                                 "key": "Content-Type",
87                                                 "type": "text",
88                                                 "value": "application/yaml"
89                                         }
90                                 ],
91                                 "body": {
92                                         "mode": "raw",
93                                         "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"
94                                 },
95                                 "url": {
96                                         "raw": "https://0.0.0.0:6767/policy/api/v1/policytypes",
97                                         "protocol": "https",
98                                         "host": [
99                                                 "0",
100                                                 "0",
101                                                 "0",
102                                                 "0"
103                                         ],
104                                         "port": "6767",
105                                         "path": [
106                                                 "policy",
107                                                 "api",
108                                                 "v1",
109                                                 "policytypes"
110                                         ]
111                                 }
112                         },
113                         "response": []
114                 },
115                 {
116                         "name": "Create policy1 MyAnalytic Policy",
117                         "request": {
118                                 "auth": {
119                                         "type": "basic",
120                                         "basic": [
121                                                 {
122                                                         "key": "password",
123                                                         "value": "zb!XztG34",
124                                                         "type": "string"
125                                                 },
126                                                 {
127                                                         "key": "username",
128                                                         "value": "policyadmin",
129                                                         "type": "string"
130                                                 }
131                                         ]
132                                 },
133                                 "method": "POST",
134                                 "header": [
135                                         {
136                                                 "key": "Accept",
137                                                 "type": "text",
138                                                 "value": "application/yaml"
139                                         },
140                                         {
141                                                 "key": "Content-Type",
142                                                 "type": "text",
143                                                 "value": "application/yaml"
144                                         }
145                                 ],
146                                 "body": {
147                                         "mode": "raw",
148                                         "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             "
149                                 },
150                                 "url": {
151                                         "raw": "https://0.0.0.0:6767/policy/api/v1/policytypes/onap.policies.monitoring.MyAnalytic/versions/1.0.0/policies",
152                                         "protocol": "https",
153                                         "host": [
154                                                 "0",
155                                                 "0",
156                                                 "0",
157                                                 "0"
158                                         ],
159                                         "port": "6767",
160                                         "path": [
161                                                 "policy",
162                                                 "api",
163                                                 "v1",
164                                                 "policytypes",
165                                                 "onap.policies.monitoring.MyAnalytic",
166                                                 "versions",
167                                                 "1.0.0",
168                                                 "policies"
169                                         ]
170                                 }
171                         },
172                         "response": []
173                 },
174                 {
175                         "name": "PAP Healthcheck",
176                         "request": {
177                                 "auth": {
178                                         "type": "basic",
179                                         "basic": [
180                                                 {
181                                                         "key": "password",
182                                                         "value": "zb!XztG34",
183                                                         "type": "string"
184                                                 },
185                                                 {
186                                                         "key": "username",
187                                                         "value": "policyadmin",
188                                                         "type": "string"
189                                                 }
190                                         ]
191                                 },
192                                 "method": "GET",
193                                 "header": [
194                                         {
195                                                 "key": "Content-Type",
196                                                 "type": "text",
197                                                 "value": "application/json"
198                                         },
199                                         {
200                                                 "key": "Accept",
201                                                 "type": "text",
202                                                 "value": "application/json"
203                                         }
204                                 ],
205                                 "url": {
206                                         "raw": "https://0.0.0.0:6868/policy/pap/v1/healthcheck",
207                                         "protocol": "https",
208                                         "host": [
209                                                 "0",
210                                                 "0",
211                                                 "0",
212                                                 "0"
213                                         ],
214                                         "port": "6868",
215                                         "path": [
216                                                 "policy",
217                                                 "pap",
218                                                 "v1",
219                                                 "healthcheck"
220                                         ]
221                                 }
222                         },
223                         "response": []
224                 },
225                 {
226                         "name": "PAP Get PDPs",
227                         "request": {
228                                 "auth": {
229                                         "type": "basic",
230                                         "basic": [
231                                                 {
232                                                         "key": "password",
233                                                         "value": "zb!XztG34",
234                                                         "type": "string"
235                                                 },
236                                                 {
237                                                         "key": "username",
238                                                         "value": "policyadmin",
239                                                         "type": "string"
240                                                 }
241                                         ]
242                                 },
243                                 "method": "GET",
244                                 "header": [
245                                         {
246                                                 "key": "Accept",
247                                                 "type": "text",
248                                                 "value": "application/json"
249                                         },
250                                         {
251                                                 "key": "Content-Type",
252                                                 "type": "text",
253                                                 "value": "application/json"
254                                         }
255                                 ],
256                                 "url": {
257                                         "raw": "https://0.0.0.0:6868/policy/pap/v1/pdps",
258                                         "protocol": "https",
259                                         "host": [
260                                                 "0",
261                                                 "0",
262                                                 "0",
263                                                 "0"
264                                         ],
265                                         "port": "6868",
266                                         "path": [
267                                                 "policy",
268                                                 "pap",
269                                                 "v1",
270                                                 "pdps"
271                                         ]
272                                 }
273                         },
274                         "response": []
275                 },
276                 {
277                         "name": "Simple Deploy Policy - policy1",
278                         "request": {
279                                 "auth": {
280                                         "type": "basic",
281                                         "basic": [
282                                                 {
283                                                         "key": "password",
284                                                         "value": "zb!XztG34",
285                                                         "type": "string"
286                                                 },
287                                                 {
288                                                         "key": "username",
289                                                         "value": "policyadmin",
290                                                         "type": "string"
291                                                 }
292                                         ]
293                                 },
294                                 "method": "POST",
295                                 "header": [
296                                         {
297                                                 "key": "Content-Type",
298                                                 "type": "text",
299                                                 "value": "application/json"
300                                         },
301                                         {
302                                                 "key": "Accept",
303                                                 "type": "text",
304                                                 "value": "application/json"
305                                         }
306                                 ],
307                                 "body": {
308                                         "mode": "raw",
309                                         "raw": "{\r\n  \"policies\" : [\r\n    {\r\n      \"policy-id\": \"policy1\",\r\n      \"policy-version\": \"1.0.0\"\r\n    }\r\n    ]\r\n}"
310                                 },
311                                 "url": {
312                                         "raw": "{https://0.0.0.0:6868/policy/pap/v1/pdps/policies",
313                                         "protocol": "{https",
314                                         "host": [
315                                                 "0",
316                                                 "0",
317                                                 "0",
318                                                 "0"
319                                         ],
320                                         "port": "6868",
321                                         "path": [
322                                                 "policy",
323                                                 "pap",
324                                                 "v1",
325                                                 "pdps",
326                                                 "policies"
327                                         ]
328                                 }
329                         },
330                         "response": []
331                 },
332                 {
333                         "name": "Xacml Healthcheck",
334                         "request": {
335                                 "auth": {
336                                         "type": "basic",
337                                         "basic": [
338                                                 {
339                                                         "key": "password",
340                                                         "value": "zb!XztG34",
341                                                         "type": "string"
342                                                 },
343                                                 {
344                                                         "key": "username",
345                                                         "value": "policyadmin",
346                                                         "type": "string"
347                                                 }
348                                         ]
349                                 },
350                                 "method": "GET",
351                                 "header": [
352                                         {
353                                                 "key": "Content-Type",
354                                                 "type": "text",
355                                                 "value": "application/json"
356                                         },
357                                         {
358                                                 "key": "Accept",
359                                                 "type": "text",
360                                                 "value": "application/json"
361                                         }
362                                 ],
363                                 "url": {
364                                         "raw": "https://0.0.0.0:6969/policy/pdpx/v1/healthcheck",
365                                         "protocol": "https",
366                                         "host": [
367                                                 "0",
368                                                 "0",
369                                                 "0",
370                                                 "0"
371                                         ],
372                                         "port": "6969",
373                                         "path": [
374                                                 "policy",
375                                                 "pdpx",
376                                                 "v1",
377                                                 "healthcheck"
378                                         ]
379                                 }
380                         },
381                         "response": []
382                 },
383                 {
384                         "name": "Xacml Statistics",
385                         "request": {
386                                 "auth": {
387                                         "type": "basic",
388                                         "basic": [
389                                                 {
390                                                         "key": "password",
391                                                         "value": "zb!XztG34",
392                                                         "type": "string"
393                                                 },
394                                                 {
395                                                         "key": "username",
396                                                         "value": "policyadmin",
397                                                         "type": "string"
398                                                 }
399                                         ]
400                                 },
401                                 "method": "GET",
402                                 "header": [
403                                         {
404                                                 "key": "Content-Type",
405                                                 "type": "text",
406                                                 "value": "application/json"
407                                         },
408                                         {
409                                                 "key": "Accept",
410                                                 "type": "text",
411                                                 "value": "application/json"
412                                         }
413                                 ],
414                                 "url": {
415                                         "raw": "https://0.0.0.0:6969/policy/pdpx/v1/healthcheck",
416                                         "protocol": "https",
417                                         "host": [
418                                                 "0",
419                                                 "0",
420                                                 "0",
421                                                 "0"
422                                         ],
423                                         "port": "6969",
424                                         "path": [
425                                                 "policy",
426                                                 "pdpx",
427                                                 "v1",
428                                                 "healthcheck"
429                                         ]
430                                 }
431                         },
432                         "response": []
433                 },
434                 {
435                         "name": "Xacml Decision - MyAnalytic policy-type",
436                         "request": {
437                                 "auth": {
438                                         "type": "basic",
439                                         "basic": [
440                                                 {
441                                                         "key": "password",
442                                                         "value": "zb!XztG34",
443                                                         "type": "string"
444                                                 },
445                                                 {
446                                                         "key": "username",
447                                                         "value": "policyadmin",
448                                                         "type": "string"
449                                                 }
450                                         ]
451                                 },
452                                 "method": "POST",
453                                 "header": [
454                                         {
455                                                 "key": "Content-Type",
456                                                 "type": "text",
457                                                 "value": "application/json"
458                                         },
459                                         {
460                                                 "key": "Accept",
461                                                 "type": "text",
462                                                 "value": "application/json"
463                                         }
464                                 ],
465                                 "body": {
466                                         "mode": "raw",
467                                         "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}"
468                                 },
469                                 "url": {
470                                         "raw": "https://0.0.0.0:6969/policy/pdpx/v1/decision",
471                                         "protocol": "https",
472                                         "host": [
473                                                 "0",
474                                                 "0",
475                                                 "0",
476                                                 "0"
477                                         ],
478                                         "port": "6969",
479                                         "path": [
480                                                 "policy",
481                                                 "pdpx",
482                                                 "v1",
483                                                 "decision"
484                                         ]
485                                 }
486                         },
487                         "response": []
488                 },
489                 {
490                         "name": "Simple Undeploy Policy Copy",
491                         "request": {
492                                 "auth": {
493                                         "type": "basic",
494                                         "basic": [
495                                                 {
496                                                         "key": "password",
497                                                         "value": "zb!XztG34",
498                                                         "type": "string"
499                                                 },
500                                                 {
501                                                         "key": "username",
502                                                         "value": "policyadmin",
503                                                         "type": "string"
504                                                 }
505                                         ]
506                                 },
507                                 "method": "DELETE",
508                                 "header": [
509                                         {
510                                                 "key": "Accept",
511                                                 "value": "application/json",
512                                                 "type": "text"
513                                         },
514                                         {
515                                                 "key": "Content-Type",
516                                                 "value": "application/json",
517                                                 "type": "text"
518                                         }
519                                 ],
520                                 "url": {
521                                         "raw": "https://0.0.0.0:6868/policy/pap/v1/pdps/policies/onap.policies.monitoring.MyAnalytic",
522                                         "protocol": "https",
523                                         "host": [
524                                                 "0",
525                                                 "0",
526                                                 "0",
527                                                 "0"
528                                         ],
529                                         "port": "6868",
530                                         "path": [
531                                                 "policy",
532                                                 "pap",
533                                                 "v1",
534                                                 "pdps",
535                                                 "policies",
536                                                 "onap.policies.monitoring.MyAnalytic"
537                                         ]
538                                 }
539                         },
540                         "response": []
541                 }
542         ],
543         "auth": {
544                 "type": "basic",
545                 "basic": [
546                         {
547                                 "key": "password",
548                                 "value": "",
549                                 "type": "string"
550                         },
551                         {
552                                 "key": "username",
553                                 "value": "",
554                                 "type": "string"
555                         }
556                 ]
557         },
558         "protocolProfileBehavior": {}
559 }