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