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