Update policy-keystore with newer certificates
[policy/api.git] / postman / lifecycle-api-collection.json
1 {
2     "info": {
3         "_postman_id": "5921af97-1b03-4a47-bc8e-cfbbb9d04859",
4         "name": "Policy Framework Lifecycle API",
5         "description": "This collection lists all the Lifecycle API's supported by ONAP Policy Framework. These API's are used to perform CRUD operations for Policy, Policy Type & Data Type for all supported PDP engines.",
6         "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7     },
8     "item": [
9         {
10             "name": "Lifecycle Api Healthcheck",
11             "request": {
12                 "method": "GET",
13                 "header": [
14                     {
15                         "key": "Content-Type",
16                         "type": "text",
17                         "value": "application/json"
18                     },
19                     {
20                         "key": "Accept",
21                         "type": "text",
22                         "value": "application/json"
23                     }
24                 ],
25                 "url": {
26                     "raw": "{{POLICY-API-URL}}/policy/api/v1/healthcheck",
27                     "host": [
28                         "{{POLICY-API-URL}}"
29                     ],
30                     "path": [
31                         "policy",
32                         "api",
33                         "v1",
34                         "healthcheck"
35                     ]
36                 },
37                 "description": "This is an API to fetch current healthcheck information for the policy-api component."
38             },
39             "response": []
40         },
41         {
42             "name": "Lifecycle Api Statistics",
43             "request": {
44                 "method": "GET",
45                 "header": [
46                     {
47                         "key": "Content-Type",
48                         "type": "text",
49                         "value": "application/json"
50                     },
51                     {
52                         "key": "Accept",
53                         "type": "text",
54                         "value": "application/json"
55                     }
56                 ],
57                 "url": {
58                     "raw": "{{POLICY-API-URL}}/policy/api/v1/statistics",
59                     "host": [
60                         "{{POLICY-API-URL}}"
61                     ],
62                     "path": [
63                         "policy",
64                         "api",
65                         "v1",
66                         "statistics"
67                     ]
68                 },
69                 "description": "This is an API to fetch current statistics information for the policy-api component."
70             },
71             "response": []
72         },
73         {
74             "name": "Create Policy Type",
75             "request": {
76                 "method": "POST",
77                 "header": [
78                     {
79                         "key": "Accept",
80                         "type": "text",
81                         "value": "application/yaml"
82                     },
83                     {
84                         "key": "Content-Type",
85                         "type": "text",
86                         "value": "application/yaml"
87                     }
88                 ],
89                 "body": {
90                     "mode": "raw",
91                     "raw": "tosca_definitions_version: tosca_simple_yaml_1_1_0\npolicy_types:\n    onap.policies.controlloop.operational.Common:\n        derived_from: tosca.policies.Root\n        version: 1.0.0\n        description: |\n            Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant\n            Policy Types. This does NOT support the legacy Policy YAML policy type.\n        properties:\n            id:\n                type: string\n                description: The unique control loop id.\n                required: true\n            timeout:\n                type: integer\n                description: |\n                    Overall timeout for executing all the operations. This timeout should equal or exceed the total\n                    timeout for each operation listed.\n                required: true\n            abatement:\n                type: boolean\n                description: Whether an abatement event message will be expected for the control loop from DCAE.\n                required: true\n                default: false\n            trigger:\n                type: string\n                description: Initial operation to execute upon receiving an Onset event message for the Control Loop.\n                required: true\n            operations:\n                type: list\n                description: List of operations to be performed when Control Loop is triggered.\n                required: true\n                entry_schema:\n                    type: onap.datatype.controlloop.Operation\n\n    onap.policies.controlloop.operational.common.Drools:\n        derived_from: onap.policies.controlloop.operational.Common\n        type_version: 1.0.0\n        version: 1.0.0\n        description: Operational policies for Drools PDP\n        properties:\n            controllerName:\n                type: string\n                description: Drools controller properties\n                required: false\n\ndata_types:\n    onap.datatype.controlloop.Target:\n        derived_from: tosca.datatypes.Root\n        description: Definition for a entity in A&AI to perform a control loop operation on\n        properties:\n            targetType:\n                type: string\n                description: Category for the target type\n                required: true\n                constraints:\n                - valid_values: [VNF, VM, VFMODULE, PNF]\n            entityIds:\n                type: map\n                description: |\n                    Map of values that identify the resource. If none are provided, it is assumed that the\n                    entity that generated the ONSET event will be the target.\n                required: false\n                metadata:\n                    clamp_possible_values: ClampExecution:CSAR_RESOURCES\n                entry_schema:\n                    type: string\n\n    onap.datatype.controlloop.Actor:\n        derived_from: tosca.datatypes.Root\n        description: An actor/operation/target definition\n        properties:\n            actor:\n                type: string\n                description: The actor performing the operation.\n                required: true\n                metadata:\n                    clamp_possible_values: Dictionary:DefaultActors,ClampExecution:CDS/actor\n            operation:\n                type: string\n                description: The operation the actor is performing.\n                metadata:\n                    clamp_possible_values: Dictionary:DefaultOperations,ClampExecution:CDS/operation\n                required: true\n            target:\n                type: onap.datatype.controlloop.Target\n                description: The resource the operation should be performed on.\n                required: true\n            payload:\n                type: map\n                description: Name/value pairs of payload information passed by Policy to the actor\n                required: false\n                metadata:\n                    clamp_possible_values: ClampExecution:CDS/payload\n                entry_schema:\n                    type: string\n\n    onap.datatype.controlloop.Operation:\n        derived_from: tosca.datatypes.Root\n        description: An operation supported by an actor\n        properties:\n            id:\n                type: string\n                description: Unique identifier for the operation\n                required: true\n            description:\n                type: string\n                description: A user-friendly description of the intent for the operation\n                required: false\n            operation:\n                type: onap.datatype.controlloop.Actor\n                description: The definition of the operation to be performed.\n                required: true\n            timeout:\n                type: integer\n                description: The amount of time for the actor to perform the operation.\n                required: true\n            retries:\n                type: integer\n                description: The number of retries the actor should attempt to perform the operation.\n                required: true\n                default: 0\n            success:\n                type: string\n                description: Points to the operation to invoke on success. A value of \"final_success\" indicates and end to the operation.\n                required: false\n                default: final_success\n            failure:\n                type: string\n                description: Points to the operation to invoke on Actor operation failure.\n                required: false\n                default: final_failure\n            failure_timeout:\n                type: string\n                description: Points to the operation to invoke when the time out for the operation occurs.\n                required: false\n                default: final_failure_timeout\n            failure_retries:\n                type: string\n                description: Points to the operation to invoke when the current operation has exceeded its max retries.\n                required: false\n                default: final_failure_retries\n            failure_exception:\n                type: string\n                description: Points to the operation to invoke when the current operation causes an exception.\n                required: false\n                default: final_failure_exception\n            failure_guard:\n                type: string\n                description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.\n                required: false\n                default: final_failure_guard"
92                 },
93                 "url": {
94                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
95                     "host": [
96                         "{{POLICY-API-URL}}"
97                     ],
98                     "path": [
99                         "policy",
100                         "api",
101                         "v1",
102                         "policytypes"
103                     ]
104                 },
105                 "description": "This is a generic API to create one or more policy types together in a single API call."
106             },
107             "response": []
108         },
109         {
110             "name": "Fetch Policy Type",
111             "request": {
112                 "method": "GET",
113                 "header": [
114                     {
115                         "key": "Accept",
116                         "type": "text",
117                         "value": "application/json"
118                     },
119                     {
120                         "key": "Content-Type",
121                         "type": "text",
122                         "value": "application/json"
123                     }
124                 ],
125                 "url": {
126                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0",
127                     "host": [
128                         "{{POLICY-API-URL}}"
129                     ],
130                     "path": [
131                         "policy",
132                         "api",
133                         "v1",
134                         "policytypes",
135                         "onap.policies.controlloop.operational.common.Drools",
136                         "versions",
137                         "1.0.0"
138                     ]
139                 },
140                 "description": "This is an API to fetch a specific policy type (example - \"onap.policies.controlloop.operational.common.Drools\") currently available in Policy DB."
141             },
142             "response": []
143         },
144         {
145             "name": "Fetch All Policy Types",
146             "request": {
147                 "method": "GET",
148                 "header": [
149                     {
150                         "key": "Accept",
151                         "type": "text",
152                         "value": "application/json"
153                     },
154                     {
155                         "key": "Content-Type",
156                         "type": "text",
157                         "value": "application/json"
158                     }
159                 ],
160                 "url": {
161                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
162                     "host": [
163                         "{{POLICY-API-URL}}"
164                     ],
165                     "path": [
166                         "policy",
167                         "api",
168                         "v1",
169                         "policytypes"
170                     ]
171                 },
172                 "description": "This is a generic API to fetch all policy types currently available in Policy DB."
173             },
174             "response": []
175         },
176         {
177             "name": "Fetch All Versions of Policy Type",
178             "request": {
179                 "method": "GET",
180                 "header": [
181                     {
182                         "key": "Accept",
183                         "type": "text",
184                         "value": "application/json"
185                     },
186                     {
187                         "key": "Content-Type",
188                         "type": "text",
189                         "value": "application/json"
190                     }
191                 ],
192                 "url": {
193                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools",
194                     "host": [
195                         "{{POLICY-API-URL}}"
196                     ],
197                     "path": [
198                         "policy",
199                         "api",
200                         "v1",
201                         "policytypes",
202                         "onap.policies.controlloop.operational.common.Drools"
203                     ]
204                 },
205                 "description": "This is an API to fetch all versions of a specific policy type (example - \"onap.policies.controlloop.operational.common.Drools\") currently available in Policy DB."
206             },
207             "response": []
208         },
209         {
210             "name": "Fetch Latest Version of Policy Type",
211             "request": {
212                 "method": "GET",
213                 "header": [
214                     {
215                         "key": "Accept",
216                         "type": "text",
217                         "value": "application/json"
218                     },
219                     {
220                         "key": "Content-Type",
221                         "type": "text",
222                         "value": "application/json"
223                     }
224                 ],
225                 "url": {
226                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/latest",
227                     "host": [
228                         "{{POLICY-API-URL}}"
229                     ],
230                     "path": [
231                         "policy",
232                         "api",
233                         "v1",
234                         "policytypes",
235                         "onap.policies.controlloop.operational.common.Drools",
236                         "versions",
237                         "latest"
238                     ]
239                 },
240                 "description": "This is an API to fetch latest versions of a specific policy type (example - \"onap.policies.controlloop.operational.common.Drools\") currently available in Policy DB."
241             },
242             "response": []
243         },
244         {
245             "name": "Delete Policy Type",
246             "request": {
247                 "method": "DELETE",
248                 "header": [
249                     {
250                         "key": "Accept",
251                         "type": "text",
252                         "value": "application/json"
253                     },
254                     {
255                         "key": "Content-Type",
256                         "type": "text",
257                         "value": "application/json"
258                     }
259                 ],
260                 "url": {
261                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0",
262                     "host": [
263                         "{{POLICY-API-URL}}"
264                     ],
265                     "path": [
266                         "policy",
267                         "api",
268                         "v1",
269                         "policytypes",
270                         "onap.policies.controlloop.operational.common.Drools",
271                         "versions",
272                         "1.0.0"
273                     ]
274                 },
275                 "description": "This is an API to delete a specific policy type (example - \"onap.policies.controlloop.operational.common.Drools\") currently available in Policy DB."
276             },
277             "response": []
278         },
279         {
280             "name": "Create Policy (Generic)",
281             "request": {
282                 "method": "POST",
283                 "header": [
284                     {
285                         "key": "Accept",
286                         "type": "text",
287                         "value": "application/json"
288                     },
289                     {
290                         "key": "Content-Type",
291                         "type": "text",
292                         "value": "application/json"
293                     }
294                 ],
295                 "body": {
296                     "mode": "raw",
297                     "raw": "{\n    \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n    \"topology_template\": {\n        \"policies\": [\n            {\n                \"operational.modifyconfig\": {\n                    \"type\": \"onap.policies.controlloop.operational.common.Drools\",\n                    \"type_version\": \"1.0.0\",\n                    \"version\": \"1.0.0\",\n                    \"metadata\": {\n                        \"policy-id\": \"operational.modifyconfig\"\n                    },\n                    \"properties\": {\n                        \"id\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\n                        \"timeout\": 1200,\n                        \"abatement\": false,\n                        \"trigger\": \"unique-policy-id-1-modifyConfig\",\n                        \"operations\": [\n                            {\n                                \"id\": \"unique-policy-id-1-modifyConfig\",\n                                \"description\": \"Modify the packet generator\",\n                                \"operation\": {\n                                    \"actor\": \"CDS\",\n                                    \"operation\": \"modify-config\",\n                                    \"target\": {\n                                        \"targetType\": \"VNF\",\n                                        \"entityIds\": {\n                                            \"resourceID\": \"37b008b9-b367-4359-93fd-74d3ce0ee1a0\"\n                                        }\n                                    },\n                                    \"payload\":{\n                                        \"artifact_name\": \"vFW-CDS\",\n                                        \"artifact_version\": \"1.0.0\",\n                                        \"data\": \"{\\\"active-streams\\\": \\\"7\\\"}\"\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\": \"frankfurt\"\n                    }\n                }\n            }\n        ]\n    }\n}"
298                 },
299                 "url": {
300                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
301                     "host": [
302                         "{{POLICY-API-URL}}"
303                     ],
304                     "path": [
305                         "policy",
306                         "api",
307                         "v1",
308                         "policies"
309                     ]
310                 },
311                 "description": "This is a generic API to create multiple policies together in a single API call. The individual policies can refer to same policy type or different policy types."
312             },
313             "response": []
314         },
315         {
316             "name": "Create Policy (Specific)",
317             "request": {
318                 "method": "POST",
319                 "header": [
320                     {
321                         "key": "Accept",
322                         "type": "text",
323                         "value": "application/json"
324                     },
325                     {
326                         "key": "Content-Type",
327                         "type": "text",
328                         "value": "application/json"
329                     }
330                 ],
331                 "body": {
332                     "mode": "raw",
333                     "raw": "{\n    \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n    \"topology_template\": {\n        \"policies\": [\n            {\n                \"operational.modifyconfig\": {\n                    \"type\": \"onap.policies.controlloop.operational.common.Drools\",\n                    \"type_version\": \"1.0.0\",\n                    \"version\": \"1.0.0\",\n                    \"metadata\": {\n                        \"policy-id\": \"operational.modifyconfig\"\n                    },\n                    \"properties\": {\n                        \"id\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\n                        \"timeout\": 1200,\n                        \"abatement\": false,\n                        \"trigger\": \"unique-policy-id-1-modifyConfig\",\n                        \"operations\": [\n                            {\n                                \"id\": \"unique-policy-id-1-modifyConfig\",\n                                \"description\": \"Modify the packet generator\",\n                                \"operation\": {\n                                    \"actor\": \"CDS\",\n                                    \"operation\": \"modify-config\",\n                                    \"target\": {\n                                        \"targetType\": \"VNF\",\n                                        \"entityIds\": {\n                                            \"resourceID\": \"37b008b9-b367-4359-93fd-74d3ce0ee1a0\"\n                                        }\n                                    },\n                                    \"payload\":{\n                                        \"artifact_name\": \"vFW-CDS\",\n                                        \"artifact_version\": \"1.0.0\",\n                                        \"data\": \"{\\\"active-streams\\\": \\\"7\\\"}\"\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\": \"frankfurt\"\n                    }\n                }\n            }\n        ]\n    }\n}"
334                 },
335                 "url": {
336                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies",
337                     "host": [
338                         "{{POLICY-API-URL}}"
339                     ],
340                     "path": [
341                         "policy",
342                         "api",
343                         "v1",
344                         "policytypes",
345                         "onap.policies.controlloop.operational.common.Drools",
346                         "versions",
347                         "1.0.0",
348                         "policies"
349                     ]
350                 },
351                 "description": "This is a specific API to create a policy referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to create policy for any policy type to be deployed in any supported PDP engine."
352             },
353             "response": []
354         },
355         {
356             "name": "Fetch Policy (Specific)",
357             "request": {
358                 "method": "GET",
359                 "header": [
360                     {
361                         "key": "Accept",
362                         "type": "text",
363                         "value": "application/json"
364                     },
365                     {
366                         "key": "Content-Type",
367                         "type": "text",
368                         "value": "application/json"
369                     }
370                 ],
371                 "url": {
372                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0",
373                     "host": [
374                         "{{POLICY-API-URL}}"
375                     ],
376                     "path": [
377                         "policy",
378                         "api",
379                         "v1",
380                         "policytypes",
381                         "onap.policies.controlloop.operational.common.Drools",
382                         "versions",
383                         "1.0.0",
384                         "policies",
385                         "operational.modifyconfig",
386                         "versions",
387                         "1.0.0"
388                     ]
389                 },
390                 "description": "This is a specific API to fetch a policy (example - operational.modifyconfig) referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to fetch a policy referring to any policy type currently available in Policy DB."
391             },
392             "response": []
393         },
394         {
395             "name": "Fetch Policy (Generic)",
396             "request": {
397                 "method": "GET",
398                 "header": [
399                     {
400                         "key": "Accept",
401                         "type": "text",
402                         "value": "application/json"
403                     },
404                     {
405                         "key": "Content-Type",
406                         "type": "text",
407                         "value": "application/json"
408                     }
409                 ],
410                 "url": {
411                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/operational.modifyconfig/versions/1.0.0",
412                     "host": [
413                         "{{POLICY-API-URL}}"
414                     ],
415                     "path": [
416                         "policy",
417                         "api",
418                         "v1",
419                         "policies",
420                         "operational.modifyconfig",
421                         "versions",
422                         "1.0.0"
423                     ]
424                 },
425                 "description": "This is a specific API to fetch a policy (example - operational.modifyconfig). The same API can be used to fetch a policy without referring to any policy type currently available in Policy DB."
426             },
427             "response": []
428         },
429         {
430             "name": "Fetch All Policies (Specific)",
431             "request": {
432                 "method": "GET",
433                 "header": [
434                     {
435                         "key": "Accept",
436                         "type": "text",
437                         "value": "application/json"
438                     },
439                     {
440                         "key": "Content-Type",
441                         "type": "text",
442                         "value": "application/json"
443                     }
444                 ],
445                 "url": {
446                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies",
447                     "host": [
448                         "{{POLICY-API-URL}}"
449                     ],
450                     "path": [
451                         "policy",
452                         "api",
453                         "v1",
454                         "policytypes",
455                         "onap.policies.controlloop.operational.common.Drools",
456                         "versions",
457                         "1.0.0",
458                         "policies"
459                     ]
460                 },
461                 "description": "This is a specific API to fetch all policies referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to fetch policies for any policy type currently available in Policy DB."
462             },
463             "response": []
464         },
465         {
466             "name": "Fetch All Policies (Generic)",
467             "request": {
468                 "method": "GET",
469                 "header": [
470                     {
471                         "key": "Accept",
472                         "type": "text",
473                         "value": "application/json"
474                     },
475                     {
476                         "key": "Content-Type",
477                         "type": "text",
478                         "value": "application/json"
479                     }
480                 ],
481                 "url": {
482                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies",
483                     "host": [
484                         "{{POLICY-API-URL}}"
485                     ],
486                     "path": [
487                         "policy",
488                         "api",
489                         "v1",
490                         "policies"
491                     ]
492                 },
493                 "description": "This is a specific API to fetch all policies currently available in Policy DB."
494             },
495             "response": []
496         },
497         {
498             "name": "Fetch All Version of a Policy (Specific)",
499             "request": {
500                 "method": "GET",
501                 "header": [
502                     {
503                         "key": "Accept",
504                         "type": "text",
505                         "value": "application/json"
506                     },
507                     {
508                         "key": "Content-Type",
509                         "type": "text",
510                         "value": "application/json"
511                     }
512                 ],
513                 "url": {
514                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig",
515                     "host": [
516                         "{{POLICY-API-URL}}"
517                     ],
518                     "path": [
519                         "policy",
520                         "api",
521                         "v1",
522                         "policytypes",
523                         "onap.policies.controlloop.operational.common.Drools",
524                         "versions",
525                         "1.0.0",
526                         "policies",
527                         "operational.modifyconfig"
528                     ]
529                 },
530                 "description": "This is a specific API to fetch all versions of a policy (example - operational.modifyconfig) referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to fetch all versions of a policy referring to any policy type currently available in Policy DB."
531             },
532             "response": []
533         },
534         {
535             "name": "Fetch Latest Version of a Policy (Specific)",
536             "request": {
537                 "method": "GET",
538                 "header": [
539                     {
540                         "key": "Accept",
541                         "type": "text",
542                         "value": "application/json"
543                     },
544                     {
545                         "key": "Content-Type",
546                         "type": "text",
547                         "value": "application/json"
548                     }
549                 ],
550                 "url": {
551                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/latest",
552                     "host": [
553                         "{{POLICY-API-URL}}"
554                     ],
555                     "path": [
556                         "policy",
557                         "api",
558                         "v1",
559                         "policytypes",
560                         "onap.policies.controlloop.operational.common.Drools",
561                         "versions",
562                         "1.0.0",
563                         "policies",
564                         "operational.modifyconfig",
565                         "versions",
566                         "latest"
567                     ]
568                 },
569                 "description": "This is a specific API to fetch latest version of a policy (example - operational.modifyconfig) referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to fetch latest version of a policy referring to any policy type currently available in Policy DB."
570             },
571             "response": []
572         },
573         {
574             "name": "Delete Policy (Specific)",
575             "request": {
576                 "method": "DELETE",
577                 "header": [
578                     {
579                         "key": "Accept",
580                         "value": "application/json",
581                         "type": "text"
582                     },
583                     {
584                         "key": "Content-Type",
585                         "value": "application/json",
586                         "type": "text"
587                     }
588                 ],
589                 "url": {
590                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0",
591                     "host": [
592                         "{{POLICY-API-URL}}"
593                     ],
594                     "path": [
595                         "policy",
596                         "api",
597                         "v1",
598                         "policytypes",
599                         "onap.policies.controlloop.operational.common.Drools",
600                         "versions",
601                         "1.0.0",
602                         "policies",
603                         "operational.modifyconfig",
604                         "versions",
605                         "1.0.0"
606                     ]
607                 },
608                 "description": "This is a specific API to delete a policy (example - operational.modifyconfig) referring to the given policy type (example - \"onap.policies.controlloop.operational.common.Drools\"). The same API can be used to delete a policy referring to any policy type currently available in Policy DB."
609             },
610             "response": []
611         },
612         {
613             "name": "Delete Policy (Generic)",
614             "request": {
615                 "method": "DELETE",
616                 "header": [
617                     {
618                         "key": "Accept",
619                         "type": "text",
620                         "value": "application/json"
621                     },
622                     {
623                         "key": "Content-Type",
624                         "type": "text",
625                         "value": "application/json"
626                     }
627                 ],
628                 "url": {
629                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policies/operational.modifyconfig/versions/1.0.0",
630                     "host": [
631                         "{{POLICY-API-URL}}"
632                     ],
633                     "path": [
634                         "policy",
635                         "api",
636                         "v1",
637                         "policies",
638                         "operational.modifyconfig",
639                         "versions",
640                         "1.0.0"
641                     ]
642                 },
643                 "description": "This is a specific API to delete a policy (example - operational.modifyconfig). The same API can be used to delete a policy without referring to any policy type currently available in Policy DB."
644             },
645             "response": []
646         }
647     ],
648     "auth": {
649         "type": "basic",
650         "basic": [
651             {
652                 "key": "password",
653                 "value": "{{PASSWORD}}",
654                 "type": "string"
655             },
656             {
657                 "key": "username",
658                 "value": "{{USER}}",
659                 "type": "string"
660             }
661         ]
662     },
663     "event": [
664         {
665             "listen": "prerequest",
666             "script": {
667                 "id": "f7e544f3-f8f3-471d-b9e0-950ecce8873e",
668                 "type": "text/javascript",
669                 "exec": [
670                     ""
671                 ]
672             }
673         },
674         {
675             "listen": "test",
676             "script": {
677                 "id": "b5181de0-cf95-44e9-a6f6-5a8deeba4587",
678                 "type": "text/javascript",
679                 "exec": [
680                     ""
681                 ]
682             }
683         }
684     ],
685     "variable": [
686         {
687             "id": "99d48afc-d62d-48be-9f89-d7db5acf48dd",
688             "key": "USER",
689             "value": "healthcheck",
690             "type": "string"
691         },
692         {
693             "id": "a9c660a8-2bd1-4e87-aacd-aa6ff2104a60",
694             "key": "PASSWORD",
695             "value": "zb!XztG34",
696             "type": "string"
697         }
698     ],
699     "protocolProfileBehavior": {}
700 }