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