e8a1f38892e009ea381a5a5754aa986943bc0efb
[vfc/nfvo/lcm.git] / lcm / ns / swagger.json
1 {
2     "swagger": "2.0",
3     "info": {
4         "version": "1.0.0",
5         "title": "ONAP VFC Service Rest API"
6     },
7     "basePath": "/api/nslcm/v1",
8     "tags": [
9         {
10             "name": "vfc nslcm resource"
11         }
12     ],
13     "paths": {
14         "/nspackage": {
15             "post": {
16                 "tags": [
17                     "ns package Resource"
18                 ],
19                 "summary": "ns package distribute",
20                 "description": "ns package distribute",
21                 "operationId": "ns_pkg_distribute",
22                 "consumes": [
23                     "application/json"
24                 ],
25                 "produces": [
26                     "application/json"
27                 ],
28                 "parameters": [
29                     {
30                         "in": "body",
31                         "name": "body",
32                         "description": "distribute request param",
33                         "required": true,
34                         "schema": {
35                             "$ref": "#/definitions/NsPkgPostRequest"
36                         }
37                     }
38                 ],
39                 "responses": {
40                     "202": {
41                         "description": "",
42                         "schema": {
43                             "$ref": "#/definitions/NsPkgPostResponse"
44                         }
45                     },
46                     "500": {
47                         "description": "internal error"
48                     }
49                 }
50             }
51         },
52         "/nspackage/{csarId}": {
53             "get": {
54                 "tags": [
55                     "ns package Resource"
56                 ],
57                 "summary": "query one ns package info",
58                 "description": "query one ns package info",
59                 "operationId": "query_one_ns_package",
60                 "consumes": [
61                     "application/json"
62                 ],
63                 "produces": [
64                     "application/json"
65                 ],
66                 "parameters": [
67                     {
68                         "name": "csarId",
69                         "in": "path",
70                         "description": "csar id of ns package",
71                         "required": true,
72                         "type": "string"
73                     }
74                 ],
75                 "responses": {
76                     "200": {
77                         "description": "successful operation",
78                         "schema": {
79                             "$ref": "#/definitions/NsPackageInfo"
80                         }
81                     },
82                     "500": {
83                         "description": "internal error"
84                     }
85                 }
86             },
87             "delete": {
88                 "tags": [
89                     "ns package Resource"
90                 ],
91                 "summary": "delete ns pkg",
92                 "description": "delete ns pkg",
93                 "operationId": "delete_ns_pkg",
94                 "consumes": [
95                     "application/json"
96                 ],
97                 "produces": [
98                     "application/json"
99                 ],
100                 "parameters": [
101                     {
102                         "name": "csarId",
103                         "in": "path",
104                         "description": "csar id of ns package",
105                         "required": true,
106                         "type": "string"
107                     }
108                 ],
109                 "responses": {
110                     "202": {
111                         "description": "",
112                         "schema": {
113                             "$ref": "#/definitions/NsPkgPostResponse"
114                         }
115                     },
116                     "500": {
117                         "description": "internal error"
118                     }
119                 }
120             }
121         },
122         "/vnfpackage": {
123             "get": {
124                 "tags": [
125                     "nf package Resource"
126                 ],
127                 "summary": "query nf package info",
128                 "description": "query nf package info",
129                 "operationId": "query_nf_package",
130                 "consumes": [
131                     "application/json"
132                 ],
133                 "produces": [
134                     "application/json"
135                 ],
136                 "parameters": [
137                 ],
138                 "responses": {
139                     "200": {
140                         "description": "successful operation",
141                         "schema": {
142                             "$ref": "#/definitions/NfPackageListInfo"
143                         }
144                     },
145                     "500": {
146                         "description": "internal error"
147                     }
148                 }
149             },
150             "post": {
151                 "tags": [
152                     "nf package Resource"
153                 ],
154                 "summary": "nf package distribute",
155                 "description": "nf package distribute",
156                 "operationId": "nf_pkg_distribute",
157                 "consumes": [
158                     "application/json"
159                 ],
160                 "produces": [
161                     "application/json"
162                 ],
163                 "parameters": [
164                     {
165                         "in": "body",
166                         "name": "body",
167                         "description": "distribute request param",
168                         "required": true,
169                         "schema": {
170                             "$ref": "#/definitions/NfPkgPostRequest"
171                         }
172                     }
173                 ],
174                 "responses": {
175                     "202": {
176                         "description": "",
177                         "schema": {
178                             "$ref": "#/definitions/NfPkgPostResponse"
179                         }
180                     },
181                     "500": {
182                         "description": "internal error"
183                     }
184                 }
185             }
186         },
187         "/vnfpackage/{csarId}": {
188             "get": {
189                 "tags": [
190                     "nf package Resource"
191                 ],
192                 "summary": "query one nf package info",
193                 "description": "query one nf package info",
194                 "operationId": "query_one_nf_package",
195                 "consumes": [
196                     "application/json"
197                 ],
198                 "produces": [
199                     "application/json"
200                 ],
201                 "parameters": [
202                     {
203                         "name": "csarId",
204                         "in": "path",
205                         "description": "csar id of nf package",
206                         "required": true,
207                         "type": "string"
208                     }
209                 ],
210                 "responses": {
211                     "200": {
212                         "description": "successful operation",
213                         "schema": {
214                             "$ref": "#/definitions/NfPackageInfo"
215                         }
216                     },
217                     "500": {
218                         "description": "internal error"
219                     }
220                 }
221             },
222             "delete": {
223                 "tags": [
224                     "nf package Resource"
225                 ],
226                 "summary": "delete nf pkg",
227                 "description": "delete nf pkg",
228                 "operationId": "delete_nf_pkg",
229                 "consumes": [
230                     "application/json"
231                 ],
232                 "produces": [
233                     "application/json"
234                 ],
235                 "parameters": [
236                     {
237                         "name": "csarId",
238                         "in": "path",
239                         "description": "csar id of nf package",
240                         "required": true,
241                         "type": "string"
242                     }
243                 ],
244                 "responses": {
245                     "202": {
246                         "description": "",
247                         "schema": {
248                             "$ref": "#/definitions/NfPkgPostResponse"
249                         }
250                     },
251                     "500": {
252                         "description": "internal error"
253                     }
254                 }
255             }
256         },
257         "/ns/vls": {
258             "post": {
259                 "tags": [
260                     "vls Resource"
261                 ],
262                 "summary": "vl create",
263                 "description": "",
264                 "operationId": "create_vl",
265                 "consumes": [
266                     "application/json"
267                 ],
268                 "produces": [
269                     "application/json"
270                 ],
271                 "parameters": [
272                     {
273                         "in": "body",
274                         "name": "body",
275                         "description": "instantiate request param",
276                         "required": true,
277                         "schema": {
278                             "$ref": "#/definitions/VlPostRequest"
279                         }
280                     }
281                 ],
282                 "responses": {
283                     "201": {
284                         "description": "",
285                         "schema": {
286                             "$ref": "#/definitions/VlPostResponse"
287                         }
288                     }
289                 }
290             }
291         },
292         "/ns/vls/{vlId}": {
293             "get": {
294                 "tags": [
295                     "vls Resource"
296                 ],
297                 "summary": "query the specified vl info",
298                 "description": "",
299                 "operationId": "query_vl",
300                 "consumes": [
301                     "application/json"
302                 ],
303                 "produces": [
304                     "application/json"
305                 ],
306                 "parameters": [
307                     {
308                         "name": "vlId",
309                         "in": "path",
310                         "description": "vl instance id",
311                         "required": true,
312                         "type": "string"
313                     }
314                 ],
315                 "responses": {
316                     "200": {
317                         "description": "successful operation",
318                         "schema": {
319                             "$ref": "#/definitions/VlInfo"
320                         }
321                     },
322                     "404": {
323                         "description": "the vl instance id is wrong"
324                     },
325                     "500": {
326                         "description": "the url is invalid"
327                     }
328                 }
329             },
330             "delete": {
331                 "tags": [
332                     "vls Resource"
333                 ],
334                 "summary": "delete vl",
335                 "description": "",
336                 "operationId": "delete_vl",
337                 "consumes": [
338                     "application/json"
339                 ],
340                 "produces": [
341                     "application/json"
342                 ],
343                 "parameters": [
344                     {
345                         "required": true,
346                         "type": "string",
347                         "description": "",
348                         "name": "vlId",
349                         "in": "path"
350                     }
351                 ],
352                 "responses": {
353                     "204": {
354                         "description": "successful operation",
355                         "schema": {
356                             "$ref": "#/definitions/DeleteVlResponse"
357                         }
358                     },
359                     "404": {
360                         "description": "the vl instance id is wrong"
361                     },
362                     "500": {
363                         "description": "the url is invalid"
364                     }
365                 }
366             }
367         },
368         "/ns/vnfs": {
369             "post": {
370                 "tags": [
371                     "vnfs Resource"
372                 ],
373                 "summary": "vnf create",
374                 "description": "",
375                 "operationId": "create_vnf",
376                 "consumes": [
377                     "application/json"
378                 ],
379                 "produces": [
380                     "application/json"
381                 ],
382                 "parameters": [
383                     {
384                         "in": "body",
385                         "name": "body",
386                         "description": "instantiate request param",
387                         "required": true,
388                         "schema": {
389                             "$ref": "#/definitions/VnfPostRequest"
390                         }
391                     }
392                 ],
393                 "responses": {
394                     "201": {
395                         "description": "",
396                         "schema": {
397                             "$ref": "#/definitions/VnfPostResponse"
398                         }
399                     }
400                 }
401             }
402         },
403         "/ns/vnfs/{vnfInstId}": {
404             "get": {
405                 "tags": [
406                     "vnfs Resource"
407                 ],
408                 "summary": "query the specified vnf info",
409                 "description": "",
410                 "operationId": "query_vnf",
411                 "consumes": [
412                     "application/json"
413                 ],
414                 "produces": [
415                     "application/json"
416                 ],
417                 "parameters": [
418                     {
419                         "name": "vnfInstId",
420                         "in": "path",
421                         "description": "vnf instance id",
422                         "required": true,
423                         "type": "string"
424                     }
425                 ],
426                 "responses": {
427                     "200": {
428                         "description": "successful operation",
429                         "schema": {
430                             "$ref": "#/definitions/VnfInfo"
431                         }
432                     },
433                     "404": {
434                         "description": "the vnf instance id is wrong"
435                     },
436                     "500": {
437                         "description": "the url is invalid"
438                     }
439                 }
440             },
441             "delete": {
442                 "tags": [
443                     "vnfs Resource"
444                 ],
445                 "summary": "delete vnf",
446                 "description": "",
447                 "operationId": "delete_vnf",
448                 "consumes": [
449                     "application/json"
450                 ],
451                 "produces": [
452                     "application/json"
453                 ],
454                 "parameters": [
455                     {
456                         "required": true,
457                         "type": "string",
458                         "description": "",
459                         "name": "vnfInstId",
460                         "in": "path"
461                     }
462                 ],
463                 "responses": {
464                     "204": {
465                         "description": "successful operation",
466                         "schema": {
467                             "$ref": "#/definitions/DeleteResponse"
468                         }
469                     },
470                     "404": {
471                         "description": "the vl instance id is wrong"
472                     },
473                     "500": {
474                         "description": "the url is invalid"
475                     }
476                 }
477             }
478         },
479         "/ns/sfcs": {
480             "post": {
481                 "tags": [
482                     "sfcs Resource"
483                 ],
484                 "summary": "sfc create",
485                 "description": "",
486                 "operationId": "create_sfc",
487                 "consumes": [
488                     "application/json"
489                 ],
490                 "produces": [
491                     "application/json"
492                 ],
493                 "parameters": [
494                     {
495                         "in": "body",
496                         "name": "body",
497                         "description": "request param",
498                         "required": true,
499                         "schema": {
500                             "$ref": "#/definitions/SfcPostRequest"
501                         }
502                     }
503                 ],
504                 "responses": {
505                     "201": {
506                         "description": "",
507                         "schema": {
508                             "$ref": "#/definitions/SfcPostResponse"
509                         }
510                     }
511                 }
512             }
513         },
514         "/ns/sfcs/{sfcInstId}": {
515             "get": {
516                 "tags": [
517                     "sfcs Resource"
518                 ],
519                 "summary": "query the specified sfc info",
520                 "description": "",
521                 "operationId": "query_sfc",
522                 "consumes": [
523                     "application/json"
524                 ],
525                 "produces": [
526                     "application/json"
527                 ],
528                 "parameters": [
529                     {
530                         "name": "sfcInstId",
531                         "in": "path",
532                         "description": "sfc instance id",
533                         "required": true,
534                         "type": "string"
535                     }
536                 ],
537                 "responses": {
538                     "200": {
539                         "description": "successful operation",
540                         "schema": {
541                             "$ref": "#/definitions/SfcInfo"
542                         }
543                     },
544                     "404": {
545                         "description": "the sfc instance id is wrong"
546                     },
547                     "500": {
548                         "description": "the url is invalid"
549                     }
550                 }
551             },
552             "delete": {
553                 "tags": [
554                     "vnfs Resource"
555                 ],
556                 "summary": "delete sfc",
557                 "description": "",
558                 "operationId": "delete_sfc",
559                 "consumes": [
560                     "application/json"
561                 ],
562                 "produces": [
563                     "application/json"
564                 ],
565                 "parameters": [
566                     {
567                         "required": true,
568                         "type": "string",
569                         "description": "",
570                         "name": "sfcInstId",
571                         "in": "path"
572                     }
573                 ],
574                 "responses": {
575                     "204": {
576                         "description": "successful operation",
577                         "schema": {
578                             "$ref": "#/definitions/DeleteResponse"
579                         }
580                     },
581                     "404": {
582                         "description": "the sfc instance id is wrong"
583                     },
584                     "500": {
585                         "description": "the url is invalid"
586                     }
587                 }
588             }
589         },
590         "/ns/{nsInstanceId}/postdeal": {
591             "post": {
592                 "tags": [
593                     "ns postdeal"
594                 ],
595                 "summary": "ns postdeal",
596                 "description": "",
597                 "operationId": "ns_postdeal",
598                 "consumes": [
599                     "application/json"
600                 ],
601                 "produces": [
602                     "application/json"
603                 ],
604                 "parameters": [
605                     {
606                         "required": true,
607                         "type": "string",
608                         "description": "",
609                         "name": "nsInstanceId",
610                         "in": "path"
611                     },
612                     {
613                         "in": "body",
614                         "name": "body",
615                         "description": "request param",
616                         "required": true,
617                         "schema": {
618                             "$ref": "#/definitions/NSInstPostDetailRequest"
619                         }
620                     }
621                 ],
622                 "responses": {
623                     "202": {
624                         "description": ""
625                     }
626                 }
627             }
628         },
629         "/ns/{nsInstanceId}/scale": {
630             "post": {
631                 "tags": [
632                     "ns scale"
633                 ],
634                 "summary": "ns scale",
635                 "description": "ns scale",
636                 "operationId": "ns_scale",
637                 "consumes": [
638                     "application/json"
639                 ],
640                 "produces": [
641                     "application/json"
642                 ],
643                 "parameters": [
644                     {
645                         "required": true,
646                         "type": "string",
647                         "description": "",
648                         "name": "nsInstanceId",
649                         "in": "path"
650                     },
651                     {
652                         "in": "body",
653                         "name": "ScaleNSRequest",
654                         "description": "Scale NS Request Body",
655                         "required": true,
656                         "schema": {
657                             "$ref": "#/definitions/ScaleNsRequest"
658                         }
659                     }
660                 ],
661                 "responses": {
662                     "200": {
663                         "description": "",
664                         "schema": {
665                             "$ref": "#/definitions/NsScaleResponse"
666                         }
667                     },
668                     "201": {
669                         "description": "Invalid Request"
670                     }
671                 }
672             }
673         },
674         "/ns/{ns_instance_id}": {
675             "delete": {
676                 "tags": [
677                     "ns lcm"
678                 ],
679                 "summary": "ns delete",
680                 "description": "ns delete",
681                 "operationId": "ns_delete",
682                 "consumes": [
683                     "application/json"
684                 ],
685                 "produces": [
686                     "application/json"
687                 ],
688                 "parameters": [
689                     {
690                         "required": true,
691                         "type": "string",
692                         "description": "Identifier of the NS instance.",
693                         "name": "ns_instance_id",
694                         "in": "path"
695                     }
696                 ],
697                 "responses": {
698                     "204": {
699                         "description": "The NS instance resource and the associated NS identifier were deleted successfully."
700                     }
701                 }
702             }
703         },
704         "/ns/{ns_instance_id}/terminate": {
705             "post": {
706                 "tags": [
707                     "ns lcm"
708                 ],
709                 "summary": "ns terminate",
710                 "description": "ns terminate",
711                 "operationId": "ns_terminate",
712                 "consumes": [
713                     "application/json"
714                 ],
715                 "produces": [
716                     "application/json"
717                 ],
718                 "parameters": [
719                     {
720                         "required": true,
721                         "type": "string",
722                         "description": "Identifier of the NS instance.",
723                         "name": "ns_instance_id",
724                         "in": "path"
725                     },
726                     {
727                         "in": "body",
728                         "name": "NsTerminateRequest",
729                         "description": "NsTerminateRequest",
730                         "required": true,
731                         "schema": {
732                             "$ref": "#/definitions/NsTerminateRequest"
733                         }
734                     }
735                 ],
736                 "responses": {
737                     "202": {
738                         "description": "",
739                         "schema": {
740                             "$ref": "#/definitions/NsTerminateResponse"
741                         }
742                     },
743                     "500": {
744                         "description": "the url is invalid"
745                     }
746                 }
747             }
748         },
749         "/ns/{ns_instance_id}/heal": {
750             "post": {
751                 "tags": [
752                     "ns heal"
753                 ],
754                 "summary": "ns heal",
755                 "description": "ns heal",
756                 "operationId": "ns_heal",
757                 "consumes": [
758                     "application/json"
759                 ],
760                 "produces": [
761                     "application/json"
762                 ],
763                 "parameters": [
764                     {
765                         "required": true,
766                         "type": "string",
767                         "description": "Identifier of the NS instance.",
768                         "name": "ns_instance_id",
769                         "in": "path"
770                     },
771                     {
772                         "in": "body",
773                         "name": "healVnfData",
774                         "description": "healVnfData",
775                         "required": true,
776                         "schema": {
777                             "$ref": "#/definitions/healVnfDataRequest"
778                         }
779                     }
780                 ],
781                 "responses": {
782                     "202": {
783                         "description": "",
784                         "schema": {
785                             "$ref": "#/definitions/healVnfDataResponse"
786                         }
787                     },
788                     "500": {
789                         "description": "the url is invalid"
790                     }
791                 }
792             }
793         },
794         "/mandb/{modelName}": {
795             "get": {
796                 "tags": [
797                     "ns lcm"
798                 ],
799                 "summary": "query ns table info",
800                 "description": "query ns table info",
801                 "operationId": "query_ns_table",
802                 "consumes": [
803                     "application/json"
804                 ],
805                 "produces": [
806                     "application/json"
807                 ],
808                 "parameters": [
809                     {
810                         "required": true,
811                         "type": "string",
812                         "description": "model Name.",
813                         "name": "modelName",
814                         "in": "path"
815                     }
816                 ],
817                 "responses": {
818                     "200": {
819                         "description": "successful operation",
820                         "schema": {
821                             "$ref": "#/definitions/TableInfo"
822                         }
823                     },
824                     "500": {
825                         "description": "the url is invalid"
826                     }
827                 }
828             },
829             "delete": {
830                 "tags": [
831                     "ns lcm"
832                 ],
833                 "summary": "ns table delete",
834                 "description": "ns table delete",
835                 "operationId": "ns_table_delete",
836                 "consumes": [
837                     "application/json"
838                 ],
839                 "produces": [
840                     "application/json"
841                 ],
842                 "parameters": [
843                     {
844                         "required": true,
845                         "type": "string",
846                         "description": "model Name.",
847                         "name": "modelName",
848                         "in": "path"
849                     }
850                 ],
851                 "responses": {
852                     "204": {
853                         "description": "The tables were deleted successfully."
854                     }
855                 }
856             }
857         },
858         "/ns": {
859             "get": {
860                 "tags": [
861                     "ns lcm"
862                 ],
863                 "summary": "ns get",
864                 "description": "ns get",
865                 "operationId": "ns_get",
866                 "consumes": [
867                     "application/json"
868                 ],
869                 "produces": [
870                     "application/json"
871                 ],
872                 "parameters": [
873   
874                 ],
875                 "responses": {
876                     "200": {
877                         "description": "successful operation",
878                         "schema": {
879                             "$ref": "#/definitions/NsInfo"
880                         }
881                     }
882                 }
883             }
884         },
885         "/jobs/{jobId}":{
886           "post": {
887                 "tags": [
888                     "jobstatus"
889                 ],
890                 "summary": "jobstatus",
891                 "description": "",
892                 "operationId": "jobstatus",
893                 "consumes": [
894                     "application/json"
895                 ],
896                 "produces": [
897                     "application/json"
898                 ],
899                 "parameters": [
900                     {
901                         "required": true,
902                         "type": "string",
903                         "description": "",
904                         "name": "jobId",
905                         "in": "path"
906                     },
907                     {
908                         "in": "body",
909                         "name": "body",
910                         "description": "request param",
911                         "required": true,
912                         "schema": {
913                             "$ref": "#/definitions/JobProgressRequest"
914                         }
915                     }
916                 ],
917                 "responses": {
918                     "202": {
919                         "description": ""
920                     }
921                 }
922             }
923         }
924     },
925     "definitions": {
926         "NsPkgPostRequest": {
927             "type": "object",
928             "properties": {
929                 "csarId": {
930                     "type": "string"
931                 }
932             }
933         },
934         "NsPkgPostResponse": {
935             "type": "object",
936             "properties": {
937                 "status": {
938                     "type": "string"
939                 },
940                 "statusDescription": {
941                     "type": "string"
942                 },
943                 "errorCode": {
944                     "type": "string"
945                 }
946             }
947         },
948        
949         "NsPackageInfo": {
950             "type": "object",
951             "properties": {
952                 "csarId": {
953                     "type": "string"
954                 },
955                 "packageInfo": {
956                     "$ref": "#/definitions/NsPkgDetailInfo"
957                 },
958                 "nsInstanceInfo": {
959                     "$ref": "#/definitions/NsInstListInfo"
960                 }
961             }
962         },
963         "NsPkgDetailInfo": {
964             "type": "object",
965             "properties": {
966                 "nsdId": {
967                     "type": "string"
968                 },
969                 "nsdProvider": {
970                     "type": "string"
971                 },
972                 "nsdVersion": {
973                     "type": "string"
974                 }
975             }
976         },
977         "NsInstListInfo": {
978             "type": "array",
979             "items": {
980                 "type": "object"
981             }
982         },
983         "NfPkgPostRequest": {
984             "type": "object",
985             "properties": {
986                 "csarId": {
987                     "type": "string"
988                 }
989             }
990         },
991         "NfPkgPostResponse": {
992             "type": "object",
993             "properties": {
994                 "jobId": {
995                     "type": "string"
996                 }
997             }
998         },
999         "NfPackageListInfo": {
1000             "type": "object",
1001             "properties": {
1002                 "csars": {
1003                     "$ref": "#/definitions/NfPkgListInfo"
1004                 }
1005             }
1006         },
1007         "NfPkgListInfo": {
1008             "type": "array",
1009             "items": {
1010                 "type": "object"
1011             }
1012         },
1013         "NfPackageInfo": {
1014             "type": "object",
1015             "properties": {
1016                 "csarId": {
1017                     "type": "string"
1018                 },
1019                 "packageInfo": {
1020                     "$ref": "#/definitions/NfPkgDetailInfo"
1021                 },
1022                 "imageInfo": {
1023                     "$ref": "#/definitions/NfPkgImgInfo"
1024                 },
1025                 "vnfInstanceInfo": {
1026                     "$ref": "#/definitions/NfInstListInfo"
1027                 }
1028             }
1029         },
1030         "NfPkgDetailInfo": {
1031             "type": "object",
1032             "properties": {
1033                 "vnfdId": {
1034                     "type": "string"
1035                 },
1036                 "vnfdProvider": {
1037                     "type": "string"
1038                 },
1039                 "vnfdVersion": {
1040                     "type": "string"
1041                 },
1042                 "vnfVersion": {
1043                     "type": "string"
1044                 }
1045             }
1046         },
1047         "NfInstListInfo": {
1048             "type": "array",
1049             "items": {
1050                 "type": "object"
1051             }
1052         },
1053         "NfPkgImgInfo": {
1054             "type": "array",
1055             "items": {
1056                 "type": "object"
1057             }
1058         },
1059         "VlPostRequest": {
1060             "type": "object",
1061             "properties": {
1062                 "jobId": {
1063                     "type": "string"
1064                 },
1065                 "nsInstanceId": {
1066                     "type": "string"
1067                 },
1068                 "flavourId": {
1069                     "type": "string"
1070                 },
1071                 "sapData": {
1072                     "type": "array",
1073                     "items": {
1074                         "type": "object"
1075                     }
1076                 },
1077                 "pnfInfo": {
1078                     "type": "array",
1079                     "items": {
1080                         "type": "object"
1081                     }
1082                 },
1083                 "vnfInstanceData": {
1084                     "type": "array",
1085                     "items": {
1086                         "type": "object"
1087                     }
1088                 },
1089                 "nestedNsInstanceId": {
1090                     "type": "array",
1091                     "items": {
1092                         "type": "object"
1093                     }
1094                 },
1095                 "locationConstraints": {
1096                     "type": "array",
1097                     "items": {
1098                         "type": "object"
1099                     }
1100                 },
1101                 "additionalParamForNs": {
1102                     "type": "array",
1103                     "items": {
1104                         "type": "object"
1105                     }
1106                 },
1107                 "additionalParamForVnf": {
1108                     "type": "array",
1109                     "items": {
1110                         "type": "object"
1111                     }
1112                 },
1113                 "extNSVirtualLink": {
1114                     "type": "array",
1115                     "items": {
1116                         "type": "object"
1117                     }
1118                 },
1119                 "context": {
1120                     "type": "string"
1121                 },
1122                 "vlIndex": {
1123                     "type": "string"
1124                 }
1125             }
1126         },
1127         "VlPostResponse": {
1128             "type": "object",
1129             "properties": {
1130                 "result": {
1131                     "type": "integer",
1132                     "enum": [
1133                         0,
1134                         1
1135                     ]
1136                 },
1137                 "detail": {
1138                     "type": "string"
1139                 },
1140                 "vlId": {
1141                     "type": "string"
1142                 }
1143             }
1144         },
1145         "VnfPostRequest": {
1146             "type": "object",
1147             "properties": {
1148                 "jobId": {
1149                     "type": "string"
1150                 },
1151                 "nsInstanceId": {
1152                     "type": "string"
1153                 },
1154                 "flavourId": {
1155                     "type": "string"
1156                 },
1157                 "sapData": {
1158                     "type": "array",
1159                     "items": {
1160                         "type": "object"
1161                     }
1162                 },
1163                 "pnfInfo": {
1164                     "type": "array",
1165                     "items": {
1166                         "type": "object"
1167                     }
1168                 },
1169                 "vnfInstanceData": {
1170                     "type": "array",
1171                     "items": {
1172                         "type": "object"
1173                     }
1174                 },
1175                 "nestedNsInstanceId": {
1176                     "type": "array",
1177                     "items": {
1178                         "type": "object"
1179                     }
1180                 },
1181                 "locationConstraints": {
1182                     "type": "array",
1183                     "items": {
1184                         "type": "object"
1185                     }
1186                 },
1187                 "additionalParamForNs": {
1188                     "type": "array",
1189                     "items": {
1190                         "type": "object"
1191                     }
1192                 },
1193                 "additionalParamForVnf": {
1194                     "type": "array",
1195                     "items": {
1196                         "type": "object"
1197                     }
1198                 },
1199                 "extNSVirtualLink": {
1200                     "type": "array",
1201                     "items": {
1202                         "type": "object"
1203                     }
1204                 },
1205                 "context": {
1206                     "type": "string"
1207                 },
1208                 "vnfIndex": {
1209                     "type": "string"
1210                 }
1211             }
1212         },
1213         "VnfPostResponse": {
1214             "type": "object",
1215             "properties": {
1216                 "vnfInstId": {
1217                     "type": "string"
1218                 },
1219                 "jobId": {
1220                     "type": "string"
1221                 }
1222             }
1223         },
1224         "SfcPostRequest": {
1225             "type": "object",
1226             "properties": {
1227                 "jobId": {
1228                     "type": "string"
1229                 },
1230                 "nsInstanceId": {
1231                     "type": "string"
1232                 },
1233                 "sapData": {
1234                     "type": "array",
1235                     "items": {
1236                         "type": "object"
1237                     }
1238                 },
1239                 "vnfInstanceData": {
1240                     "type": "array",
1241                     "items": {
1242                         "type": "object"
1243                     }
1244                 },
1245                 "additionalParamForNs": {
1246                     "type": "array",
1247                     "items": {
1248                         "type": "object"
1249                     }
1250                 },
1251                 "additionalParamForVnf": {
1252                     "type": "array",
1253                     "items": {
1254                         "type": "object"
1255                     }
1256                 },
1257                 "sdnControllerId": {
1258                     "type": "string"
1259                 },
1260                 "context": {
1261                     "type": "string"
1262                 },
1263                 "fpindex": {
1264                     "type": "string"
1265                 }
1266             }
1267         },
1268         "NSInstPostDetailRequest": {
1269             "type": "object",
1270             "properties": {
1271                 "status": {
1272                     "type": "string"
1273                 }
1274             }
1275         },
1276         "JobProgressRequest": {
1277             "type": "object",
1278             "properties": {
1279                 "progress": {
1280                     "type": "string"
1281                 },
1282                 "desc": {
1283                     "type": "string"
1284                 },
1285                 "errcode": {
1286                     "type": "string"
1287                 }
1288             }
1289         },
1290         "SfcPostResponse": {
1291             "type": "object",
1292             "properties": {
1293                 "sfcInstId": {
1294                     "type": "string"
1295                 },
1296                 "jobId": {
1297                     "type": "string"
1298                 }
1299             }
1300         },
1301         "VlInfo": {
1302             "type": "object",
1303             "properties": {
1304                 "vlId": {
1305                     "type": "string"
1306                 },
1307                 "vlName": {
1308                     "type": "string"
1309                 },
1310                 "vlStatus": {
1311                     "type": "string"
1312                 }
1313             }
1314         },
1315         "VnfInfo": {
1316             "type": "object",
1317             "properties": {
1318                 "vnfInstId": {
1319                     "type": "string"
1320                 },
1321                 "vnfName": {
1322                     "type": "string"
1323                 },
1324                 "vnfStatus": {
1325                     "type": "string"
1326                 }
1327             }
1328         },
1329         "SfcInfo": {
1330             "type": "object",
1331             "properties": {
1332                 "sfcInstId": {
1333                     "type": "string"
1334                 },
1335                 "sfcName": {
1336                     "type": "string"
1337                 },
1338                 "sfcStatus": {
1339                     "type": "string"
1340                 }
1341             }
1342         },
1343         "DeleteVlResponse": {
1344             "type": "object",
1345             "properties": {
1346                 "result": {
1347                     "type": "integer",
1348                     "enum": [
1349                         0,
1350                         1
1351                     ]
1352                 },
1353                 "detail": {
1354                     "type": "string"
1355                 }
1356             }
1357         },
1358         "DeleteResponse": {
1359             "type": "object",
1360             "properties": {
1361                 "result": {
1362                     "type": "integer",
1363                     "enum": [
1364                         0,
1365                         1
1366                     ]
1367                 },
1368                 "detail": {
1369                     "type": "string"
1370                 }
1371             }
1372         },
1373         "ScaleNsRequest": {
1374             "type": "object",
1375             "properties": {
1376                 "scaleType":{
1377                     "type": "string"
1378                 },
1379                 "scaleNsByStepsData": {
1380                     "$ref": "#/definitions/ScaleNsByStepsData"
1381                 }
1382             }
1383         },
1384         "ScaleNsByStepsData": {
1385             "type": "object",
1386             "properties": {
1387                 "scalingDirection": {
1388                     "type": "string"
1389                 },
1390                 "aspectId": {
1391                     "type": "string"
1392                 },
1393                 "numberOfSteps": {
1394                     "type": "integer"
1395                 }
1396             }
1397         },
1398         "NsScaleResponse": {
1399             "type": "object",
1400             "properties": {
1401                 "jobID": {
1402                     "type": "string"
1403                 }
1404             }
1405         },
1406         "NsTerminateRequest": {
1407             "type": "object",
1408             "properties": {
1409                 "terminationType": {
1410                     "type": "string"
1411                 },
1412                 "gracefulTerminationTimeout": {
1413                     "type": "string"
1414                 }
1415             }
1416         },
1417         "NsTerminateResponse": {
1418             "type": "object",
1419             "properties": {
1420                 "jobID": {
1421                     "type": "string"
1422                 }
1423             }
1424         },
1425         "healVnfDataRequest": {
1426             "type": "object",
1427             "properties": {
1428                 "vnfInstanceId": {
1429                     "type": "string"
1430                 },
1431                 "cause": {
1432                     "type": "string"
1433                 },
1434                 "additionalParams": {
1435                     "type": "object",
1436                     "properties": {
1437                         "action": {
1438                             "type": "string"
1439                         },
1440                         "actionvminfo": {
1441                             "type": "object",
1442                             "properties": {
1443                                 "vmid": {
1444                                     "type": "string"
1445                                 },
1446                                 "vmname": {
1447                                     "type": "string"
1448                                 }
1449                             }
1450                         }
1451                     }
1452                 }
1453             }
1454         },
1455         "healVnfDataResponse": {
1456             "type": "object",
1457             "properties": {
1458                 "jobId": {
1459                     "type": "string"
1460                 }
1461             }
1462         },
1463         "TableInfo": {
1464             "type": "object",
1465             "properties": {
1466                 "count": {
1467                     "type": "string"
1468                 }
1469             }
1470         },
1471         "NsInfo": {
1472             "type": "object",
1473             "properties": {
1474                 "vnfInfoId": {
1475                     "type": "string"
1476                 },
1477                 "vlInfo": {
1478                     "type": "string"
1479                 },
1480                 "nsState": {
1481                     "type": "string"
1482                 },
1483                 "description": {
1484                     "type": "string"
1485                 },
1486                 "nsName": {
1487                     "type": "string"
1488                 },
1489                 "nsInstanceId": {
1490                     "type": "string"
1491                 },
1492                 "nsdId": {
1493                     "type": "string"
1494                 },
1495                 "vnffgInfo": {
1496                     "type": "string"
1497                 }
1498             }
1499         }
1500     }
1501 }