Create postman collection for lifecycle api's
[policy/api.git] / postman / lifecycle-api-collection.json
1 {
2     "info": {
3         "_postman_id": "1592e803-60f3-4f7e-a1e1-4ad01c72d960",
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": "Create Policy (Legacy)",
357             "request": {
358                 "method": "POST",
359                 "header": [
360                     {
361                         "key": "Accept",
362                         "type": "text",
363                         "value": "application/yaml"
364                     },
365                     {
366                         "key": "Content-Type",
367                         "type": "text",
368                         "value": "application/yaml"
369                     }
370                 ],
371                 "body": {
372                     "mode": "raw",
373                     "raw": "{\n  \"policy-id\" : \"operational.modifyconfiglegacy\",\n  \"content\" : \"controlLoop%3A%0A%20%20version%3A%202.0.0%0A%20%20controlLoopName%3A%20ControlLoop-vFirewall-7e4fbe9c-d612-4ec5-bbf8-605aeabdb677%0A%20%20trigger_policy%3A%20unique-policy-id-1-modifyConfig%0A%20%20timeout%3A%2060%0A%20%20abatement%3A%20false%0Apolicies%3A%0A%20%20-%20id%3A%20unique-policy-id-1-modifyConfig%0A%20%20%20%20name%3A%20modifyconfig-cds-actor%0A%20%20%20%20description%3A%0A%20%20%20%20actor%3A%20CDS%0A%20%20%20%20recipe%3A%20modify-config%0A%20%20%20%20target%3A%0A%20%20%20%20%20%20resourceID%3A%2037b008b9-b367-4359-93fd-74d3ce0ee1a0%0A%20%20%20%20%20%20type%3A%20VNF%0A%20%20%20%20payload%3A%0A%20%20%20%20%20%20artifact_name%3A%20vFW-CDS%0A%20%20%20%20%20%20artifact_version%3A%201.0.0%0A%20%20%20%20%20%20data%3A%20%27%7B%22active-streams%22%3A%227%22%7D%27%0A%20%20%20%20retry%3A%200%0A%20%20%20%20timeout%3A%2030%0A%20%20%20%20success%3A%20final_success%0A%20%20%20%20failure%3A%20final_failure%0A%20%20%20%20failure_timeout%3A%20final_failure_timeout%0A%20%20%20%20failure_retries%3A%20final_failure_retries%0A%20%20%20%20failure_exception%3A%20final_failure_exception%0A%20%20%20%20failure_guard%3A%20final_failure_guard\"\n}"
374                 },
375                 "url": {
376                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies",
377                     "host": [
378                         "{{POLICY-API-URL}}"
379                     ],
380                     "path": [
381                         "policy",
382                         "api",
383                         "v1",
384                         "policytypes",
385                         "onap.policies.controlloop.Operational",
386                         "versions",
387                         "1.0.0",
388                         "policies"
389                     ]
390                 },
391                 "description": "This is a specific API to create a policy of type \"onap.policies.controlloop.Operational\", used to create legacy control loop operational policy aimed to be deployed in drools-pdp engine."
392             },
393             "response": []
394         },
395         {
396             "name": "Fetch Policy (Specific)",
397             "request": {
398                 "method": "GET",
399                 "header": [
400                     {
401                         "key": "Accept",
402                         "type": "text",
403                         "value": "application/json"
404                     },
405                     {
406                         "key": "Content-Type",
407                         "type": "text",
408                         "value": "application/json"
409                     }
410                 ],
411                 "url": {
412                     "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",
413                     "host": [
414                         "{{POLICY-API-URL}}"
415                     ],
416                     "path": [
417                         "policy",
418                         "api",
419                         "v1",
420                         "policytypes",
421                         "onap.policies.controlloop.operational.common.Drools",
422                         "versions",
423                         "1.0.0",
424                         "policies",
425                         "operational.modifyconfig",
426                         "versions",
427                         "1.0.0"
428                     ]
429                 },
430                 "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."
431             },
432             "response": []
433         },
434         {
435             "name": "Fetch Policy (Legacy)",
436             "request": {
437                 "method": "GET",
438                 "header": [
439                     {
440                         "key": "Accept",
441                         "type": "text",
442                         "value": "application/json"
443                     },
444                     {
445                         "key": "Content-Type",
446                         "type": "text",
447                         "value": "application/json"
448                     }
449                 ],
450                 "url": {
451                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies/operational.modifyconfiglegacy/versions/1",
452                     "host": [
453                         "{{POLICY-API-URL}}"
454                     ],
455                     "path": [
456                         "policy",
457                         "api",
458                         "v1",
459                         "policytypes",
460                         "onap.policies.controlloop.Operational",
461                         "versions",
462                         "1.0.0",
463                         "policies",
464                         "operational.modifyconfiglegacy",
465                         "versions",
466                         "1"
467                     ]
468                 },
469                 "description": "This is a specific API to fetch a policy (example - operational.modifyconfig) referring to the specific policy type \"onap.policies.controlloop.Operational\" currently available in Policy DB."
470             },
471             "response": []
472         },
473         {
474             "name": "Fetch All Policies (Specific)",
475             "request": {
476                 "method": "GET",
477                 "header": [
478                     {
479                         "key": "Accept",
480                         "type": "text",
481                         "value": "application/json"
482                     },
483                     {
484                         "key": "Content-Type",
485                         "type": "text",
486                         "value": "application/json"
487                     }
488                 ],
489                 "url": {
490                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies",
491                     "host": [
492                         "{{POLICY-API-URL}}"
493                     ],
494                     "path": [
495                         "policy",
496                         "api",
497                         "v1",
498                         "policytypes",
499                         "onap.policies.controlloop.operational.common.Drools",
500                         "versions",
501                         "1.0.0",
502                         "policies"
503                     ]
504                 },
505                 "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."
506             },
507             "response": []
508         },
509         {
510             "name": "Fetch All Version of a Policy (Specific)",
511             "request": {
512                 "method": "GET",
513                 "header": [
514                     {
515                         "key": "Accept",
516                         "type": "text",
517                         "value": "application/json"
518                     },
519                     {
520                         "key": "Content-Type",
521                         "type": "text",
522                         "value": "application/json"
523                     }
524                 ],
525                 "url": {
526                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig",
527                     "host": [
528                         "{{POLICY-API-URL}}"
529                     ],
530                     "path": [
531                         "policy",
532                         "api",
533                         "v1",
534                         "policytypes",
535                         "onap.policies.controlloop.operational.common.Drools",
536                         "versions",
537                         "1.0.0",
538                         "policies",
539                         "operational.modifyconfig"
540                     ]
541                 },
542                 "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."
543             },
544             "response": []
545         },
546         {
547             "name": "Fetch Latest Version of a Policy (Specific)",
548             "request": {
549                 "method": "GET",
550                 "header": [
551                     {
552                         "key": "Accept",
553                         "type": "text",
554                         "value": "application/json"
555                     },
556                     {
557                         "key": "Content-Type",
558                         "type": "text",
559                         "value": "application/json"
560                     }
561                 ],
562                 "url": {
563                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/latest",
564                     "host": [
565                         "{{POLICY-API-URL}}"
566                     ],
567                     "path": [
568                         "policy",
569                         "api",
570                         "v1",
571                         "policytypes",
572                         "onap.policies.controlloop.operational.common.Drools",
573                         "versions",
574                         "1.0.0",
575                         "policies",
576                         "operational.modifyconfig",
577                         "versions",
578                         "latest"
579                     ]
580                 },
581                 "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."
582             },
583             "response": []
584         },
585         {
586             "name": "Delete Policy (Specific)",
587             "request": {
588                 "method": "DELETE",
589                 "header": [
590                     {
591                         "key": "Accept",
592                         "value": "application/json",
593                         "type": "text"
594                     },
595                     {
596                         "key": "Content-Type",
597                         "value": "application/json",
598                         "type": "text"
599                     }
600                 ],
601                 "url": {
602                     "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",
603                     "host": [
604                         "{{POLICY-API-URL}}"
605                     ],
606                     "path": [
607                         "policy",
608                         "api",
609                         "v1",
610                         "policytypes",
611                         "onap.policies.controlloop.operational.common.Drools",
612                         "versions",
613                         "1.0.0",
614                         "policies",
615                         "operational.modifyconfig",
616                         "versions",
617                         "1.0.0"
618                     ]
619                 },
620                 "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."
621             },
622             "response": []
623         },
624         {
625             "name": "Delete Policy (Legacy)",
626             "request": {
627                 "method": "DELETE",
628                 "header": [
629                     {
630                         "key": "Accept",
631                         "value": "application/json",
632                         "type": "text"
633                     },
634                     {
635                         "key": "Content-Type",
636                         "value": "application/json",
637                         "type": "text"
638                     }
639                 ],
640                 "url": {
641                     "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies/operational.modifyconfiglegacy/versions/1",
642                     "host": [
643                         "{{POLICY-API-URL}}"
644                     ],
645                     "path": [
646                         "policy",
647                         "api",
648                         "v1",
649                         "policytypes",
650                         "onap.policies.controlloop.Operational",
651                         "versions",
652                         "1.0.0",
653                         "policies",
654                         "operational.modifyconfiglegacy",
655                         "versions",
656                         "1"
657                     ]
658                 },
659                 "description": "This is a specific API to delete a policy (example - operational.modifyconfiglegacy) referring to the specific policy type \"onap.policies.controlloop.Operational\" currently available in Policy DB."
660             },
661             "response": []
662         }
663     ],
664     "auth": {
665         "type": "basic",
666         "basic": [
667             {
668                 "key": "password",
669                 "value": "{{PASSWORD}}",
670                 "type": "string"
671             },
672             {
673                 "key": "username",
674                 "value": "{{USER}}",
675                 "type": "string"
676             }
677         ]
678     },
679     "event": [
680         {
681             "listen": "prerequest",
682             "script": {
683                 "id": "c9224b64-293c-4a9c-bd05-ca4b1e1a9dba",
684                 "type": "text/javascript",
685                 "exec": [
686                     ""
687                 ]
688             }
689         },
690         {
691             "listen": "test",
692             "script": {
693                 "id": "efd8a8fe-3e04-4989-9f1c-8874190c49e4",
694                 "type": "text/javascript",
695                 "exec": [
696                     ""
697                 ]
698             }
699         }
700     ],
701     "variable": [
702         {
703             "id": "99d48afc-d62d-48be-9f89-d7db5acf48dd",
704             "key": "USER",
705             "value": "healthcheck",
706             "type": "string"
707         },
708         {
709             "id": "a9c660a8-2bd1-4e87-aacd-aa6ff2104a60",
710             "key": "PASSWORD",
711             "value": "zb!XztG34",
712             "type": "string"
713         }
714     ],
715     "protocolProfileBehavior": {}
716 }