Update cds postman collection
[policy/parent.git] / docs / development / devtools / postman / publish-cba-CDS.postman_collection.json
1 {
2     "info": {
3         "_postman_id": "c8fa181e-0210-4f6c-a754-da377939c299",
4         "name": "Publish CBA in CDS",
5         "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6     },
7     "item": [
8         {
9             "name": "Bootstrap",
10             "request": {
11                 "auth": {
12                     "type": "basic",
13                     "basic": [
14                         {
15                             "key": "password",
16                             "value": "ccsdkapps",
17                             "type": "string"
18                         },
19                         {
20                             "key": "username",
21                             "value": "ccsdkapps",
22                             "type": "string"
23                         }
24                     ]
25                 },
26                 "method": "POST",
27                 "header": [
28                     {
29                         "key": "Accept",
30                         "type": "text",
31                         "value": "application/json"
32                     },
33                     {
34                         "key": "Content-Type",
35                         "type": "text",
36                         "value": "application/json"
37                     }
38                 ],
39                 "body": {
40                     "mode": "raw",
41                     "raw": "{\r\n    \"loadModelType\" : true,\r\n    \"loadResourceDictionary\" : true,\r\n    \"loadCBA\" : false\r\n}",
42                     "options": {
43                         "raw": {
44                             "language": "json"
45                         }
46                     }
47                 },
48                 "url": {
49                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/bootstrap",
50                     "host": [
51                         "{{CDS-URL}}"
52                     ],
53                     "path": [
54                         "api",
55                         "v1",
56                         "blueprint-model",
57                         "bootstrap"
58                     ]
59                 }
60             },
61             "response": []
62         },
63         {
64             "name": "Enrich and Publish CBA",
65             "request": {
66                 "auth": {
67                     "type": "basic",
68                     "basic": [
69                         {
70                             "key": "password",
71                             "value": "ccsdkapps",
72                             "type": "string"
73                         },
74                         {
75                             "key": "username",
76                             "value": "ccsdkapps",
77                             "type": "string"
78                         }
79                     ]
80                 },
81                 "method": "POST",
82                 "header": [
83                     {
84                         "key": "Accept",
85                         "type": "text",
86                         "value": "application/json"
87                     },
88                     {
89                         "key": "Content-Type",
90                         "type": "text",
91                         "value": "application/json"
92                     }
93                 ],
94                 "body": {
95                     "mode": "formdata",
96                     "formdata": [
97                         {
98                             "key": "file",
99                             "type": "file",
100                             "src": "/Users/rpujar/repos/bell/controlloop-examples/simple-cl-use-case-cba/Archive.zip"
101                         }
102                     ]
103                 },
104                 "url": {
105                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/enrichandpublish",
106                     "host": [
107                         "{{CDS-URL}}"
108                     ],
109                     "path": [
110                         "api",
111                         "v1",
112                         "blueprint-model",
113                         "enrichandpublish"
114                     ]
115                 }
116             },
117             "response": []
118         },
119         {
120             "name": "Get all CBAs",
121             "protocolProfileBehavior": {
122                 "disableBodyPruning": true
123             },
124             "request": {
125                 "auth": {
126                     "type": "basic",
127                     "basic": [
128                         {
129                             "key": "password",
130                             "value": "ccsdkapps",
131                             "type": "string"
132                         },
133                         {
134                             "key": "username",
135                             "value": "ccsdkapps",
136                             "type": "string"
137                         }
138                     ]
139                 },
140                 "method": "GET",
141                 "header": [
142                     {
143                         "key": "Accept",
144                         "type": "text",
145                         "value": "application/json"
146                     },
147                     {
148                         "key": "Content-Type",
149                         "type": "text",
150                         "value": "application/json"
151                     }
152                 ],
153                 "body": {
154                     "mode": "raw",
155                     "raw": "{\r\n    \"loadModelType\" : true,\r\n    \"loadResourceDictionary\" : true,\r\n    \"loadCBA\" : false\r\n}",
156                     "options": {
157                         "raw": {
158                             "language": "json"
159                         }
160                     }
161                 },
162                 "url": {
163                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/paged",
164                     "host": [
165                         "{{CDS-URL}}"
166                     ],
167                     "path": [
168                         "api",
169                         "v1",
170                         "blueprint-model",
171                         "paged"
172                     ]
173                 }
174             },
175             "response": []
176         },
177         {
178             "name": "Execute pnf-test-cba success",
179             "request": {
180                 "auth": {
181                     "type": "basic",
182                     "basic": [
183                         {
184                             "key": "password",
185                             "value": "ccsdkapps",
186                             "type": "string"
187                         },
188                         {
189                             "key": "username",
190                             "value": "ccsdkapps",
191                             "type": "string"
192                         }
193                     ]
194                 },
195                 "method": "POST",
196                 "header": [
197                     {
198                         "key": "Accept",
199                         "type": "text",
200                         "value": "application/json"
201                     },
202                     {
203                         "key": "Content-Type",
204                         "type": "text",
205                         "value": "application/json"
206                     }
207                 ],
208                 "body": {
209                     "mode": "raw",
210                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"pnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"update-config\"\r\n    },\r\n    \"payload\": {\r\n        \"update-config-request\": {\r\n            \"update-config-properties\": {\r\n                \"hostname\": \"host\",\r\n                \"IP\": \"10.43.230.146\",\r\n                \"pnfName\": \"simple-cl-pnf\"\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
211                 },
212                 "url": {
213                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
214                     "host": [
215                         "{{CDS-URL}}"
216                     ],
217                     "path": [
218                         "api",
219                         "v1",
220                         "execution-service",
221                         "process"
222                     ]
223                 }
224             },
225             "response": []
226         },
227         {
228             "name": "Execute pnf-test-cba failure",
229             "request": {
230                 "auth": {
231                     "type": "basic",
232                     "basic": [
233                         {
234                             "key": "password",
235                             "value": "ccsdkapps",
236                             "type": "string"
237                         },
238                         {
239                             "key": "username",
240                             "value": "ccsdkapps",
241                             "type": "string"
242                         }
243                     ]
244                 },
245                 "method": "POST",
246                 "header": [
247                     {
248                         "key": "Accept",
249                         "type": "text",
250                         "value": "application/json"
251                     },
252                     {
253                         "key": "Content-Type",
254                         "type": "text",
255                         "value": "application/json"
256                     }
257                 ],
258                 "body": {
259                     "mode": "raw",
260                     "raw": "{\r\n  \"actionIdentifiers\": {\r\n    \"mode\": \"sync\",\r\n    \"blueprintName\": \"pnf-test-cba\",\r\n    \"blueprintVersion\": \"1.0.0\",\r\n    \"actionName\": \"update-config\"\r\n  },\r\n  \"payload\": {\r\n        \"update-config-request\": {\r\n            \"update-config-properties\": {\r\n                \"hostname\": \"host\",\r\n                \"IP\": \"10.43.230.146\",\r\n                \"pnfName\": \"simple-cl-pnf-failure\"\r\n            }\r\n        }\r\n    },\r\n  \"commonHeader\": {\r\n    \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n    \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n    \"originatorId\": \"POLICY\"\r\n  }\r\n}"
261                 },
262                 "url": {
263                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
264                     "host": [
265                         "{{CDS-URL}}"
266                     ],
267                     "path": [
268                         "api",
269                         "v1",
270                         "execution-service",
271                         "process"
272                     ]
273                 }
274             },
275             "response": []
276         },
277         {
278             "name": "Execute vnf-test-cba success",
279             "request": {
280                 "auth": {
281                     "type": "basic",
282                     "basic": [
283                         {
284                             "key": "password",
285                             "value": "ccsdkapps",
286                             "type": "string"
287                         },
288                         {
289                             "key": "username",
290                             "value": "ccsdkapps",
291                             "type": "string"
292                         }
293                     ]
294                 },
295                 "method": "POST",
296                 "header": [
297                     {
298                         "key": "Accept",
299                         "type": "text",
300                         "value": "application/json"
301                     },
302                     {
303                         "key": "Content-Type",
304                         "type": "text",
305                         "value": "application/json"
306                     }
307                 ],
308                 "body": {
309                     "mode": "raw",
310                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"vnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"modify-config\"\r\n    },\r\n    \"payload\": {\r\n        \"modify-config-request\": {\r\n            \"modify-config-properties\": {\r\n                \"vfStatus\": \"Active\",\r\n                \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n                \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n                \"data\": {\r\n                    \"active-streams\": \"7\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
311                 },
312                 "url": {
313                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
314                     "host": [
315                         "{{CDS-URL}}"
316                     ],
317                     "path": [
318                         "api",
319                         "v1",
320                         "execution-service",
321                         "process"
322                     ]
323                 }
324             },
325             "response": []
326         },
327         {
328             "name": "Execute vnf-test-cba failure",
329             "request": {
330                 "auth": {
331                     "type": "basic",
332                     "basic": [
333                         {
334                             "key": "password",
335                             "value": "ccsdkapps",
336                             "type": "string"
337                         },
338                         {
339                             "key": "username",
340                             "value": "ccsdkapps",
341                             "type": "string"
342                         }
343                     ]
344                 },
345                 "method": "POST",
346                 "header": [
347                     {
348                         "key": "Accept",
349                         "type": "text",
350                         "value": "application/json"
351                     },
352                     {
353                         "key": "Content-Type",
354                         "type": "text",
355                         "value": "application/json"
356                     }
357                 ],
358                 "body": {
359                     "mode": "raw",
360                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"vnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"modify-config\"\r\n    },\r\n    \"payload\": {\r\n        \"modify-config-request\": {\r\n            \"modify-config-properties\": {\r\n                \"vfStatus\": \"InActive\",\r\n                \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n                \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n                \"data\": {\r\n                    \"active-streams\": \"7\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
361                 },
362                 "url": {
363                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
364                     "host": [
365                         "{{CDS-URL}}"
366                     ],
367                     "path": [
368                         "api",
369                         "v1",
370                         "execution-service",
371                         "process"
372                     ]
373                 }
374             },
375             "response": []
376         },
377         {
378             "name": "Execute vnf-test-cba success",
379             "request": {
380                 "auth": {
381                     "type": "basic",
382                     "basic": [
383                         {
384                             "key": "password",
385                             "value": "ccsdkapps",
386                             "type": "string"
387                         },
388                         {
389                             "key": "username",
390                             "value": "ccsdkapps",
391                             "type": "string"
392                         }
393                     ]
394                 },
395                 "method": "POST",
396                 "header": [
397                     {
398                         "key": "Accept",
399                         "type": "text",
400                         "value": "application/json"
401                     },
402                     {
403                         "key": "Content-Type",
404                         "type": "text",
405                         "value": "application/json"
406                     }
407                 ],
408                 "body": {
409                     "mode": "raw",
410                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"vnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"restart\"\r\n    },\r\n    \"payload\": {\r\n        \"restart-request\": {\r\n            \"restart-properties\": {\r\n                \"vfStatus\": \"Active\",\r\n                \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n                \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n                \"data\": {\r\n                    \"active-streams\": \"7\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
411                 },
412                 "url": {
413                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
414                     "host": [
415                         "{{CDS-URL}}"
416                     ],
417                     "path": [
418                         "api",
419                         "v1",
420                         "execution-service",
421                         "process"
422                     ]
423                 }
424             },
425             "response": []
426         },
427         {
428             "name": "Execute vnf-test-cba failure",
429             "request": {
430                 "auth": {
431                     "type": "basic",
432                     "basic": [
433                         {
434                             "key": "password",
435                             "value": "ccsdkapps",
436                             "type": "string"
437                         },
438                         {
439                             "key": "username",
440                             "value": "ccsdkapps",
441                             "type": "string"
442                         }
443                     ]
444                 },
445                 "method": "POST",
446                 "header": [
447                     {
448                         "key": "Accept",
449                         "type": "text",
450                         "value": "application/json"
451                     },
452                     {
453                         "key": "Content-Type",
454                         "type": "text",
455                         "value": "application/json"
456                     }
457                 ],
458                 "body": {
459                     "mode": "raw",
460                     "raw": "{\r\n    \"actionIdentifiers\": {\r\n        \"mode\": \"sync\",\r\n        \"blueprintName\": \"vnf-test-cba\",\r\n        \"blueprintVersion\": \"1.0.0\",\r\n        \"actionName\": \"restart\"\r\n    },\r\n    \"payload\": {\r\n        \"restart-request\": {\r\n            \"restart-properties\": {\r\n                \"vfStatus\": \"InActive\",\r\n                \"service-instance.service-instance-id\": \"55322ada-145a-492e-b196-0d171539a4b2\",\r\n                \"generic-vnf.vnf-id\": \"57b008b9-b367-4359-93fd-74d3ce0ee1a0\",\r\n                \"data\": {\r\n                    \"active-streams\": \"7\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"commonHeader\": {\r\n        \"subRequestId\": \"8c7935a4-79d8-4ec0-b661-dcca3cd68006\",\r\n        \"requestId\": \"f392e439-c176-411b-b972-8acadac0f8df\",\r\n        \"originatorId\": \"POLICY\"\r\n    }\r\n}"
461                 },
462                 "url": {
463                     "raw": "{{CDS-URL}}/api/v1/execution-service/process",
464                     "host": [
465                         "{{CDS-URL}}"
466                     ],
467                     "path": [
468                         "api",
469                         "v1",
470                         "execution-service",
471                         "process"
472                     ]
473                 }
474             },
475             "response": []
476         },
477         {
478             "name": "Download CBA",
479             "protocolProfileBehavior": {
480                 "disableBodyPruning": true
481             },
482             "request": {
483                 "auth": {
484                     "type": "basic",
485                     "basic": [
486                         {
487                             "key": "password",
488                             "value": "ccsdkapps",
489                             "type": "string"
490                         },
491                         {
492                             "key": "username",
493                             "value": "ccsdkapps",
494                             "type": "string"
495                         }
496                     ]
497                 },
498                 "method": "GET",
499                 "header": [
500                     {
501                         "key": "Accept",
502                         "type": "text",
503                         "value": "application/json"
504                     },
505                     {
506                         "key": "Content-Type",
507                         "type": "text",
508                         "value": "application/json"
509                     }
510                 ],
511                 "body": {
512                     "mode": "raw",
513                     "raw": "{\r\n    \"loadModelType\" : true,\r\n    \"loadResourceDictionary\" : true,\r\n    \"loadCBA\" : false\r\n}",
514                     "options": {
515                         "raw": {
516                             "language": "json"
517                         }
518                     }
519                 },
520                 "url": {
521                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/download/by-name/controlloop-hostname-update-cba/version/1.0.0",
522                     "host": [
523                         "{{CDS-URL}}"
524                     ],
525                     "path": [
526                         "api",
527                         "v1",
528                         "blueprint-model",
529                         "download",
530                         "by-name",
531                         "controlloop-hostname-update-cba",
532                         "version",
533                         "1.0.0"
534                     ]
535                 }
536             },
537             "response": []
538         },
539         {
540             "name": "Delete a specific CBA",
541             "request": {
542                 "auth": {
543                     "type": "basic",
544                     "basic": [
545                         {
546                             "key": "password",
547                             "value": "ccsdkapps",
548                             "type": "string"
549                         },
550                         {
551                             "key": "username",
552                             "value": "ccsdkapps",
553                             "type": "string"
554                         }
555                     ]
556                 },
557                 "method": "DELETE",
558                 "header": [
559                     {
560                         "key": "Accept",
561                         "type": "text",
562                         "value": "application/json"
563                     },
564                     {
565                         "key": "Content-Type",
566                         "type": "text",
567                         "value": "application/json"
568                     }
569                 ],
570                 "body": {
571                     "mode": "raw",
572                     "raw": "{\r\n    \"loadModelType\" : true,\r\n    \"loadResourceDictionary\" : true,\r\n    \"loadCBA\" : false\r\n}",
573                     "options": {
574                         "raw": {
575                             "language": "json"
576                         }
577                     }
578                 },
579                 "url": {
580                     "raw": "{{CDS-URL}}/api/v1/blueprint-model/name/pnf-test-cba/version/1.0.0",
581                     "host": [
582                         "{{CDS-URL}}"
583                     ],
584                     "path": [
585                         "api",
586                         "v1",
587                         "blueprint-model",
588                         "name",
589                         "pnf-test-cba",
590                         "version",
591                         "1.0.0"
592                     ]
593                 }
594             },
595             "response": []
596         }
597     ]
598 }