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