· 6 years ago · Jan 26, 2020, 12:28 PM
1{
2 "info": {
3 "_postman_id": "dfeb2773-ea6e-7921-c34b-b9cc4227b908",
4 "name": "Sonata",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6 },
7 "item": [
8 {
9 "name": "Catalogue",
10 "item": [
11 {
12 "name": "Cloud Services",
13 "item": [
14 {
15 "name": "Get CSDs",
16 "request": {
17 "method": "GET",
18 "header": [
19 {
20 "key": "Content-Type",
21 "value": "application/json"
22 }
23 ],
24 "url": {
25 "raw": "http://{{URL}}:4002/catalogues/api/v2/csds",
26 "protocol": "http",
27 "host": [
28 "{{URL}}"
29 ],
30 "port": "4002",
31 "path": [
32 "catalogues",
33 "api",
34 "v2",
35 "csds"
36 ]
37 }
38 },
39 "response": []
40 },
41 {
42 "name": "Get CSD",
43 "request": {
44 "method": "GET",
45 "header": [
46 {
47 "key": "Content-Type",
48 "value": "application/json"
49 }
50 ],
51 "url": {
52 "raw": "http://{{URL}}:4011/catalogues/api/v2/csds/2ad73bc7-dda2-4151-b804-60ab18327cae",
53 "protocol": "http",
54 "host": [
55 "{{URL}}"
56 ],
57 "port": "4011",
58 "path": [
59 "catalogues",
60 "api",
61 "v2",
62 "csds",
63 "2ad73bc7-dda2-4151-b804-60ab18327cae"
64 ]
65 }
66 },
67 "response": []
68 },
69 {
70 "name": "Store CSD",
71 "request": {
72 "method": "POST",
73 "header": [
74 {
75 "key": "Content-Type",
76 "value": "application/json"
77 }
78 ],
79 "body": {
80 "mode": "raw",
81 "raw": "{\n \"descriptor_version\": \"2.0\",\n \"vendor\": \"eu.sonata-nfv.cloud-service-descriptor\",\n \"name\": \"hello-web\",\n \"version\": \"0.2\",\n \"author\": \"Tobias Dierich\",\n \"description\": \"A simple cloud service descriptor which deploys an hello-world nodeJs app.\",\n \"virtual_deployment_units\": [\n {\n \"id\": \"testing\",\n \"name\": \"hello-web\",\n \"service_image\": \"gcr.io/google-samples/hello-app:1.0\",\n \"service_type\": \"LoadBalancer\",\n \"service_ports\": [\n {\n \"name\": \"http\",\n \"protocol\": \"TCP\",\n \"port\": 8080,\n \"target_port\": 8080\n }\n ],\n \"resource_requirements\": {\n \"memory\": {\n \"size\": 128,\n \"size_unit\": \"Mi\"\n }\n },\n \"scale_in_out\": {\n \"minimum\": 2,\n \"maximum\": 5\n }\n }\n ]\n}"
82 },
83 "url": {
84 "raw": "http://{{URL}}:4002/catalogues/api/v2/csds",
85 "protocol": "http",
86 "host": [
87 "{{URL}}"
88 ],
89 "port": "4002",
90 "path": [
91 "catalogues",
92 "api",
93 "v2",
94 "csds"
95 ]
96 }
97 },
98 "response": []
99 },
100 {
101 "name": "Delete CSD",
102 "request": {
103 "method": "DELETE",
104 "header": [
105 {
106 "key": "Content-Type",
107 "value": "application/json"
108 }
109 ],
110 "body": {
111 "mode": "formdata",
112 "formdata": []
113 },
114 "url": {
115 "raw": "http://{{URL}}:4002/catalogues/api/v2/csds/f2a3991e-aaf5-4b03-8c43-cb9cecfd202d",
116 "protocol": "http",
117 "host": [
118 "{{URL}}"
119 ],
120 "port": "4002",
121 "path": [
122 "catalogues",
123 "api",
124 "v2",
125 "csds",
126 "f2a3991e-aaf5-4b03-8c43-cb9cecfd202d"
127 ]
128 }
129 },
130 "response": []
131 },
132 {
133 "name": "Get CSRs",
134 "request": {
135 "method": "GET",
136 "header": [
137 {
138 "key": "Content-Type",
139 "value": "application/json"
140 }
141 ],
142 "url": {
143 "raw": "http://{{URL}}:4011/records/csr/cs-instances",
144 "protocol": "http",
145 "host": [
146 "{{URL}}"
147 ],
148 "port": "4011",
149 "path": [
150 "records",
151 "csr",
152 "cs-instances"
153 ]
154 }
155 },
156 "response": []
157 }
158 ],
159 "_postman_isSubFolder": true
160 },
161 {
162 "name": "Complex Services",
163 "item": [
164 {
165 "name": "Get COSDs",
166 "request": {
167 "method": "GET",
168 "header": [
169 {
170 "key": "Content-Type",
171 "value": "application/json"
172 }
173 ],
174 "url": {
175 "raw": "http://{{URL}}:4002/catalogues/api/v2/complex-services",
176 "protocol": "http",
177 "host": [
178 "{{URL}}"
179 ],
180 "port": "4002",
181 "path": [
182 "catalogues",
183 "api",
184 "v2",
185 "complex-services"
186 ]
187 }
188 },
189 "response": []
190 },
191 {
192 "name": "Delete COSD",
193 "request": {
194 "method": "DELETE",
195 "header": [
196 {
197 "key": "Content-Type",
198 "value": "application/json"
199 }
200 ],
201 "body": {
202 "mode": "formdata",
203 "formdata": []
204 },
205 "url": {
206 "raw": "http://{{URL}}:4002/catalogues/api/v2/complex-services/a4d073cb-8161-44c2-954b-bd449e28c0ea",
207 "protocol": "http",
208 "host": [
209 "{{URL}}"
210 ],
211 "port": "4002",
212 "path": [
213 "catalogues",
214 "api",
215 "v2",
216 "complex-services",
217 "a4d073cb-8161-44c2-954b-bd449e28c0ea"
218 ]
219 }
220 },
221 "response": []
222 },
223 {
224 "name": "Store COSD",
225 "request": {
226 "method": "POST",
227 "header": [
228 {
229 "key": "Content-Type",
230 "value": "application/json"
231 }
232 ],
233 "body": {
234 "mode": "raw",
235 "raw": "{\n \"descriptor_version\": \"1.0\",\n \"vendor\": \"eu.sonata-nfv.service-descriptor\",\n \"name\": \"hello-web\",\n \"version\": \"0.2\",\n \"author\": \"Tobias Dierich\",\n \"cloud_services\": [\n {\n \"service_id\": \"hello-web\",\n \"service_vendor\": \"eu.sonata-nfv.cloud-service-descriptor\",\n \"service_name\": \"hello-web\",\n \"service_version\": \"0.2\"\n }\n ]\n}"
236 },
237 "url": {
238 "raw": "http://{{URL}}:4002/catalogues/api/v2/complex-services",
239 "protocol": "http",
240 "host": [
241 "{{URL}}"
242 ],
243 "port": "4002",
244 "path": [
245 "catalogues",
246 "api",
247 "v2",
248 "complex-services"
249 ]
250 }
251 },
252 "response": []
253 },
254 {
255 "name": "Get COSRs",
256 "request": {
257 "method": "GET",
258 "header": [
259 {
260 "key": "Content-Type",
261 "value": "application/json"
262 }
263 ],
264 "url": {
265 "raw": "http://{{URL}}:4011/records/cosr/cos-instances",
266 "protocol": "http",
267 "host": [
268 "{{URL}}"
269 ],
270 "port": "4011",
271 "path": [
272 "records",
273 "cosr",
274 "cos-instances"
275 ]
276 }
277 },
278 "response": []
279 }
280 ],
281 "_postman_isSubFolder": true
282 },
283 {
284 "name": "Virtual Network Functions",
285 "item": [
286 {
287 "name": "Get VNFs",
288 "request": {
289 "method": "GET",
290 "header": [
291 {
292 "key": "Content-Type",
293 "value": "application/json"
294 }
295 ],
296 "url": {
297 "raw": "http://{{URL}}:4002/catalogues/api/v2/vnfs",
298 "protocol": "http",
299 "host": [
300 "{{URL}}"
301 ],
302 "port": "4002",
303 "path": [
304 "catalogues",
305 "api",
306 "v2",
307 "vnfs"
308 ]
309 }
310 },
311 "response": []
312 },
313 {
314 "name": "Delete VNF",
315 "request": {
316 "method": "DELETE",
317 "header": [],
318 "body": {
319 "mode": "formdata",
320 "formdata": []
321 },
322 "url": {
323 "raw": "http://{{URL}}:4002/catalogues/api/v2/vnfs/b601a3d9-ac20-4300-9447-06f9a6a6aafe",
324 "protocol": "http",
325 "host": [
326 "{{URL}}"
327 ],
328 "port": "4002",
329 "path": [
330 "catalogues",
331 "api",
332 "v2",
333 "vnfs",
334 "b601a3d9-ac20-4300-9447-06f9a6a6aafe"
335 ]
336 }
337 },
338 "response": []
339 },
340 {
341 "name": "Store VNF",
342 "request": {
343 "method": "POST",
344 "header": [
345 {
346 "key": "Content-Type",
347 "value": "application/json"
348 }
349 ],
350 "body": {
351 "mode": "raw",
352 "raw": "{\n \"descriptor_version\": \"vnfd-schema-01\",\n \"description\": \"Squid Cache VNF\",\n \"name\": \"squid-cache\",\n \"vendor\": \"eu.sonata-nfv.vnf-descriptor\",\n \"version\": \"1.0\",\n \"author\": \"Tobias Dierich\",\n \"virtual_deployment_units\": [\n {\n \"id\": \"squid\",\n \"description\": \"Squid Cache\",\n \"vm_image\": \"https://images.tobiasdierich.de/squid.qcow2\",\n \"vm_image_format\": \"qcow2\",\n \"resource_requirements\": {\n \"cpu\": {\n \"vcpus\": 1\n },\n \"memory\": {\n \"size\": 1,\n \"size_unit\": \"GB\"\n },\n \"storage\": {\n \"size\": 10,\n \"size_unit\": \"GB\"\n }\n },\n \"connection_points\": [\n {\n \"id\": \"eth0\",\n \"interface\": \"ipv4\",\n \"type\": \"external\"\n }\n ]\n }\n ]\n}"
353 },
354 "url": {
355 "raw": "http://{{URL}}:4002/catalogues/api/v2/vnfs",
356 "protocol": "http",
357 "host": [
358 "{{URL}}"
359 ],
360 "port": "4002",
361 "path": [
362 "catalogues",
363 "api",
364 "v2",
365 "vnfs"
366 ]
367 }
368 },
369 "response": []
370 }
371 ],
372 "_postman_isSubFolder": true
373 },
374 {
375 "name": "Network Services",
376 "item": [
377 {
378 "name": "Get NSDs",
379 "request": {
380 "method": "GET",
381 "header": [
382 {
383 "key": "Content-Type",
384 "value": "application/json"
385 }
386 ],
387 "url": {
388 "raw": "http://{{URL}}:4002/catalogues/api/v2/network-services",
389 "protocol": "http",
390 "host": [
391 "{{URL}}"
392 ],
393 "port": "4002",
394 "path": [
395 "catalogues",
396 "api",
397 "v2",
398 "network-services"
399 ]
400 }
401 },
402 "response": []
403 },
404 {
405 "name": "Delete NSD",
406 "request": {
407 "method": "DELETE",
408 "header": [
409 {
410 "key": "Content-Type",
411 "value": "application/json"
412 }
413 ],
414 "body": {
415 "mode": "formdata",
416 "formdata": []
417 },
418 "url": {
419 "raw": "http://{{URL}}:4002/catalogues/api/v2/network-services/8ab8341c-2939-4813-8620-0fde11296a9e",
420 "protocol": "http",
421 "host": [
422 "{{URL}}"
423 ],
424 "port": "4002",
425 "path": [
426 "catalogues",
427 "api",
428 "v2",
429 "network-services",
430 "8ab8341c-2939-4813-8620-0fde11296a9e"
431 ]
432 }
433 },
434 "response": []
435 },
436 {
437 "name": "Store NSD",
438 "request": {
439 "method": "POST",
440 "header": [
441 {
442 "key": "Content-Type",
443 "value": "application/json"
444 }
445 ],
446 "body": {
447 "mode": "raw",
448 "raw": "{\n\t\"descriptor_version\": \"1.0\",\n\t\"vendor\": \"eu.sonata-nfv.service-descriptor\",\n\t\"name\": \"simplest-example\",\n\t\"version\": \"0.2\",\n\t\"author\": \"Tobias Dierich\",\n\t\"network_functions\": [\n\t\t{\n\t\t\t\"vnf_id\": \"testing\",\n\t\t\t\"vnf_vendor\": \"eu.sonata-nfv\",\n\t\t\t\"vnf_name\": \"testing\",\n\t\t\t\"vnf_version\": \"0.1\"\n\t\t}\n\t]\n}"
449 },
450 "url": {
451 "raw": "http://{{URL}}:4002/catalogues/api/v2/network-services",
452 "protocol": "http",
453 "host": [
454 "{{URL}}"
455 ],
456 "port": "4002",
457 "path": [
458 "catalogues",
459 "api",
460 "v2",
461 "network-services"
462 ]
463 }
464 },
465 "response": []
466 }
467 ],
468 "_postman_isSubFolder": true
469 }
470 ]
471 },
472 {
473 "name": "Gatekeeper",
474 "item": [
475 {
476 "name": "Deployment",
477 "item": [
478 {
479 "name": "Instantiate Service",
480 "request": {
481 "method": "POST",
482 "header": [
483 {
484 "key": "Content-Type",
485 "value": "application/json"
486 },
487 {
488 "key": "Authorization",
489 "value": "Bearer {{Token}}"
490 }
491 ],
492 "body": {
493 "mode": "raw",
494 "raw": "{\n\t\"service_uuid\": \"3daf671e-86a6-4997-9488-6bd0d6f1a051\",\n\t\"ingresses\": [],\n\t\"egresses\": []\n}"
495 },
496 "url": {
497 "raw": "http://{{URL}}/api/v2/requests",
498 "protocol": "http",
499 "host": [
500 "{{URL}}"
501 ],
502 "path": [
503 "api",
504 "v2",
505 "requests"
506 ]
507 }
508 },
509 "response": []
510 },
511 {
512 "name": "Terminate Service",
513 "request": {
514 "method": "POST",
515 "header": [
516 {
517 "key": "Content-Type",
518 "value": "application/json"
519 },
520 {
521 "key": "Authorization",
522 "value": "Bearer {{Token}}"
523 }
524 ],
525 "body": {
526 "mode": "raw",
527 "raw": "{\n\t\"service_instance_uuid\": \"03c0310c-a29d-4163-abe3-57801699e5f1\",\n\t\"request_type\": \"TERMINATE\"\n}"
528 },
529 "url": {
530 "raw": "http://{{URL}}/api/v2/requests",
531 "protocol": "http",
532 "host": [
533 "{{URL}}"
534 ],
535 "path": [
536 "api",
537 "v2",
538 "requests"
539 ]
540 }
541 },
542 "response": []
543 }
544 ],
545 "_postman_isSubFolder": true
546 },
547 {
548 "name": "Network Services",
549 "item": [
550 {
551 "name": "Get Network Services",
552 "request": {
553 "method": "GET",
554 "header": [
555 {
556 "key": "Authorization",
557 "value": "Bearer {{Token}}"
558 }
559 ],
560 "url": {
561 "raw": "http://{{URL}}/api/v2/services",
562 "protocol": "http",
563 "host": [
564 "{{URL}}"
565 ],
566 "path": [
567 "api",
568 "v2",
569 "services"
570 ]
571 }
572 },
573 "response": []
574 }
575 ],
576 "_postman_isSubFolder": true
577 },
578 {
579 "name": "Virtual Network Functions",
580 "item": [
581 {
582 "name": "Get Functions",
583 "request": {
584 "method": "GET",
585 "header": [
586 {
587 "key": "Authorization",
588 "value": "Bearer {{Token}}"
589 }
590 ],
591 "url": {
592 "raw": "http://{{URL}}/api/v2/functions",
593 "protocol": "http",
594 "host": [
595 "{{URL}}"
596 ],
597 "path": [
598 "api",
599 "v2",
600 "functions"
601 ]
602 }
603 },
604 "response": []
605 }
606 ],
607 "_postman_isSubFolder": true
608 },
609 {
610 "name": "Cloud Services",
611 "item": [
612 {
613 "name": "Get Cloud Services",
614 "request": {
615 "method": "GET",
616 "header": [
617 {
618 "key": "Authorization",
619 "value": "Bearer {{Token}}"
620 }
621 ],
622 "url": {
623 "raw": "http://{{URL}}/api/v2/cloud-services",
624 "protocol": "http",
625 "host": [
626 "{{URL}}"
627 ],
628 "path": [
629 "api",
630 "v2",
631 "cloud-services"
632 ]
633 }
634 },
635 "response": []
636 },
637 {
638 "name": "Get Cloud Service",
639 "request": {
640 "method": "GET",
641 "header": [
642 {
643 "key": "Authorization",
644 "value": "Bearer {{Token}}"
645 }
646 ],
647 "url": {
648 "raw": "http://{{URL}}/api/v2/cloud-services/1a2a0df8-e4e7-4efd-bda5-247adaeaa95a",
649 "protocol": "http",
650 "host": [
651 "{{URL}}"
652 ],
653 "path": [
654 "api",
655 "v2",
656 "cloud-services",
657 "1a2a0df8-e4e7-4efd-bda5-247adaeaa95a"
658 ]
659 }
660 },
661 "response": []
662 }
663 ],
664 "_postman_isSubFolder": true
665 },
666 {
667 "name": "Complex Services",
668 "item": [
669 {
670 "name": "Get Complex Services",
671 "request": {
672 "method": "GET",
673 "header": [
674 {
675 "key": "Authorization",
676 "value": "Bearer {{Token}}"
677 }
678 ],
679 "url": {
680 "raw": "http://{{URL}}/api/v2/complex-services",
681 "protocol": "http",
682 "host": [
683 "{{URL}}"
684 ],
685 "path": [
686 "api",
687 "v2",
688 "complex-services"
689 ]
690 }
691 },
692 "response": []
693 }
694 ],
695 "_postman_isSubFolder": true
696 },
697 {
698 "name": "VIMs",
699 "item": [
700 {
701 "name": "List VIMs",
702 "request": {
703 "method": "GET",
704 "header": [
705 {
706 "key": "Authorization",
707 "value": "Bearer {{Token}}"
708 }
709 ],
710 "url": {
711 "raw": "http://{{URL}}/api/v2/vims",
712 "protocol": "http",
713 "host": [
714 "{{URL}}"
715 ],
716 "path": [
717 "api",
718 "v2",
719 "vims"
720 ]
721 }
722 },
723 "response": []
724 }
725 ],
726 "_postman_isSubFolder": true
727 }
728 ]
729 },
730 {
731 "name": "Monitoring",
732 "item": [
733 {
734 "name": "Add Scrape Job",
735 "request": {
736 "method": "POST",
737 "header": [
738 {
739 "key": "Content-Type",
740 "value": "application/json"
741 }
742 ],
743 "body": {
744 "mode": "raw",
745 "raw": "{\n \"job_name\": \"kubernetes-cadvisor\",\n \"scheme\": \"https\",\n \"tls_config\": {\n \"insecure_skip_verify\": true\n },\n \"basic_auth\": {\n \"username\": \"admin\",\n \"password\": \"Q30FkebrS5dV7Xsa\"\n },\n \"kubernetes_sd_configs\": [\n {\n \"role\": \"node\",\n \"api_server\": \"https://35.189.101.136\",\n \"tls_config\": {\n \"insecure_skip_verify\": true\n },\n \"basic_auth\": {\n \"username\": \"admin\",\n \"password\": \"Q30FkebrS5dV7Xsa\"\n }\n }\n ],\n \"relabel_configs\": [\n {\n \"action\": \"labelmap\",\n \"regex\": \"__meta_kubernetes_node_label_(.+)\"\n },\n {\n \"target_label\": \"__address__\",\n \"replacement\": \"35.189.101.136:443\"\n },\n {\n \"source_labels\": [\n \"__meta_kubernetes_node_name\"\n ],\n \"regex\": \"(.+)\",\n \"target_label\": \"__metrics_path__\",\n \"replacement\": \"/api/v1/nodes/${1}/proxy/metrics/cadvisor\"\n }\n ]\n }"
746 },
747 "url": {
748 "raw": "{{URL}}:9089/prometheus/configuration/jobs",
749 "host": [
750 "{{URL}}"
751 ],
752 "port": "9089",
753 "path": [
754 "prometheus",
755 "configuration",
756 "jobs"
757 ]
758 }
759 },
760 "response": []
761 },
762 {
763 "name": "Remove Scrape Job",
764 "request": {
765 "method": "DELETE",
766 "header": [
767 {
768 "key": "Content-Type",
769 "value": "application/json"
770 }
771 ],
772 "body": {
773 "mode": "raw",
774 "raw": "{\n\t\"job_name\": \"kubernetes-cadvisor\"\n}"
775 },
776 "url": {
777 "raw": "{{URL}}:9089/prometheus/configuration/jobs",
778 "host": [
779 "{{URL}}"
780 ],
781 "port": "9089",
782 "path": [
783 "prometheus",
784 "configuration",
785 "jobs"
786 ]
787 }
788 },
789 "response": []
790 }
791 ]
792 },
793 {
794 "name": "Authenticate",
795 "event": [
796 {
797 "listen": "test",
798 "script": {
799 "type": "text/javascript",
800 "exec": [
801 "var jsonData = JSON.parse(responseBody);",
802 "postman.setEnvironmentVariable(\"Token\", jsonData.token.access_token);"
803 ]
804 }
805 }
806 ],
807 "request": {
808 "method": "POST",
809 "header": [
810 {
811 "key": "Content-Type",
812 "value": "application/json"
813 }
814 ],
815 "body": {
816 "mode": "raw",
817 "raw": "{\n\t\"username\": \"{{Username}}\",\n\t\"password\": \"{{Password}}\"\n}"
818 },
819 "url": {
820 "raw": "http://{{URL}}/api/v2/sessions",
821 "protocol": "http",
822 "host": [
823 "{{URL}}"
824 ],
825 "path": [
826 "api",
827 "v2",
828 "sessions"
829 ]
830 }
831 },
832 "response": []
833 },
834 {
835 "name": "OS Auth",
836 "request": {
837 "method": "POST",
838 "header": [
839 {
840 "key": "Content-Type",
841 "value": "application/json"
842 }
843 ],
844 "body": {
845 "mode": "raw",
846 "raw": "{\n \"auth\": {\n \"identity\": {\n \"methods\": [\n \"password\"\n ],\n \"password\": {\n \"user\": {\n \t\"name\": \"admin\",\n \t\"domain\": {\n \"name\": \"Default\"\n },\n \"password\": \"67122611\"\n }\n }\n },\n \"scope\": {\n \t\"project\": {\n \"id\": \"2e34505fefd74d488b7e11fd1f225bad\"\n }\n }\n }\n}"
847 },
848 "url": {
849 "raw": "http://10.1.2.1:5000/v3/auth/tokens",
850 "protocol": "http",
851 "host": [
852 "10",
853 "1",
854 "2",
855 "1"
856 ],
857 "port": "5000",
858 "path": [
859 "v3",
860 "auth",
861 "tokens"
862 ]
863 }
864 },
865 "response": []
866 }
867 ]
868}