summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/vnfs/swagger.json
blob: 4c9c8dd2ddaf430de2ff8b9fcc9a2fa93bd06b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
{
    "swagger": "2.0",
    "info": {
        "version": "1.0.0",
        "title": "VNF Manager LCM Service rest API"
    },
    "basePath": "/gvnfmapi/lcm/v1",
    "tags": [
        {
            "name": "lcm Resource"
        }
    ],
    "paths": {
        "/vnf_instances": {
            "post": {
                "tags": [
                    "lcm Resource"
                ],
                "summary": "Create a VNF instance resource",
                "description": "Create a VNF instance resource",
                "operationId": "CreateVnf",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "in": "body",
                        "name": "body",
                        "description": "The request params to create a VNF instance",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/CreateVnfRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "A VNF Instance identifier was created successfully.",
                        "schema": {
                            "$ref": "#/definitions/CreateVnfResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized."
                    },
                    "500": {
                        "description": "Failed to process the request",
                        "schema": {
                            "$ref": "#/definitions/Error"
                        }
                    }
                }
            },
            "get": {
                "tags": [
                    "lcm Resource"
                ],
                "summary": "Query multiple VNF instances",
                "description": "Query multiple VNF instances",
                "operationId": "QueryMultipleVnf",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "The request has succeeded.",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/VnfInstanceInfo"
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized."
                    },
                    "500": {
                        "description": "Failed to process the request",
                        "schema": {
                            "$ref": "#/definitions/Error"
                        }
                    }
                }
            }
        },
        "/vnf_instances/{vnfInstanceId}": {
            "delete": {
                "tags": [
                    "lcm Resource"
                ],
                "summary": "Delete a VNF instance resource",
                "description": "Delete a VNF instance resource",
                "operationId": "DeleteVnf",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "in": "path",
                        "name": "vnfInstanceId",
                        "description": "Identifier of the VNF instance.",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "204": {
                        "description": "The VNF instance resource and the associated VNF identifier were deleted successfully."
                    },
                    "401": {
                        "description": "Unauthorized."
                    },
                    "404": {
                        "description": "The VNF instance resource does not exist."
                    },
                    "500": {
                        "description": "Failed to process the request",
                        "schema": {
                            "$ref": "#/definitions/Error"
                        }
                    }
                }
            },
            "get": {
                "tags": [
                    "lcm Resource"
                ],
                "summary": "Query a VNF instance",
                "description": "Query a VNF instance",
                "operationId": "QuerySingleVnfs",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "in": "path",
                        "name": "vnfInstanceId",
                        "description": "Identifier of the VNF instance.",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The request has succeeded.",
                        "schema": {
                            "$ref": "#/definitions/VnfInstanceInfo"
                        }
                    },
                    "401": {
                        "description": "Unauthorized."
                    },
                    "404": {
                        "description": "The VNF instance resource does not exist."
                    },
                    "500": {
                        "description": "Failed to process the request",
                        "schema": {
                            "$ref": "#/definitions/Error"
                        }
                    }
                }
            }
        },
        "/vnf_instances/{vnfInstanceId}/instantiate": {
            "post": {
                "tags": [
                    "lcm Resource"
                ],
                "summary": "Instantiate a VNF",
                "description": "Instantiate a VNF",
                "operationId": "InstantiateVnf",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "in": "path",
                        "name": "vnfInstanceId",
                        "description": "Identifier of the VNF instance.",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "in": "body",
                        "name": "body",
                        "description": "The request params to instantiate a VNF",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/InstantiateVnfRequest"
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The request is accepted for processing, but the processing has not been completed.",
                        "schema": {
                            "$ref": "#/definitions/VnfLcOpIdResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized."
                    },
                    "404": {
                        "description": "The VNF instance resource does not exist."
                    },
                    "500": {
                        "description": "Failed to process the request",
                        "schema": {
                            "$ref": "#/definitions/Error"
                        }
                    }
                }
            }
        },
        "/vnf_instances/{vnfInstanceId}/terminate": {
            "post": {
                "tags": [
                    "lcm Resource"
                ],
                "summary": "Terminate a VNF",
                "description": "Terminate a VNF",
                "operationId": "TerminateVnf",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "in": "path",
                        "name": "vnfInstanceId",
                        "description": "Identifier of the VNF instance.",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "in": "body",
                        "name": "body",
                        "description": "The request params to terminate a VNF",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/TerminateVnfRequest"
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "The request is accepted for processing, but the processing has not been completed.",
                        "schema": {
                            "$ref": "#/definitions/VnfLcOpIdResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized."
                    },
                    "404": {
                        "description": "The VNF instance resource does not exist."
                    },
                    "500": {
                        "description": "Failed to process the request",
                        "schema": {
                            "$ref": "#/definitions/Error"
                        }
                    }
                }
            }
        },
        "/vnf_lc_ops/{vnfLcOpId}&responseId={responseId}": {
            "get": {
                "tags": [
                    "lcm Resource"
                ],
                "summary": "Get VNF operational status",
                "description": "VNF operational status",
                "operationId": "QuerySingleVnfLcOp",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "name": "vnfLcOpId",
                        "in": "path",
                        "description": "Identifier of a VNF lifecycle operation occurrence",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "responseId",
                        "in": "path",
                        "description": "Response Identifier",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The request has succeeded.",
                        "schema": {
                            "$ref": "#/definitions/VnfLcOpOcc"
                        }
                    },
                    "401": {
                        "description": "Unauthorized."
                    },
                    "404": {
                        "description": "The VNF lifecycle operation occurrence does not exist."
                    },
                    "500": {
                        "description": "Failed to process the request",
                        "schema": {
                            "$ref": "#/definitions/Error"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "CreateVnfRequest": {
            "type": "object",
            "required": [
                "vnfdId",
                "vnfInstanceName"
            ],
            "properties": {
                "vnfdId": {
                    "type": "string",
                    "description": "Identifier that identifies the VNFD which defines the VNF instance to be created."
                },
                "vnfInstanceName": {
                    "type": "string",
                    "description": "Human-readable name of the VNF instance to be created."
                },
                "vnfInstanceDescription": {
                    "type": "string",
                    "description": "Human-readable description of the VNF instance to be created."
                }
            }
        },
        "CreateVnfResponse": {
            "type": "object",
            "required": [
                "vnfInstanceId"
            ],
            "properties": {
                "vnfInstanceId": {
                    "type": "string",
                    "description": "VNF instance identifier just created."
                }
            }
        },
        "InstantiateVnfRequest": {
            "type": "object",
            "required": [
                "flavourId"
            ],
            "properties": {
                "flavourId": {
                    "type": "string",
                    "description": "Identifier of the VNF deployment flavour to be instantiated."
                },
                "instantiationLevelId": {
                    "type": "string",
                    "description": "Identifier of the instantiation level of the deployment flavour to be instantiated. If not present, the default instantiation level as declared in the VNFD is instantiated."
                },
                "extVirtualLinks": {
                    "items": {
                        "$ref": "#/definitions/ExtVirtualLinkData"
                    },
                    "description": "Information about external VLs to connect the VNF to."
                },
                "localizationLanguage": {
                    "type": "string",
                    "description": "Localization language of the VNF to be instantiated can be declared in the VNFD. The value shall comply with the format defined in IETF RFC 5646 [6]. "
                },
                "additionalParams": {
                    "type": "object",
                    "description": "Additional input parameters for the instantiation process, specific to the VNF being instantiated."
                }
            }
        },
        "TerminateVnfRequest": {
            "type": "object",
            "required": [
                "terminationType"
            ],
            "properties": {
                "terminationType": {
                    "type": "string",
                    "description": "Indicates whether forceful or graceful termination is requested.",
                    "enum": [
                        "FORCEFUL",
                        "GRACEFUL"
                    ]
                },
                "gracefulTerminationTimeout": {
                    "type": "integer",
                    "format": "int32",
					"minimum": "1",
                    "description": "This attribute is only applicable in case of graceful termination. It defines the time to wait for the VNF to be taken out of service before shutting down the VNF and releasing the resources. The unit is seconds. If not given and the \"terminationType\" attribute is set to \"GRACEFUL\", it is expected that the VNFM waits for the successful taking out of service of the VNF, no matter how long it takes, before shutting down the VNF and releasing the resources."
                }
            }
        },
        "VnfLcOpIdResponse": {
            "type": "object",
            "description": "VNF lifecycle operation occurrence identifier response",
            "required": [
                "vnfLcOpId"
            ],
            "properties": {
                "vnfLcOpId": {
                    "type": "string",
                    "description": "Identifier of a VNF lifecycle operation occurrence"
                }
            }
        },
        "ExtVirtualLinkData": {
            "type": "object",
            "required": [
                "resourceId",
                "extCps"
            ],
            "properties": {
                "extVirtualLinkId": {
                    "type": "string",
                    "description": "Identifier of the VL instance."
                },
                "vim": {
                    "$ref": "#/definitions/VimInfo",
                    "description": "Information about the VIM that manages this resource. This attribute shall be supported and present if VNF-related resource management in direct mode is applicable."
                },
                "resourceId": {
                    "type": "string",
                    "description": "The network UUID of VIM"
                },
                "extCps": {
                    "type": "array",
                    "description": "External CPs of the VNF to be connected to this external VL.",
                    "items": {
                        "$ref": "#/definitions/VnfExtCpData"
                    }
                }
            }
        },
        "VimInfo": {
            "type": "object",
            "required": [
                "vimInfoId",
                "vimId",
                "interfaceInfo",
                "accessInfo",
                "interfaceEndpoint"
            ],
            "properties": {
                "vimInfoId": {
                    "type": "string",
                    "description": "The identifier of this VimInfo instance, for the purpose of referencing it from other information elements."
                },
                "vimId": {
                    "type": "string",
                    "description": "The identifier of the VIM."
                },
                "interfaceInfo": {
                    "$ref": "#/definitions/InterfaceInfo",
                    "description": "Information about the interface to the VIM, including VIM provider type, API version, and protocol type."
                },
                "accessInfo": {
                    "$ref": "#/definitions/AccessInfo",
                    "description": "Authentication credentials for accessing the VIM. Examples may include those to support different authentication schemes, e.g., OAuth, Token, etc. "
                },
                "interfaceEndpoint": {
                    "type": "string",
                    "description": "Information about the interface endpoint. An example is a URL."
                }
            }
        },
        "InterfaceInfo": {
            "type": "object",
            "required": [
                "vimType",
                "apiVersion",
                "protocolType"
            ],
            "properties": {
                "vimType": {
                    "type": "string",
                    "description": "The type of the VIM."
                },
                "apiVersion": {
                    "type": "string",
                    "description": "The Version of the api of the VIM."
                },
                "protocolType": {
                    "type": "string",
                    "enum": [
                        "http",
                        "https"
                    ]
                }
            }
        },
        "AccessInfo": {
            "type": "object",
            "required": [
                "tenant",
                "username",
                "password"
            ],
            "properties": {
                "tenant": {
                    "type": "string",
                    "description": "Tenant Name of tenant"
                },
                "username": {
                    "type": "string",
                    "description": "Username for login"
                },
                "password": {
                    "type": "string",
                    "description": "Password of login user"
                }
            }
        },
        "VnfExtCpData": {
            "type": "object",
            "required": [
                "cpdId"
            ],
            "properties": {
                "cpdId": {
                    "type": "string",
                    "description": "The identifier of the CPD in the VNFD."
                },
                "addresses": {
                    "type": "array",
                    "description": "List of (fixed) network addresses that need to be configured on the CP. This attribute shall be present if fixed addresses need to be configured.",
                    "items": {
                        "$ref": "#/definitions/NetworkAddress"
                    }
                },
                "numDynamicAddresses": {
                    "type": "integer",
                    "format": "int32",
                    "description": "Number of network addresses to be assigned dynamically. This attribute shall be present if dynamic addresses need to be configured."
                }
            }
        },
        "NetworkAddress": {
            "type": "object",
            "required": [
                "addressType"
            ],
            "properties": {
                "addressType": {
                    "type": "string",
                    "description": "Describes the type of the address to be assigned to the CP instantiated from the parent CPD.",
                    "enum": [
                        "MAC",
                        "IP"
                    ]
                },
                "l2AddressData": {
                    "type": "string",
                    "description": "Provides the information on the MAC addresses to be assigned to the CP(s) instantiated from the parent CPD. Shall be present when the addressType is MAC address."
                },
                "l3AddressData": {
                    "$ref": "#/definitions/L3AddressData",
                    "description": "Provides the information on the IP addresses to be assigned to the CP instantiated from the parent CPD. Shall be present when the addressType is IP address."
                }
            }
        },
        "L3AddressData": {
            "type": "object",
            "required": [
                "iPAddressType",
                "iPAddress"
            ],
            "properties": {
                "iPAddressType": {
                    "type": "string",
                    "description": "IP address type",
                    "enum": [
                        "IPv4",
                        "IPv6"
                    ]
                },
                "iPAddress": {
                    "type": "string",
                    "description": "IP address"
                }
            }
        },
        "VnfInstanceInfo": {
            "type": "object",
            "required": [
                "vnfInstanceId",
                "vnfInstanceName",
                "vnfInstanceDescription",
                "onboardedVnfPkgInfoId",
                "vnfdId",
                "vnfdVersion",
                "vnfSoftwareVersion",
                "vnfProvider",
                "vnfProductName",
                "instantiationState"
            ],
            "properties": {
                "vnfInstanceId": {
                    "type": "string",
                    "description": "VNF instance identifier."
                },
                "vnfInstanceName": {
                    "type": "string",
                    "description": "VNF instance name."
                },
                "vnfInstanceDescription": {
                    "type": "string",
                    "description": "Human-readable description of the VNF instance."
                },
                "onboardedVnfPkgInfoId": {
                    "type": "string",
                    "description": "Identifier of information held by the NFVO about the specific VNF Package on which the VNF is based. This identifier was allocated by the NFVO."
                },
                "vnfdId": {
                    "type": "string",
                    "description": "Identifier of the VNFD on which the VNF instance is based."
                },
                "vnfdVersion": {
                    "type": "string",
                    "description": "Identifies the version of the VNFD. The value is copied from the VNFD."
                },
                "vnfSoftwareVersion": {
                    "type": "string",
                    "description": "Software version of the VNF. The value is copied from the VNFD."
                },
                "vnfProvider": {
                    "type": "string",
                    "description": "Name of the person or company providing the VNF. The value is copied from the VNFD."
                },
                "vnfProductName": {
                    "type": "string",
                    "description": "Name to identify the VNF Product. Such as VNF Application Type. The value is copied from the VNFD."
                },
                "instantiationState": {
                    "type": "string",
                    "description": "The instantiation state of the VNF.",
                    "enum": [
                        "NOT_INSTANTIATED",
                        "INSTANTIATED"
                    ]
                },
                "vnfConfigurableProperties": {
                    "type": "object",
                    "description": "Current values of the configurable properties of the VNF instance. Configurable properties as declared in the VNFD."
                },
                "metadata": {
                    "type": "object",
                    "description": "Additional metadata describing the VNF instance. This attribute can be modified with the Modify VNF information operation."
                },
                "extensions": {
                    "type": "object",
                    "description": "VNF-specific attributes. This attribute can be modified with the Modify VNF information operation."
                },
                "instantiatedVnfInfo": {
                    "$ref": "#/definitions/InstantiatedVnfInfo",
                    "description": "Information specific to an instantiated VNF instance. This attribute shall be present if the instantiateState attribute value is INSTANTIATED."
                }
            }
        },
        "InstantiatedVnfInfo": {
            "type": "object",
            "required": [
                "flavourId",
                "vnfState"
            ],
            "properties": {
                "flavourId": {
                    "type": "string",
                    "description": "Identifier of the VNF deployment flavour to be instantiated."
                },
                "vnfState": {
                    "type": "string",
                    "description": "State of the VNF instance",
                    "enum": [
                        "STARTED",
                        "STOPPED"
                    ]
                },
                "scaleStatus": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/ScaleInfo"
                    },
                    "description": "Scale status of the VNF, one entry per aspect. Represents for every scaling aspect how \"big\" the VNF has been scaled w.r.t. that aspect. This attribute shall be present if the VNF supports scaling."
                },
                "extCpInfo": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/CpInfo"
                    },
                    "description": "Information about the external CPs exposed by the VNF instance."
                },
                "extVirtualLink": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/ExtVirtualLinkInfo"
                    },
                    "description": "Information about the external VLs the VNF instance is connected to."
                },
                "monitoringParameters": {
                    "type": "object",
                    "description": "Active monitoring parameters."
                },
                "localizationLanguage": {
                    "type": "string",
                    "description": "Localization language of the VNF to be instantiated."
                },
                "vimInfo": {
                    "type": "array",
                    "description": "Information about VIM(s) managing resources for the VNF instance. This attribute shall be supported and present if VNF-related resource management in direct mode is applicable.",
                    "items": {
                        "$ref": "#/definitions/VimInfo"
                    }
                },
                "vnfcResourceInfo": {
                    "type": "array",
                    "description": "Information about the virtualised compute and storage resource(s) used by the VNFCs of the VNF instance. This attribute shall be supported and present if VNF-related resource management in direct mode is applicable.",
                    "items": {
                        "$ref": "#/definitions/VnfcResourceInfo"
                    }
                },
                "virtualLinkResourceInfo": {
                    "type": "array",
                    "description": "Information about the virtualised network resource(s) used by the VLs of the VNF instance. This attribute shall be supported and present if VNF-related resource management in direct mode is applicable. ",
                    "items": {
                        "$ref": "#/definitions/VirtualLinkResourceInfo"
                    }
                },
                "virtualStorageResourceInfo": {
                    "type": "array",
                    "description": "Information about the virtualised storage resource(s) used as storage for the VNF instance. This attribute shall be supported and present if VNF-related resource management in direct mode is applicable.",
                    "items": {
                        "$ref": "#/definitions/VirtualStorageResourceInfo"
                    }
                }
            }
        },
        "ScaleInfo": {
            "type": "object",
            "required": [
                "aspectId",
                "scaleLevel"
            ],
            "properties": {
                "aspectId": {
                    "type": "string",
                    "description": "Identifier of the scaling aspect."
                },
                "scaleLevel": {
                    "type": "integer",
                    "format": "int32",
                    "description": "Indicates the scale level. The minimum value shall be 0 and the maximum value shall be <= maxScaleLevel as described in the VNFD."
                }
            }
        },
        "CpInfo": {
            "type": "object",
            "required": [
                "cpInstanceId",
                "cpdId"
            ],
            "properties": {
                "cpInstanceId": {
                    "type": "string",
                    "description": "Identifier of the CP instance."
                },
                "cpdId": {
                    "type": "string",
                    "description": "Identifier of the CPD, in the VNFD."
                },
                "addresses": {
                    "type": "array",
                    "description": "List of network addresses that have been configured on the CP.",
                    "items": {
                        "$ref": "#/definitions/NetworkAddress"
                    }
                }
            }
        },
        "ExtVirtualLinkInfo": {
            "type": "object",
            "required": [
                "extVirtualLinkId",
                "resourceHandle"
            ],
            "properties": {
                "extVirtualLinkId": {
                    "type": "string",
                    "description": "Identifier of the external VL."
                },
                "resourceHandle": {
                    "$ref": "#/definitions/ResourceHandle",
                    "description": "Identifier of the resource realizing this VL."
                },
                "linkPorts": {
                    "type": "array",
                    "description": "Link ports of this VL.",
                    "items": {
                        "$ref": "#/definitions/VnfLinkPort"
                    }
                }
            }
        },
        "ResourceHandle": {
            "type": "object",
            "required": [
                "resourceId"
            ],
            "properties": {
                "vimId": {
                    "type": "string",
                    "description": "Identifier of the VimInfo information element defining the VIM who manages the resource. This attribute shall be present if VNF-related resource management in direct mode is applicable. The value refers to a vimInfo item in the VnfInstance."
                },
                "resourceProviderId": {
                    "type": "string",
                    "description": "Identifier of the entity responsible for the management of the resource. This attribute shall be present when VNF-related resource management in indirect mode is applicable. "
                },
                "resourceId": {
                    "type": "string",
                    "description": "Identifier of the resource in the scope of the VIM or the resource provider."
                }
            }
        },
        "VnfcResourceInfo": {
            "type": "object",
            "required": [
                "vnfcInstanceId",
                "vduId",
                "computeResource",
                "storageResourceIds"
            ],
            "properties": {
                "vnfcInstanceId": {
                    "type": "string",
                    "description": "Identifier of this VNFC instance."
                },
                "vduId": {
                    "type": "string",
                    "description": "Reference to the applicable VDU information element in the VNFD."
                },
                "computeResource": {
                    "$ref": "#/definitions/ResourceHandle",
                    "description": "Reference to the VirtualCompute resource."
                },
                "storageResourceIds": {
                    "type": "array",
                    "description": "Reference(s) to the VirtualStorage resource(s).",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "VirtualStorageResourceInfo": {
            "type": "object",
            "required": [
                "virtualStorageInstanceId",
                "virtualStorageDescId",
                "storageResource"
            ],
            "properties": {
                "virtualStorageInstanceId": {
                    "type": "string",
                    "description": "Identifier of this virtual storage resource instance."
                },
                "virtualStorageDescId": {
                    "type": "string",
                    "description": "Identifier of the VirtualStorageDesc in the VNFD."
                },
                "storageResource": {
                    "$ref": "#/definitions/ResourceHandle",
                    "description": "Reference to the VirtualStorage resource."
                }
            }
        },
        "VirtualLinkResourceInfo": {
            "type": "object",
            "required": [
                "virtualLinkInstanceId",
                "virtualLinkDescId",
                "networkResource"
            ],
            "properties": {
                "virtualLinkInstanceId": {
                    "type": "string",
                    "description": "Identifier of this VL instance."
                },
                "virtualLinkDescId": {
                    "type": "string",
                    "description": "Identifier of the Virtual Link Descriptor (VLD) in the VNFD."
                },
                "networkResource": {
                    "$ref": "#/definitions/ResourceHandle",
                    "description": "Reference to the VirtualNetwork resource."
                }
            }
        },
        "VnfLcOpOcc": {
            "type": "object",
            "description": "VNF lifecycle operation response",
            "required": [
                "vnfLcOpId",
                "vnfInstanceId",
                "lcmOperationType",
                "startTime",
                "responseDescriptor"
            ],
            "properties": {
                "vnfLcOpId": {
                    "type": "string",
                    "description": "Identifier of a VNF lifecycle operation occurrence"
                },
                "vnfInstanceId": {
                    "type": "string",
                    "description": "Identifier of the VNF instance to which the operation applies"
                },
                "lcmOperationType": {
                    "type": "string",
                    "description": "Type of the actual LCM operation represented by this lcm operation occurrence.",
                    "enum": [
                        "INSTANTIATE",
                        "SCALE",
                        "SCALE_TO_LEVEL",
                        "CHANGE_FLAVOUR",
                        "TERMINATE",
                        "HEAL",
                        "OPERATE"
                    ]
                },
                "startTime": {
                    "type": "string",
                    "description": "Date-time of the start of the operation. Representation: String formatted according to RFC 3339 [13]."
                },
                "responseDescriptor": {
                    "type": "#/definitions/VnfLcOpResponseDescriptor",
                    "description": "Including:responseId,progress,statusstatusDescription,errorCode,responseHistoryList"
                }
            }
        },
        "VnfLcOpResponseDescriptor": {
            "type": "object",
            "description": "VNF lifecycle operation response",
            "required": [
                "responseId",
                "progress",
                "lcmOperationStatus",
                "statusDescription",
                "responseHistoryList"
            ],
            "properties": {
                "responseId": {
                    "type": "integer",
                    "description": "Response Identifier."
                },
                "progress": {
                    "type": "integer",
                    "description": "progress (1-100)."
                },
                "lcmOperationStatus": {
                    "type": "string",
                    "description": "Vnf lifecycle operation Status.",
                    "enum": [
                        "STARTING",
                        "PROCESSING",
                        "COMPLETED",
                        "FAILED"
                    ]
                },
                "statusDescription": {
                    "type": "string",
                    "description": "Status Description of a VNF lifecycle operation occurrence"
                },
                "errorCode": {
                    "type": "integer",
                    "description": "Error code."
                },
                "responseHistoryList": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/VnfLcOpDetail"
                    }
                }
            }
        },
        "VnfLcOpDetail": {
            "type": "object",
            "description": "The Detail of VNF lifecycle operation",
            "required": [
                "responseId",
                "progress",
                "lcmOperationStatus",
                "statusDescription"
            ],
            "properties": {
                "responseId": {
                    "type": "integer",
                    "description": "Response Identifier."
                },
                "progress": {
                    "type": "integer",
                    "description": "progress (1-100)."
                },
                "lcmOperationStatus": {
                    "type": "string",
                    "description": "Vnf lifecycle operation Status.",
                    "enum": [
                        "STARTING",
                        "PROCESSING",
                        "COMPLETED",
                        "FAILED"
                    ]
                },
                "statusDescription": {
                    "type": "string",
                    "description": "Status Description of a VNF lifecycle operation occurrence"
                },
                "errorCode": {
                    "type": "integer",
                    "description": "Error code."
                }
            }
        },
        "Error": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer",
                    "format": "int32"
                },
                "message": {
                    "type": "string"
                }
            }
        }
    }
}