Improve VF-C documnent
[vfc/nfvo/lcm.git] / docs / platform / APIs / VNFMDriver_API / VNFM_Driver_API.rst
1 .. contents::\r
2    :depth: 3\r
3 ..\r
4 \r
5 **VNFM Driver API**\r
6 **V0.1**\r
7 \r
8 **1.  Scope**\r
9 ==============\r
10 The scope of the present document is to describe the VNFM driver integrated related API specification.\r
11 Some content has been updated, about the API Swagger definition, you can find here 'VNFM driver development related API<https://gerrit.onap.org/r/gitweb?p=vfc/nfvo/lcm.git;a=blob;f=lcm/swagger/vfc.vnfdriver.swagger.json;h=fc35adbdc75df1307ca2c43a11bfb472da2a27c6;hb=HEAD>'\r
12 \r
13 \r
14 **2.  Terms, Definitions and Abbreviations**\r
15 =============================================\r
16 \r
17 For the purposes of the present document, the following abbreviations apply:\r
18 \r
19 +-------------+-----------------------------------------------+\r
20 |Abbreviation |                                               |\r
21 +-------------+-----------------------------------------------+\r
22 |NFVO         |Network Functions Virtualization Orchestrator  |\r
23 +-------------+-----------------------------------------------+\r
24 |VNFM         |Virtual Network Function Manager               |\r
25 +-------------+-----------------------------------------------+\r
26 |VNF          |Virtual Network Function                       |\r
27 +-------------+-----------------------------------------------+\r
28 \r
29 Table 2-1 abbreviations\r
30 \r
31 \r
32 **3.  Interfaces provided by VNFM Driver**\r
33 ===========================================\r
34 \r
35 Interfaces use RESTful API and the format is as follows:\r
36 http(s)://[hostname][:port]/api/{vnfmtype}/v1/{vnfm_id}/[……]\r
37 R1 vnfmtype:\r
38 zte-vnfm\r
39 hw-vnfm\r
40 juju\r
41 \r
42 **3.1  Instantiate VNF**\r
43 ------------------------\r
44 \r
45 +--------------+--------------------------------------------------------------+\r
46 |If Definition | Description                                                  |\r
47 +==============+==============================================================+\r
48 |URI           | http(s)://[hostname][:port]/api/{vnfmtype}/v1/{vnfmid}/vnfs  |\r
49 +--------------+--------------------------------------------------------------+\r
50 |Operation     | POST                                                         |\r
51 +--------------+--------------------------------------------------------------+\r
52 |Direction     | NSLCM->VNFMDriver                                            |\r
53 +--------------+--------------------------------------------------------------+\r
54 \r
55 **3.1.1  Request**\r
56 \r
57 +-----------------------+------------+-------------+----------+------------------------------+\r
58 | Parameter             | Qualifier  | Cardinality | Content  | Description                  |\r
59 +=======================+============+=============+==========+==============================+\r
60 | vnfInstanceName       | M          | 1           | String   | Human-readable name  of the  |\r
61 |                       |            |             |          | VNF instance to be created.  |\r
62 +-----------------------+------------+-------------+----------+------------------------------+\r
63 | vnfPackageId          | M          | 1           | String   | VNF packageId                |\r
64 +-----------------------+------------+-------------+----------+------------------------------+\r
65 | vnfDescriptorId       | M          | 1           | String   | Information  sufficient  to  |\r
66 |                       |            |             |          | identify the VNF Descriptor  |\r
67 |                       |            |             |          | which  defines  the  VNF  to |\r
68 |                       |            |             |          | be created.                  |\r
69 +-----------------------+------------+-------------+----------+------------------------------+\r
70 | flavourId             | M          | 0..1        | String   | Reserved                     |\r
71 +-----------------------+------------+-------------+----------+------------------------------+\r
72 |vnfInstanceDescription | M          | 0..1        | String   | Human-readable               |\r
73 |                       |            |             |          | description  of  the  VNF    |\r
74 |                       |            |             |          | instance to be created.      |\r
75 +-----------------------+------------+-------------+----------+------------------------------+\r
76 | extVirtualLink        | M          | 0..N        | Ext      | References  to  external     |\r
77 |                       |            |             | Virtual  | virtual links to connect the |\r
78 |                       |            |             | LinkData | VNF to.                      |\r
79 +-----------------------+------------+-------------+----------+------------------------------+\r
80 | additionalParam       | M          | 0..N        | Object   |Additional  parameters        |\r
81 |                       |            |             |          |passed  by  the  NFVO  as     |\r
82 |                       |            |             |          |input  to  the  instantiation |\r
83 |                       |            |             |          |process,  specific  to  the   |\r
84 |                       |            |             |          |VNF being instantiated.       |\r
85 +-----------------------+------------+-------------+----------+------------------------------+\r
86 \r
87 **ExtVirtualLinkData:**\r
88 \r
89 +--------------+------------+-------------+----------+----------------------------------------+\r
90 | Attribute    | Qualifier  | Cardinality | Content  | Description                            |\r
91 +==============+============+=============+==========+========================================+\r
92 | vlInstanceId | M          | 0..1        | String   | Identifier of the VL instance          |\r
93 +--------------+------------+-------------+----------+----------------------------------------+\r
94 | vim          | CM         | 0..1        | VimInfo  | Information about the VIM that         |\r
95 |              |            |             |          | manages this resource.                 |\r
96 |              |            |             |          | This attribute shall be supported      |\r
97 |              |            |             |          | and present if VNF-related resource    |\r
98 |              |            |             |          | management in direct applicable.       |\r
99 +--------------+------------+-------------+----------+----------------------------------------+\r
100 | networkId    | M          | 1           | String   | The network UUID of VIM                |\r
101 +--------------+------------+-------------+----------+----------------------------------------+\r
102 | cpdId        | M          | 0..1        | String   | Identifier of the external CPD in VNFD |\r
103 +--------------+------------+-------------+----------+----------------------------------------+\r
104 \r
105 **VimInfo:**\r
106 \r
107 +------------------+------------+-------------+--------------+------------------------------------------------+\r
108 | Attribute        | Qualifier  | Cardinality | Content      | Description                                    |\r
109 +==================+============+=============+==============+================================================+\r
110 | vimInfoId        | M          | 1           | Identifier   | The identifier of this VimInfo instance,       |\r
111 |                  |            |             |              | for the purpose of referencing it from         |\r
112 |                  |            |             |              | other information elements.                    |\r
113 +------------------+------------+-------------+--------------+------------------------------------------------+\r
114 | vimId            | M          | 1           | Identifier   | The identifier of the VIM.                     |\r
115 +------------------+------------+-------------+--------------+------------------------------------------------+\r
116 | interfaceInfo    | M          | 0..N        | KeyValuePair | Information about the interface to the         |\r
117 |                  |            |             |              | VIM, including VIM provider type, API          |\r
118 |                  |            |             |              | version, and protocol type.                    |\r
119 +------------------+------------+-------------+--------------+------------------------------------------------+\r
120 | accessInfo       | M          | 0..N        | KeyValuePair | Authentication credentials for accessing the   |\r
121 |                  |            |             |              | VIM. Examples may include those to support     |\r
122 |                  |            |             |              | different authentication schemes, e.g., OAuth, |\r
123 |                  |            |             |              | Token, etc.                                    |\r
124 +------------------+------------+-------------+--------------+------------------------------------------------+\r
125 |interfaceEndpoint | M          | 1           | String       | Information about the interface endpoint. An   |\r
126 |                  |            |             |              | example is a URL.                              |\r
127 +------------------+------------+-------------+--------------+------------------------------------------------+\r
128 \r
129 \r
130 **interfaceInfo:**\r
131 \r
132 +--------------+------------+-------------+----------+-------------------------------+\r
133 | Attribute    | Qualifier  | Cardinality | Content  | Description                   |\r
134 +==============+============+=============+==========+===============================+\r
135 | vimType      | M          | 1           | String   | Type of the VIM               |\r
136 +--------------+------------+-------------+----------+-------------------------------+\r
137 | apiVersion   | M          | 1           | String   |                               |\r
138 +--------------+------------+-------------+----------+-------------------------------+\r
139 | protocolType | M          | 1           | String   | http, https                   |\r
140 +--------------+------------+-------------+----------+-------------------------------+\r
141 \r
142 \r
143 **accessInfo:**\r
144 \r
145 +--------------+------------+-------------+----------+-------------------------------+\r
146 | Attribute    | Qualifier  | Cardinality | Content  | Description                   |\r
147 +==============+============+=============+==========+===============================+\r
148 | tenant       | M          | 1           | String   | Tenant Name of tenant         |\r
149 +--------------+------------+-------------+----------+-------------------------------+\r
150 | username     | M          | 1           | String   | Username for login            |\r
151 +--------------+------------+-------------+----------+-------------------------------+\r
152 | password     | M          | 1           | String   | Password of login user        |\r
153 +--------------+------------+-------------+----------+-------------------------------+\r
154 \r
155 {\r
156   "vnfInstanceName":"vFW",\r
157   "vnfPackageId":"1",\r
158   "vnfDescriptorId":"1",\r
159   "vnfInstanceDescription":"vFW_1",\r
160   "extVirtualLinkLink":[ \r
161 \r
162     {\r
163       "vlInstanceId":"1",\r
164       "resourceId":"1246" ,\r
165       " cpdId":"11111",\r
166       "vim":\r
167       {\r
168 \r
169         "vimInfoId":"1",\r
170         "vimid":"1", \r
171         "interfaceInfo":{\r
172 \r
173           "vimType":"openstack",\r
174           "apiVersion":"v2",\r
175           "protocolType":"http"\r
176 \r
177         }\r
178         "accessInfo":{\r
179 \r
180           "tenant":"tenant_vCPE",\r
181           "username":"vCPE",\r
182           "password":"vCPE_321"\r
183 \r
184         }\r
185         "interfaceEndpoint":"http://10.43.21.105:80/"\r
186 \r
187       }\r
188 \r
189     }\r
190 \r
191   ]\r
192   "additionalParam":{\r
193 \r
194   ……\r
195   }\r
196 \r
197 }\r
198 \r
199 \r
200 **3.1.2  Response**\r
201 \r
202 +-------------------+------------+-------------+-----------+-------------------------------+\r
203 | Parameter         | Qualifier  | Cardinality | Content   | Description                   |\r
204 +===================+============+=============+===========+===============================+\r
205 | jobId             | M          | 1           | Identifier| Tenant Name of tenant         |\r
206 |                   |            |             |           | operation occurrence.         |\r
207 |                   |            |             |           |                               |\r
208 |                   |            |             |           | [lifecycleOperationOccurren   |\r
209 |                   |            |             |           |  ceId]                        |\r
210 +-------------------+------------+-------------+-----------+-------------------------------+\r
211 | vnfInstanceId     | M          | 1           | String    | VNF instance identifier.      |\r
212 +-------------------+------------+-------------+-----------+-------------------------------+\r
213 \r
214 {\r
215   "jobId":"1",\r
216   "vnfInstanceId":"1"\r
217 \r
218 }\r
219 \r
220 **3.2  Terminate VNF**\r
221 -----------------------\r
222 \r
223 +---------------+------------------------------------------------------------------+\r
224 | IF Definition |  Description                                                     |\r
225 +===============+==================================================================+\r
226 | URI           | http(s)://[hostname][:port]/api/{vnfmtype}/v1/{vnfmid}/vnfs/     |\r
227 |               | {vnfInstanceId}/terminate                                        |\r
228 +---------------+------------------------------------------------------------------+\r
229 | Operation     |  POST                                                            |\r
230 +---------------+------------------------------------------------------------------+\r
231 | Direction     |  NSLCM->VNFMDriver                                               |\r
232 +---------------+------------------------------------------------------------------+\r
233 \r
234 **3.2.1  Request**\r
235 \r
236 +-----------------+------------+-------------+-----------+----------------------------------+\r
237 | Parameter       | Qualifier  | Cardinality | Content   | Description                      |\r
238 +=================+============+=============+===========+==================================+\r
239 | terminationType | M          | 1           | Enum      | Signals whether forceful or      |\r
240 |                 |            |             |           | graceful termination  is         |\r
241 |                 |            |             |           | requested.                       |\r
242 |                 |            |             |           | In case of forceful termination, |\r
243 |                 |            |             |           | the  VNF  is  shut  down         |\r
244 |                 |            |             |           | immediately, and resources are   |\r
245 |                 |            |             |           | released. Note that if the VNF   |\r
246 |                 |            |             |           | is still  in service,  this may  |\r
247 |                 |            |             |           | adversely  impact  network       |\r
248 |                 |            |             |           | service, and therefore, operator |\r
249 |                 |            |             |           | policies apply to determine if   |\r
250 |                 |            |             |           | forceful termination is allowed  |\r
251 |                 |            |             |           | in the particular situation.     |\r
252 |                 |            |             |           |                                  |\r
253 |                 |            |             |           | In case of graceful termination, |\r
254 |                 |            |             |           | the VNFM first arranges to take  |\r
255 |                 |            |             |           | the  VNF  out  of  service  (by  |\r
256 |                 |            |             |           | means  out  of  scope  of  the   |\r
257 |                 |            |             |           | present  specification,  e.g.    |\r
258 |                 |            |             |           | involving interaction with EM,   |\r
259 |                 |            |             |           | if required).  Once  this  was   |\r
260 |                 |            |             |           | successful,  or after a timeout, |\r
261 |                 |            |             |           | the  VNFM  shuts  down the  VNF  |\r
262 |                 |            |             |           | and releases the resources.      |\r
263 +-----------------+------------+-------------+-----------+----------------------------------+\r
264 | graceful        | M          | 0..1        | Time      | The time interval (second) to    |\r
265 | Termination     |            |             | Duration  | wait for the VNF to be taken out |\r
266 | Timeout         |            |             |           | of  service  during  graceful    |\r
267 |                 |            |             |           | termination,  before  shutting   |\r
268 |                 |            |             |           | down the VNF and releasing the   |\r
269 |                 |            |             |           | resources.                       |\r
270 |                 |            |             |           | If not given, it is expected     |\r
271 |                 |            |             |           | that the  VNFM  waits  for  the  |\r
272 |                 |            |             |           | successful taking out of service |\r
273 |                 |            |             |           | of the VNF, no matter  how long  |\r
274 |                 |            |             |           | it  takes, before shutting down  |\r
275 |                 |            |             |           | the  VNF  and  releasing  the    |\r
276 |                 |            |             |           | resources (see note).            |\r
277 |                 |            |             |           |                                  |\r
278 |                 |            |             |           | Minimum timeout or timeout       |\r
279 |                 |            |             |           | range are specified by the VNF   |\r
280 |                 |            |             |           | Provider  (e.g. defined in the   |\r
281 |                 |            |             |           | VNFD or communicated  by         |\r
282 |                 |            |             |           | other means).                    |\r
283 |                 |            |             |           |                                  |\r
284 |                 |            |             |           | Not relevant in case of forceful |\r
285 |                 |            |             |           | termination.                     |\r
286 +-----------------+------------+-------------+-----------+----------------------------------+\r
287 \r
288 {\r
289   "vnfInstanceId":"1",\r
290   "terminationType":"graceful",\r
291   "gracefulTerminationTimeout":"60"\r
292 \r
293 }\r
294 \r
295 **3.2.2  Response**\r
296 \r
297 +--------------+------------+-------------+-----------+--------------------------------+\r
298 | Parameter    | Qualifier  | Cardinality | Content   | Description                    |\r
299 +==============+============+=============+===========+================================+\r
300 | jobId        | M          | 1           | Identifier| Identifier of the VNF lifecycle|\r
301 |              |            |             |           | operation occurrence.          |\r
302 |              |            |             |           |                                |\r
303 |              |            |             |           | [lifecycleOperationOccurren    |\r
304 |              |            |             |           |  ceId]                         |\r
305 +--------------+------------+-------------+-----------+--------------------------------+\r
306 \r
307 {\r
308   "jobId":"1"\r
309 \r
310 }\r
311 \r
312 \r
313 **3.3  Query VNF**\r
314 ------------------\r
315 \r
316 +---------------+------------------------------------------------------------------+\r
317 | IF Definition |  Description                                                     |\r
318 +===============+==================================================================+\r
319 | URI           | http(s)://[hostname][:port]/api/{vnfmtype}/v1/{vnfmid}/vnfs/     |\r
320 |               | {vnfInstanceId}                                                  |\r
321 +---------------+------------------------------------------------------------------+\r
322 | Operation     |  GET                                                             |\r
323 +---------------+------------------------------------------------------------------+\r
324 | Direction     |  NSLCM->VNFMDriver                                               |\r
325 +---------------+------------------------------------------------------------------+\r
326 \r
327 **3.3.1  Request**\r
328 \r
329 VNF filter: vnfInstanceId via url [R1]\r
330 \r
331 **3.3.2  Response**\r
332 \r
333 +--------------+------------+-------------+-----------+---------------------------------+\r
334 | Parameter    | Qualifier  | Cardinality | Content   | Description                     |\r
335 +==============+============+=============+===========+=================================+\r
336 | vnfInfo      | M          | o..N        | vnfInfo   | The information items about the |\r
337 |              |            |             |           | selected VNF instance(s) that   |\r
338 |              |            |             |           | are returned.                   |\r
339 |              |            |             |           |                                 |\r
340 |              |            |             |           | If attributeSelector is present,|\r
341 |              |            |             |           | only the  attributes  listed in |\r
342 |              |            |             |           | attributeSelector will be       |\r
343 |              |            |             |           | returned for the selected       |\r
344 |              |            |             |           | VNF instance(s).                |\r
345 +--------------+------------+-------------+-----------+---------------------------------+\r
346 \r
347 **VnfInfo Table**\r
348 \r
349 +-----------------+------------+-------------+----------+---------------------------------+\r
350 | Attribute       | Qualifier  | Cardinality | Content  | Description                     |\r
351 +=================+============+=============+==========+=================================+\r
352 | vnfInstanceId   | M          | 1           | String   | VNF instance identifier.        |\r
353 +-----------------+------------+-------------+----------+---------------------------------+\r
354 | vnfInstanceName | M          | o..1        | String   | VNF instance name.              |\r
355 +-----------------+------------+-------------+----------+---------------------------------+\r
356 | vnfInstance     | M          | o..1        | String   | Human-readable description of   |\r
357 | Description     |            |             |          | the VNF instance.               |\r
358 +-----------------+------------+-------------+----------+---------------------------------+\r
359 | vnfdId          | M          | 1           | String   | Identifier of the VNFD on which |\r
360 |                 |            |             |          | the VNF instance is based.      |\r
361 +-----------------+------------+-------------+----------+---------------------------------+\r
362 | vnfPackageId    | M          | o..1        | String   | Identifier of the VNF Package   |\r
363 |                 |            |             |          | used to manage the lifecycle of |\r
364 |                 |            |             |          | the VNF instance. See note.     |\r
365 |                 |            |             |          | Shall be present for an         |\r
366 |                 |            |             |          | instantiated VNF instance.      |\r
367 +-----------------+------------+-------------+----------+---------------------------------+\r
368 | version         | M          | 1           | String   | Version of the VNF.             |\r
369 +-----------------+------------+-------------+----------+---------------------------------+\r
370 | vnfProvider     | M          | 1           | String   | Name of the person or company   |\r
371 |                 |            |             |          | providing the VNF.              |\r
372 +-----------------+------------+-------------+----------+---------------------------------+\r
373 | vnfType         | M          | 1           | String   | VNF Application Type            |\r
374 +-----------------+------------+-------------+----------+---------------------------------+\r
375 | vnfStatus       | M          | 1           | Enum     | The instantiation state of the  |\r
376 |                 |            |             |          | VNF. Possible values:           |\r
377 |                 |            |             |          | INACTIVE (Vnf is terminated or  |\r
378 |                 |            |             |          | not instantiated ),             |\r
379 |                 |            |             |          | ACTIVE (Vnf is instantiated).   |\r
380 |                 |            |             |          | [instantiationState]            |\r
381 +-----------------+------------+-------------+----------+---------------------------------+\r
382 \r
383 {\r
384   "vnfInfo":\r
385   {\r
386 \r
387     "nfInstanceId":"1",\r
388     "vnfInstanceName":"vFW",\r
389     "vnfInstanceDescription":"vFW in Nanjing TIC Edge",\r
390     "vnfdId":"1",\r
391     "vnfPackageId":"1",\r
392     "version":"V1.1",\r
393     "vnfProvider":"ZTE",\r
394     "vnfType":"vFW",\r
395     "vnfStatus":"  ACTIVE",\r
396 \r
397   }\r
398 \r
399 }\r
400 \r
401 **3.4  Get operation status**\r
402 -----------------------------\r
403 \r
404 +---------------+------------------------------------------------------------------+\r
405 | IF Definition |  Description                                                     |\r
406 +===============+==================================================================+\r
407 | URI           | http(s)://[hostname][:port]/api/{vnfmtype}                       |\r
408 |               | /v1/{vnfmid}/jobs/{jobid}&responseId={ responseId }              |\r
409 +---------------+------------------------------------------------------------------+\r
410 | Operation     |  GET                                                             |\r
411 +---------------+------------------------------------------------------------------+\r
412 | Direction     |  NSLCM->VNFMDriver                                               |\r
413 +---------------+------------------------------------------------------------------+\r
414 \r
415 **3.4.1  Request**\r
416 \r
417   None\r
418 \r
419 **3.4.2  Response**\r
420 \r
421 +--------------------+------------+-------------+-------------+---------------------------------+\r
422 | Parameter          | Qualifier  | Cardinality | Content     | Description                     |\r
423 +====================+============+=============+=============+=================================+\r
424 | jobId              | M          | 1           | String      | Job ID                          |\r
425 +--------------------+------------+-------------+-------------+---------------------------------+\r
426 | responseDescriptor | M          | 1           | -           | Including:                      |\r
427 |                    |            |             |             | vnfStatus, statusDescription,   |\r
428 |                    |            |             |             | errorCode,progress,             |\r
429 |                    |            |             |             | responseHistoryList, responseId |\r
430 +--------------------+------------+-------------+-------------+---------------------------------+\r
431 | status             | M          | 1           | String      | JOB status                      |\r
432 |                    |            |             |             | started                         |\r
433 |                    |            |             |             | processing                      |\r
434 |                    |            |             |             | finished                        |\r
435 |                    |            |             |             | error                           |\r
436 +--------------------+------------+-------------+-------------+---------------------------------+\r
437 | progress           | M          | 1           | Integer     | progress (1-100)                |\r
438 +--------------------+------------+-------------+-------------+---------------------------------+\r
439 | statusDescription  | M          | 1           | String      | Progress Description            |\r
440 +--------------------+------------+-------------+-------------+---------------------------------+\r
441 | errorCode          | M          | 1           | Integer     | Errorcode                       |\r
442 +--------------------+------------+-------------+-------------+---------------------------------+\r
443 | responseId         | M          | 1           | Integer     | Response Identifier             |\r
444 +--------------------+------------+-------------+-------------+---------------------------------+\r
445 | response           | M          | o..N        | ArrayList<> | History  Response  Messages     |\r
446 | HistoryList        |            |             |             | from  the  requested            |\r
447 |                    |            |             |             | responseId to lastest one.      |\r
448 |                    |            |             |             | Including fields:               |\r
449 |                    |            |             |             | vnfStatus,                      |\r
450 |                    |            |             |             | statusDescription,              |\r
451 |                    |            |             |             | errorCode,                      |\r
452 |                    |            |             |             | progress,                       |\r
453 |                    |            |             |             | responseId                      |\r
454 +--------------------+------------+-------------+-------------+---------------------------------+\r
455 \r
456 {\r
457   "jobId" : "1234566",\r
458   "responseDescriptor" : {\r
459 \r
460     "progress" : "40",\r
461     "status" : "proccessing",\r
462     "statusDescription" : "OMC VMs are decommissioned in VIM",\r
463     "errorCode" : null,\r
464     "responseId" : "42",\r
465     "responseHistoryList" : [{\r
466 \r
467       "progress" : "40",\r
468       "status" : "proccessing",\r
469       "statusDescription" : "OMC VMs are decommissioned in VIM",\r
470       "errorCode" : null,\r
471       "responseId" : "1"\r
472 \r
473     }, {\r
474       "progress" : "41",\r
475       "status" : "proccessing",\r
476       "statusDescription" : "OMC VMs are decommissioned in VIM",\r
477       "errorCode" : null,\r
478       "responseId" : "2"\r
479 \r
480     }\r
481 \r
482   ]\r
483 \r
484  }\r
485 \r
486 }\r
487 \r
488 **3.5  Scale VNF**\r
489 ------------------\r
490 \r
491 +---------------+------------------------------------------------------------------+\r
492 | IF Definition |  Description                                                     |\r
493 +===============+==================================================================+\r
494 | URI           | http(s)://[hostname][:port]/api/{vnfmtype}/v1/{vnfmid}/vnfs/     |\r
495 |               | {vnfInstanceId}/scale                                            |\r
496 +---------------+------------------------------------------------------------------+\r
497 | Operation     |  POST                                                            |\r
498 +---------------+------------------------------------------------------------------+\r
499 | Direction     |  NSLCM->VNFMDriver                                               |\r
500 +---------------+------------------------------------------------------------------+\r
501 \r
502 **3.5.1  Request**\r
503 \r
504 \r
505 +---------------+------------+-------------+-------------+---------------------------------------------+\r
506 | Parameter     | Qualifier  | Cardinality | Content     | Description                                 |\r
507 +===============+============+=============+=============+=============================================+\r
508 | type          | M          | 1           | Enum        | Defines the type of the scale operation     |\r
509 |               |            |             |             | requested (scale out, scale in). The set of |\r
510 |               |            |             |             | types actually supported depends on the     |\r
511 |               |            |             |             | capabilities of the VNF being managed, as   |\r
512 |               |            |             |             | declared in the VNFD. See note 1.           |\r
513 +---------------+------------+-------------+-------------+---------------------------------------------+\r
514 | aspectId      | M          | 1           | Identifier  | Identifies the aspect of the VNF that is    |\r
515 |               |            |             |             | requested to be scaled                      |\r
516 +---------------+------------+-------------+-------------+---------------------------------------------+\r
517 | numberOfSteps | M          | 1           | Integer     | Number of scaling steps to be executed as   |\r
518 |               |            |             |             | part of this ScaleVnf operation. It shall   |\r
519 |               |            |             |             | be a positive number.                       |\r
520 |               |            |             |             | Defaults to 1.                              |\r
521 |               |            |             |             | The VNF Provider defines in the VNFD        |\r
522 |               |            |             |             | whether or not a particular VNF supports    |\r
523 |               |            |             |             | performing more than one step at a time.    |\r
524 |               |            |             |             | Such a property in the VNFD applies for all |\r
525 +---------------+------------+-------------+-------------+---------------------------------------------+\r
526 | additional    | M          | 1           |KeyValuePair | Additional parameters passed by the NFVO    |\r
527 | Param         |            |             |             | as input to the scaling proccess, specific  |\r
528 |               |            |             |             | to the VNF being scaled.                    |\r
529 |               |            |             |             | Reserved                                    |\r
530 +---------------+------------+-------------+-------------+---------------------------------------------+\r
531 | NOTE 1: ETSI GS NFV-IFA 010 [2] specifies that the lifecycle management operations that expand       |\r
532 |        or contract a VNF instance include scale in, scale out, scale up and scale down. Vertical     |\r
533 |        scaling (scale up, scale down) is not supported in the present document.                      |\r
534 |        SCALE_IN designates scaling in.                                                               |\r
535 |        SCALE_OUT 1 designates scaling out.                                                           |\r
536 | NOTE 2: A scaling step is the smallest unit by which a VNF can be scaled w.r.t a particular scaling  |\r
537 |          aspect.                                                                                     |\r
538 +------------------------------------------------------------------------------------------------------+\r
539 \r
540 {\r
541   "vnfInstanceId":"5",\r
542   "type":" SCALE_OUT",\r
543   "aspectId":"101",\r
544   "numberOfSteps":"1",\r
545   "additionalParam":{\r
546 \r
547     ……\r
548 \r
549   }\r
550 \r
551 }\r
552 \r
553 **3.5.2  Response**\r
554 \r
555 +--------------------+------------+-------------+-------------+---------------------------------+\r
556 | Parameter          | Qualifier  | Cardinality | Content     | Description                     |\r
557 +====================+============+=============+=============+=================================+\r
558 | jobId              | M          | 1           | String      | The identifier of the VNF       |\r
559 |                    |            |             |             | lifecycle operation occurrence. |\r
560 +--------------------+------------+-------------+-------------+---------------------------------+\r
561 \r
562 {\r
563   "jobId":"1"\r
564 \r
565 }\r
566 \r
567 **3.6  Heal VNF**\r
568 ------------------\r
569 \r
570 +---------------+------------------------------------------------------------------+\r
571 | IF Definition |  Description                                                     |\r
572 +===============+==================================================================+\r
573 | URI           | http(s)://[hostname][:port]/api/{vnfmtype}/v1/{vnfmid}/vnfs      |\r
574 |               | {vnfInstanceId}/heal                                             |\r
575 +---------------+------------------------------------------------------------------+\r
576 | Operation     |  POST                                                            |\r
577 +---------------+------------------------------------------------------------------+\r
578 | Direction     |  NSLCM->VNFMDriver                                               |\r
579 +---------------+------------------------------------------------------------------+\r
580 \r
581 **3.6.1  Request**\r
582 \r
583 +--------------------+------------+-------------+-------------+---------------------------------+\r
584 | Parameter          | Qualifier  | Cardinality | Content     | Description                     |\r
585 +====================+============+=============+=============+=================================+\r
586 | action             | M          | 1           | String      | Indicates the action to be done |\r
587 |                    |            |             |             | upon the given virtual machine. |\r
588 |                    |            |             |             | Only "vmReset" is supported     |\r
589 |                    |            |             |             | currently.                      |\r
590 +--------------------+------------+-------------+-------------+---------------------------------+\r
591 | affectedvm         | M          |  1          | AffectedVm  | Defines the information of      |\r
592 |                    |            |             |             | virtual machines.               |\r
593 +--------------------+------------+-------------+-------------+---------------------------------+\r
594 \r
595 **AffectedVm**\r
596 \r
597 +--------------------+------------+-------------+-------------+---------------------------------+\r
598 | Parameter          | Qualifier  | Cardinality | Content     | Description                     |\r
599 +====================+============+=============+=============+=================================+\r
600 | vimid              | M          | 1           | String      | Defines  the  UUID  of  virtual |\r
601 |                    |            |             |             | machine.                        |\r
602 +--------------------+------------+-------------+-------------+---------------------------------+\r
603 | vduid              | M          | 1           | String      | Defines the id of vdu.          |\r
604 +--------------------+------------+-------------+-------------+---------------------------------+\r
605 | vmname             | M          | 1           |             | Defines  the  name  of  virtual |\r
606 |                    |            |             |             | machines.                       |\r
607 +--------------------+------------+-------------+-------------+---------------------------------+\r
608 \r
609 {\r
610   "action": "vmReset",\r
611   "affectedvm": \r
612   {\r
613 \r
614     "vmid": "804cca71-9ae9-4511-8e30-d1387718caff",\r
615     "vduid": "vdu_100",\r
616     "vmname": "ZTE_SSS_111_PP_2_L"\r
617 \r
618   }\r
619 \r
620 }\r
621 \r
622 **3.6.2  Response**\r
623 \r
624 +--------------------+------------+-------------+-------------+---------------------------------+\r
625 | Parameter          | Qualifier  | Cardinality | Content     | Description                     |\r
626 +====================+============+=============+=============+=================================+\r
627 | jobId              | M          | 1           | Identifier  | The identifier of the VNF       |\r
628 |                    |            |             |             | healing operation occurrence.   |\r
629 +--------------------+------------+-------------+-------------+---------------------------------+\r
630 \r
631 {\r
632   "jobId":"1"\r
633 \r
634 }\r
635 \r
636 \r
637 **4.  Interfaces provided by VFC to integrate with VNFM driver**\r
638 ===========================================\r
639 \r
640 \r
641 **4.1  VNF Lifecycle Operation Granting Interface**\r
642 ------------------------\r
643 \r
644 \r
645 +---------------+------------------------------------------------------------------+\r
646 | IF Definition |  Description                                                     |\r
647 +===============+==================================================================+\r
648 | URI           | http(s)://[hostname][:port]/api/nslcm/v1/ns/grantvnf             |\r
649 +---------------+------------------------------------------------------------------+\r
650 | Operation     |  POST                                                            |\r
651 +---------------+------------------------------------------------------------------+\r
652 | Direction     |  VNFMDriver -> NSLCM                                             |\r
653 +---------------+------------------------------------------------------------------+\r
654 \r
655 **4.1.1  Request**\r
656 \r
657 \r
658 {\r
659   "vnfInstanceId": "string",\r
660   "vnfDescriptorId": "string",\r
661   "lifecycleOperation": "Terminal",\r
662   "jobId": "string",\r
663   "addResource": [\r
664     {\r
665       "type": "string",\r
666       "resourceDefinitionId": "string",\r
667       "vdu": "string"\r
668     }\r
669   ],\r
670   "removeResource": [\r
671     {\r
672       "type": "string",\r
673       "resourceDefinitionId": "string",\r
674       "vdu": "string"\r
675     }\r
676   ],\r
677   "additionalParam": {}\r
678 }\r
679 \r
680 **4.1.2  Response**\r
681 \r
682 {\r
683   "vim": {\r
684     "vimInfoId": "string",\r
685     "vimId": "string",\r
686     "interfaceInfo": {\r
687       "vimType": "string",\r
688       "apiVersion": "string",\r
689       "protocolType": "string"\r
690     },\r
691     "accessInfo": {\r
692       "tenant": "string",\r
693       "username": "string",\r
694       "password": "string"\r
695     },\r
696     "interfaceEndpoint": "string"\r
697   }\r
698 }\r
699 \r
700 **4.2  VNF LCM Notification Interface**\r
701 ------------------------\r
702 \r
703 +---------------+------------------------------------------------------------------+\r
704 | IF Definition |  Description                                                     |\r
705 +===============+==================================================================+\r
706 | URI           | http(s)://[hostname][:port]/api/nslcm/v1/ns/{vnfmid}/vnfs/       |\r
707 |               | {vnfInstanceId}/Notify                                           |\r
708 +---------------+------------------------------------------------------------------+\r
709 | Operation     |  POST                                                            |\r
710 +---------------+------------------------------------------------------------------+\r
711 | Direction     |  VNFMDriver -> NSLCM                                             |\r
712 +---------------+------------------------------------------------------------------+\r
713 \r
714 **4.2.1  Request**\r
715 \r
716 {\r
717   "status": "result",\r
718   "vnfInstanceId": "string",\r
719   "operation": "Terminal",\r
720   "jobId": "string",\r
721   "affectedVnfc": [\r
722     {\r
723       "vnfcInstanceId": "string",\r
724       "vduId": "string",\r
725       "changeType": "added",\r
726       "vimid": "string",\r
727       "vmid": "string",\r
728       "vmname": "string"\r
729     }\r
730   ],\r
731   "affectedCp": [\r
732     {\r
733       "virtualLinkInstanceId": "string",\r
734       "cpinstanceid": "string",\r
735       "cpdid": "string",\r
736       "ownerType": "string",\r
737       "ownerId": "string",\r
738       "changeType": "added",\r
739       "portResource": {\r
740         "vimid": "string",\r
741         "resourceid": "string",\r
742         "resourceName": "string",\r
743         "tenant": "string",\r
744         "ipAddress": "string",\r
745         "macAddress": "string",\r
746         "instId": "string"\r
747       }\r
748     }\r
749   ],\r
750   "affectedVl": [\r
751     {\r
752       "vlInstanceId": "string",\r
753       "vldid": "string",\r
754       "changeType": "added",\r
755       "networkResource": {\r
756         "resourceType": "network",\r
757         "resourceId": "string"\r
758       }\r
759     }\r
760   ],\r
761   "affectedVirtualStorage": [\r
762     {}\r
763   ]\r
764 }\r
765 \r
766 **4.2.2  Response**\r
767 \r
768 N/A\r
769 \r
770 \r
771 **4.3  Query VNFM Register Info Interface**\r
772 ------------------------\r
773 \r
774 +---------------+------------------------------------------------------------------+\r
775 | IF Definition |  Description                                                     |\r
776 +===============+==================================================================+\r
777 | URI           | http(s)://[hostname][:port]/api/nslcm/v1/vnfms/{vnfmid}          |\r
778 +---------------+------------------------------------------------------------------+\r
779 | Operation     |  GET                                                             |\r
780 +---------------+------------------------------------------------------------------+\r
781 | Direction     |  VNFMDriver -> NSLCM                                             |\r
782 +---------------+------------------------------------------------------------------+\r
783 \r
784 **4.3.1  Request**\r
785 N/A\r
786 \r
787 **4.3.2  Response**\r
788 {\r
789   "vnfmId": "string",\r
790   "name": "string",\r
791   "type": "string",\r
792   "url": "string",\r
793   "userName": "string",\r
794   "password": "string",\r
795   "vimId": "string",\r
796   "vendor": "string",\r
797   "version": "string",\r
798   "description": "string",\r
799   "certificateUrl": "string",\r
800   "createTime": "string"\r
801 }\r
802 \r
803 \r
804 **4.4  Query VIM Register Info Interface**\r
805 ------------------------\r
806 \r
807 +---------------+------------------------------------------------------------------+\r
808 | IF Definition |  Description                                                     |\r
809 +===============+==================================================================+\r
810 | URI           | http(s)://[hostname][:port]/api/nslcm/v1/vims/{vimid}            |\r
811 +---------------+------------------------------------------------------------------+\r
812 | Operation     |  GET                                                             |\r
813 +---------------+------------------------------------------------------------------+\r
814 | Direction     |  VNFMDriver -> NSLCM                                             |\r
815 +---------------+------------------------------------------------------------------+\r
816 \r
817 **4.4.1  Request**\r
818 N/A\r
819 \r
820 **4.4.2  Response**\r
821 \r
822 +--------------------+------------+-------------+-------------+---------------------------------+\r
823 | Parameter          | Qualifier  | Cardinality | Content     | Description                     |\r
824 +====================+============+=============+=============+=================================+\r
825 | vimId              | M          | 1           | string      | The identifier of the VIM       |\r
826 +--------------------+------------+-------------+-------------+---------------------------------+\r
827 | name               | M          | 1           | string      | The name of the VIM             | \r
828 +--------------------+------------+-------------+-------------+---------------------------------+\r
829 | type               | M          | 1           | string      | The type of the VIM             |\r
830 +--------------------+------------+-------------+-------------+---------------------------------+\r
831 | url                | M          | 1           | string      | The access URL of the VIM       |\r
832 +--------------------+------------+-------------+-------------+---------------------------------+\r
833 | userName           | M          | 1           | string      | The user name of the VIM        |\r
834 +--------------------+------------+-------------+-------------+---------------------------------+\r
835 | password           | M          | 1           | string      | The password of the VIM         |\r
836 +--------------------+------------+-------------+-------------+---------------------------------+\r
837 | vendor             | M          | 1           | string      | The vendor of the VIM           |\r
838 +--------------------+------------+-------------+-------------+---------------------------------+\r
839 | version            | M          | 1           | version     | The version of the VIM          |\r
840 +--------------------+------------+-------------+-------------+---------------------------------+\r
841 | description        | O          | 1           | description | The description of the VIM      |\r
842 +--------------------+------------+-------------+-------------+---------------------------------+\r
843 | sslCacert          | O          | 1           | Identifier  | The collection of trusted       |\r
844 |                    |            |             |             | certificates towards the VIM.   |\r
845 +--------------------+------------+-------------+-------------+---------------------------------+\r
846 | sslInsecure        | O          | 1           | Identifier  | Whether to verify VIM's         |\r
847 |                    |            |             |             | certificate.                    |\r
848 +--------------------+------------+-------------+-------------+---------------------------------+\r
849 | status             | O          | 1           | Identifier  | The status of external system   |\r
850 +--------------------+------------+-------------+-------------+---------------------------------+\r
851 \r
852 \r
853 {\r
854   "vimId": "string",\r
855   "name": "string",\r
856   "type": "string",\r
857   "url": "string",\r
858   "userName": "string",\r
859   "password": "string",\r
860   "vendor": "string",\r
861   "version": "string",\r
862   "description": "string",\r
863   "createTime": "string",\r
864   "sslCacert": "string",\r
865   "sslInsecure": "string",\r
866   "status": "string"\r
867 }\r
868 \r