6938d1511f4fc70f8218751a756925b85e00285b
[appc.git] / docs / APPC API Guide / APPC API Guide.rst
1 ============================================
2 ONAP Application Controller (APPC) API Guide
3 ============================================
4
5 Revision History
6 ----------------
7
8 +--------------+------------+---------------+--------------------------------------------------------+
9 | Date         | Revision   | Author        | Changes                                                |
10 +--------------+------------+---------------+--------------------------------------------------------+
11 | 2017-08-25   | 2.0.0      | Paul Miller   | Updates for software contribution in Amsterdam Release |
12 |              |            |               |                                                        |
13 |              |            |               | **Commands Removed**                                   |
14 |              |            |               | - LiveUpgrade                                          |
15 |              |            |               | - ModifyConfig (replaced by ConfigModify)              |
16 |              |            |               | - Rollback                                             |
17 |              |            |               | - SoftwareUpload                                       |
18 |              |            |               | - Terminate                                            |
19 |              |            |               | - Test                                                 |
20 +--------------+------------+---------------+--------------------------------------------------------+
21 | 2017-02-06   | 1.0.0      | mjf           | copyright updated                                      |
22 +--------------+------------+---------------+--------------------------------------------------------+
23
24 |
25
26 Introduction
27 ============
28
29 This guide describes the APPC API that allows you to manage and control the life cycle of controlled virtual network functions (VNFs).
30
31
32 Target Audience
33 ---------------
34 This document is intended for an advanced technical audience, such as the engineers or architects who need to use this guide to develop an interfacing application. The guide assumes a knowledge of the Open Network Automation Platform (ONAP) components and features, and familiarity with JSON notation.
35
36
37 Life Cycle Management Commands
38 ==============================
39
40 APPC receives commands from external ECOMP components, such as SO, Policy, DCAE, or the Portal, to manage the life cycle of virtual applications and their components.
41
42 A virtual application is composed of the following layers of network technology:
43
44 - Virtual Network Function (VNF)
45 - Virtual Network Function Component (VNFC)
46 - Virtual Machine (VM)
47
48 A Life Cycle Management (LCM) command may affect one or more of these layers.
49
50 An LCM command is sent as a request to the APPC using an HTTP POST request or in a message on a message bus (DMaaP or UEB).  A request may result in either a single synchronous response or multiple asynchronous responses:
51
52 - An **asynchronous** command, which is sent as an authorized and valid request, results in at least two discrete response events:
53     - an accept response, to indicate that the request is accepted for processing
54     - a final response to indicate the status and outcome of the request processing
55     - An unauthorized or invalid request results in a single ERROR response.
56
57 - A **synchronous** command, such as Lock or Unlock, results in a single response that is either SUCCESS or ERROR.
58
59 **NOTE:** For both asynchronous or synchronous commands, the first response is always returned using the same transport that the initial action used. For example, if the action request was via the message bus (such as when it originates from Policy), then the response is also via the message bus. However, if the request was via a direct HTTP call, the response is similarly a synchronous HTTP response.
60
61
62 Message Bus and the LCM API Client Library
63 ------------------------------------------
64
65 The recommended approach for sending/receiving requests to APPC is via the message bus.   To support this approach, an APPC client library is available and should be used.  The client library aims to provide consumers of APPC capabilities with a strongly-typed Java interface and to encapsulate the actual interaction with APPC component via the message bus.
66
67 For more details, see the APPC Client Library Guide at:
68
69   :ref:`appc_client_library`
70
71
72 The client library supports both synchronous and asynchronous flows as follows.
73
74 **Asynchronous Flow**
75
76 - The APPC Client Library is called via an asynchronous API using a full command object, which is mapped to a JSON representation.
77 - The APPC client calls the UEB/DMaaP client and sends the JSON command to a configured topic.
78 - The APPC client pulls response messages from the configured topic.
79 - On receiving the response for the command, APPC client runs the relevant callback method of the consumer ResponseHandler.
80
81 **Synchronous Flow**
82
83 - The APPC Client Library is called via a synchronous API using a full command object, which is mapped to a JSON representation.
84 - The APPC client calls the UEB/DMaaP client and sends the JSON command to a configured topic.
85 - The APPC client pulls response messages from the configured topic.
86 - On receiving the final response for the command, the APPC client returns the response object with a final status.
87
88 The client library adds the following wrapper around request and responses to the LCM API (described below)::
89
90     {
91         "version" : "2.0",
92         "cambria.partition" : "<TOPIC>",
93         "correlation-id" :"<CORRELATION_ID>",
94         "rpc-name" : "<RPC_NME>",
95         "type" : <MESSAGE_TYPE>
96         "body" : <RPC_SPECIFIC_BODY>
97     }
98
99
100
101 Table 1 Request / Response Message Fields
102
103 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
104 | **Field**            | **Description**                                                                                                | **Required**        |
105 +======================+================================================================================================================+=====================+
106 | version              | Indicates the version of the message bus protocol with APPC. Version 2.0 should be used.                       |     Yes             |
107 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
108 | cambria. partition   | Indicates the specific topic partition that the message is intended for. For example:                          |     No              |
109 |                      |                                                                                                                |                     |
110 |                      | -  For incoming messages, this value should be APP-C.                                                          |                     |
111 |                      |                                                                                                                |                     |
112 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
113 | correlation- id      | Correlation ID used for associating responses in APPC Client Library. Built as: <request-id>-<sub-request-id>  |     Yes             |
114 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
115 | rpc-name             | The target Remote Processing Call (RPC) name which should match the LCM command name. For example: configure   |     Yes             |
116 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
117 | type                 | Message type: request, response or error                                                                       |     Yes             |
118 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
119 | body                 | Contains the input or output LCM command content, which is either the request or response                      |                     |
120 |                      | The body field format is identical to the equivalent HTTP Rest API command based on the specific RPC name      |     Yes             |
121 |                      |                                                                                                                |                     |
122 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
123
124
125 Generic Request Format
126 ----------------------
127
128 The LCM API general request format is applicable for both POST HTTP API and for the message body received via the EUB/DMaaP bus.
129
130 LCM Request
131 -----------
132
133 The LCM request comprises a common header and a section containing the details of the LCM action.
134 The LCM request conforms to the following structure::
135
136     {
137     "input": {
138                 "common-header": {"timestamp": "<TIMESTAMP>",
139                                         "api-ver": "<API_VERSION>",
140                                         "originator-id": "<ECOMP_SYSTEM_ID>",
141                                         "request-id": "<ECOMP_REQUEST_ID>",
142                                         "sub-request-id": "<ECOMP_SUBREQUEST_ID>",
143                                         "flags": {
144                                                    "mode": "<EXCLUSIVE|NORMAL>",
145                                                    "force": "<TRUE|FALSE>",
146                                                    "ttl": "<TTL_VALUE>"
147                                                  }
148                                  },
149                 "action": "<COMMAND_ACTION>",
150                 "action-identifiers": {
151                                         "vnf-id": "<ECOMP_VNF_ID>",
152                                         "vnfc-name": "<ECOMP_VNFC_NAME>",
153                                         "vserver-id": "VSERVER_ID"
154                                       },
155                 ["payload": "<PAYLOAD>"]
156             }
157     }
158
159
160 Table 2 LCM Request Fields
161
162 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
163 |     **Field**             |     **Description**                                                                                                                                                                                                                                                                                                    |     **Required?**   |
164 +===========================+========================================================================================================================================================================================================================================================================================================================+=====================+
165 |     input                 |     The block that defines the details of the input to the command processing. Contains the common-header details.                                                                                                                                                                                                     |     Yes             |
166 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
167 |     common- header        |     The block that contains the generic details about a request.                                                                                                                                                                                                                                                       |     Yes             |
168 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
169 |     timestamp             |     The time of the request, in ISO 8601 format, ZULU offset. For example: 2016-08-03T08:50:18.97Z.                                                                                                                                                                                                                    |     Yes             |
170 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
171 |                           |     APPC will reject the request if timestamp is in the future (due to clock error), or timestamp is too old (compared to TTL flag)                                                                                                                                                                                    |                     |
172 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
173 |     api-ver               |     Identifies the API version, in X.YY format, where X denotes the major version increased with each APPC release, and YY is the minor release version. For example:                                                                                                                                                  |     Yes             |
174 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
175 |                           | -  5.00 for this version                                                                                                                                                                                                                                                                                               |                     |
176 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
177 |     originator-id         |     An identifier of the calling system limited to a length of 40 characters.                                                                                                                                                                                                                                          |     Yes             |
178 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
179 |                           |     It can be used for addressing purposes, such as to return an asynchronous response to the correct destination, in particular where there are multiple consumers of APPC APIs.                                                                                                                                      |                     |
180 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
181 |     request-id            |     The UUID for the request ID, limited to a length of 40 characters. The unique OSS/BSS identifier for the request ID that triggers the current LCM action. Multiple API calls can be made with the same request-id.                                                                                                 |     Yes             |
182 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
183 |                           |     The request-id is stored throughout the operations performed during a single request.                                                                                                                                                                                                                              |                     |
184 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
185 |     sub-request-id        |     Uniquely identifies a specific LCM or control action, limited to a length of 40 characters. Persists throughout the life cycle of a single request.                                                                                                                                                                |     No              |
186 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
187 |     flags                 |     Generic flags that apply to all LCM actions:                                                                                                                                                                                                                                                                       |     No              |
188 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
189 |                           | -  "MODE" :                                                                                                                                                                                                                                                                                                            |                     |
190 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
191 |                           |    -  "EXCLUSIVE" - accept no queued requests on this VNF while processing, or                                                                                                                                                                                                                                         |                     |
192 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
193 |                           |    -  "NORMAL" - queue other requests until complete                                                                                                                                                                                                                                                                   |                     |
194 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
195 |                           | -  "FORCE" : "TRUE"\|"FALSE" - run action even if target is in an unstable state (for example, if VNF is busy processing another LCM command or if a previous command failed and VNF was indicated as not STABLE), or not.                                                                                             |                     |
196 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
197 |                           |     The specific behavior of forced actions varies, but implies cancellation of the previous action and an override by the new action. The default value is FALSE.                                                                                                                                                     |                     |
198 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
199 |                           |     Force flag are used to bypass APPC’s working state management for the VNF(VNF working State Management) :                                                                                                                                                                                                          |                     |
200 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
201 |                           |     APPC maintains working state (in the VNF\_STATE\_MANAGEMENT table present in the APPC-DB) for the VNF depending on the last action performed on it:                                                                                                                                                                |                     |
202 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
203 |                           |     There are below 3 states appc have for VNF while performing non-read only operation (Read-Only operations are : Lock, Unlock, CheckLock, Sync, Audit etc. ) :                                                                                                                                                      |                     |
204 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
205 |                           |     1) Stable – If the last action performed on a VNF is Successful (returning Success).                                                                                                                                                                                                                               |                     |
206 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
207 |                           |     2) Unstable – This is the intermediate state for any VNF on which operation is being performed.                                                                                                                                                                                                                    |                     |
208 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
209 |                           |     3) Unknown – This is the status when the last action performed on a VNF is not successful.                                                                                                                                                                                                                         |                     |
210 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
211 |                           |     APPC have validation that it will not allow any operations on VNF which is in Unstable or Unknown state. To skip this check end-user can pass Force-flag=true in the request.                                                                                                                                      |                     |
212 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
213 |                           | -  "TTL": <0....N> - The timeout value for the action to run, between action received by APPC and action initiated.                                                                                                                                                                                                    |                     |
214 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
215 |                           |     If no TTL value provided, the default/configurable TTL value is to be used.                                                                                                                                                                                                                                        |                     |
216 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
217 |     action                |     The action to be taken by APPC, for example: Test, Start, Terminate.                                                                                                                                                                                                                                               |     Yes             |
218 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
219 |                           |     ***NOTE:** The specific value for the action parameter is provided for each* command.                                                                                                                                                                                                                              |                     |
220 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
221 |     action- identifiers   |     A block containing the action arguments. These are used to specify the object upon which APPC LCM command is to operate. At least one action-identifier must be specified (note that vnf-id is mandatory). For actions that are at the VM level, the action-identifiers provided would be vnf-id and vserver-id.   | Yes                 |
222 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
223 |     vnf-id                |     Identifies the VNF instance to which this action is to be applied. Required for actions.                                                                                                                                                                                                                           |     Yes             |
224 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
225 |     vnfc-name             |     Identifies the VNFC instance to which this action is to be applied. Required if the action applied to a specific VNFC.                                                                                                                                                                                             |     No              |
226 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
227 |     vserver-id            |     Identifies a specific VM instance to which this action is to be applied. Required if the action applied to a specific VM. (Populate the vserver-id field with the UUID of the VM)                                                                                                                                  |     No              |
228 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
229 |     vf-module-id          |     Identifies a specific VF module to which this action is to be applied. Required if the action applied to a specific VF module.                                                                                                                                                                                     |     No              |
230 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
231 |     payload               |     An action-specific open-format field.                                                                                                                                                                                                                                                                              |     No              |
232 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
233 |                           |     The payload can be any valid JSON string value. JSON escape characters need to be added when an inner JSON string is included within the payload, for example: "{\\" vnf -host- ip                                                                                                                                 |                     |
234 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
235 |                           |     -address\\": \\"<VNF-HOST-IP-ADDRESS>\\"}".                                                                                                                                                                                                                                                                        |                     |
236 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
237 |                           |     The payload is typically used to provide parametric data associated with the command, such as a list of configuration parameters.                                                                                                                                                                                  |                     |
238 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
239 |                           |     Note that not all LCM commands need have a payload.                                                                                                                                                                                                                                                                |                     |
240 |                           |                                                                                                                                                                                                                                                                                                                        |                     |
241 |                           |     ***NOTE:** See discussion below on the use of payloads for self-service actions.*                                                                                                                                                                                                                                  |                     |
242 +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
243
244
245 Generic Response Format
246 -----------------------
247
248
249 This section describes the generic response format.
250
251 The response format is applicable for both POST HTTP API and for the message body received via the EUB/DMaaP bus.
252
253
254 LCM Response
255 ------------
256
257 The LCM response comprises a common header and a section containing the payload and action details.
258
259 The LCM response conforms to the following structure::
260
261     {
262         "output": {
263                     "common-header": {
264                                         "api-ver": "<API\_VERSION>",
265                                         "flags": {
266                                                    "ttl": <TTL\_VALUE>,
267                                                    "force": "<TRUE\|FALSE>",
268                                                    "mode": "<EXCLUSIVE\|NORMAL>"
269                                                  },
270                                         "originator-id": "<ECOMP\_SYSTEM\_ID>",
271                                         "request-id": "<ECOMP\_REQUEST\_ID>",
272                                         "sub-request-id": "<ECOMP\_SUBREQUEST\_ID>",
273                                         "timestamp": "2016-08-08T23:09:00.11Z",
274                                      },
275                    "payload": "<PAYLOAD>",
276                    [Additional fields],
277                    "status": {
278                                 "code": <RESULT\_CODE>,
279                                 "message": "<RESULT\_MESSAGE>"
280                              }
281                  }
282     }
283
284
285 Table 3 LCM Response Fields
286
287 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
288 |     **Field**        |     **Description**                                                                                                                                                                                                       |     **Required?**   |
289 +======================+===========================================================================================================================================================================================================================+=====================+
290 |     output           |     The block that defines the details of the output of the command processing. Contains the common-header details.                                                                                                       |     Yes             |
291 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
292 |     common- header   |     The block that contains the generic details about a request.                                                                                                                                                          |     Yes             |
293 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
294 |     api-ver          |     Identifies the API version, in X.YY format, where X denotes the major version increased with each APPC release, and YY is the minor release version. For example:                                                     |     Yes             |
295 |                      |                                                                                                                                                                                                                           |                     |
296 |                      | -  5.00 for this version                                                                                                                                                                                                  |                     |
297 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
298 |     originator-id    |     An identifier of the calling system limited to a length of 40 characters.                                                                                                                                             |     Yes             |
299 |                      |                                                                                                                                                                                                                           |                     |
300 |                      |     It can be used for addressing purposes, such as to return an asynchronous response to the correct destination, in particular where there are multiple consumers of APPC APIs.                                         |                     |
301 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
302 |     request-id       |     The UUID for the request ID, limited to a length of 40 characters. The unique OSS/BSS identifier for the request ID that triggers the current LCM action. Multiple API calls can be made with the same request- id.   |     Yes             |
303 |                      |                                                                                                                                                                                                                           |                     |
304 |                      |     The request-id is stored throughout the operations performed during a single request.                                                                                                                                 |                     |
305 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
306 |     sub-request-id   |     Uniquely identifies a specific LCM or control action, limited to a length of 40 characters. Persists throughout the life cycle of a single request.                                                                   |     No              |
307 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
308 |     timestamp        |     The time of the request, in ISO 8601 format, ZULU offset. For example: 2016-08-03T08:50:18.97Z.                                                                                                                       |     Yes             |
309 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
310 |     status           |     The status describes the outcome of the command processing. Contains a code and a message providing success or failure details.                                                                                       |     Yes             |
311 |                      |                                                                                                                                                                                                                           |                     |
312 |                      |     ***NOTE:** See* status *for code values.*                                                                                                                                                                             |                     |
313 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
314 |     payload          |     An open-format field.                                                                                                                                                                                                 |     No              |
315 |                      |                                                                                                                                                                                                                           |                     |
316 |                      |     The payload can be any valid JSON string value. JSON escape characters need to be added when an inner JSON string is included within the payload, for example: "{\\"upload\_config\_id\\": \\"<value\\"}".            |                     |
317 |                      |                                                                                                                                                                                                                           |                     |
318 |                      |     The payload is typically used to provide parametric data associated with the response to the command.                                                                                                                 |                     |
319 |                      |                                                                                                                                                                                                                           |                     |
320 |                      |     Note that not all LCM commands need have a payload.                                                                                                                                                                   |                     |
321 |                      |                                                                                                                                                                                                                           |                     |
322 |                      |     ***NOTE:** The specific value(s) for the response payload, where relevant, is provided for in each* command *description.*                                                                                            |                     |
323 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
324 |     [Field name]     |     Additional fields can be provided in the response, if needed, by specific commands.                                                                                                                                   |     No              |
325 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
326 |     code             |     A unique pre-defined value that identifies the exact nature of the success or failure status.                                                                                                                         |     No              |
327 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
328 |     message          |     The description of the success or failure status.                                                                                                                                                                     |     No              |
329 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
330
331
332 Status Codes
333 ------------
334
335 The status code is returned in the response message as the code parameter, and the description as the message parameter.
336
337 The different responses are categorized as follows:
338
339 **ACCEPTED**
340
341     Request is valid and accepted for processing.
342
343 **ERROR**
344
345     Request invalid or incomplete.
346
347 **REJECT**
348
349     Request rejected during processing due to invalid data, such as an
350     unsupported command or a non-existent service-instance-id.
351
352 **SUCCESS**
353
354     Request is valid and completes successfully.
355
356 **FAILURE**
357
358     The request processing resulted in failure.
359
360     A FAILURE response is always returned asynchronously via the message
361     bus.
362
363 **PARTIAL SUCCESS**
364
365     The request processing resulted in partial success where at least
366     one step in a longer process completed successfully.
367
368     A PARTIAL SUCCESS response is always returned asynchronously via the
369     message bus.
370
371 **PARTIAL FAILURE**
372
373     The request processing resulted in partial failure.
374
375     A PARTIAL FAILURE response is always returned asynchronously via the
376     message bus.
377
378 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
379 |     **Category**      |     **Code**   |     **Message / Description**                                                                                                        |
380 +=======================+================+======================================================================================================================================+
381 |     ACCEPTED          |     100        |     ACCEPTED - Request accepted                                                                                                      |
382 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
383 |     ERROR             |     200        |     UNEXPECTED ERROR - ${detailedErrorMsg}                                                                                           |
384 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
385 |     REJECT            |     300        |     REJECTED - ${detailedErrorMsg}                                                                                                   |
386 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
387 |                       |     301        |     INVALID INPUT PARAMETER -${detailedErrorMsg}                                                                                     |
388 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
389 |                       |     302        |     MISSING MANDATORY PARAMETER - Parameter ${paramName} is missing                                                                  |
390 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
391 |                       |     303        |     REQUEST PARSING FAILED - ${detailedErrorMsg}                                                                                     |
392 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
393 |                       |     304        |     NO TRANSITION DEFINED - No Transition Defined for ${actionName} action and ${currentState} state                                 |
394 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
395 |                       |     305        |     ACTION NOT SUPPORTED - ${actionName} action is not supported                                                                     |
396 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
397 |                       |     306        |     VNF NOT FOUND - VNF with ID ${vnfId} was not found                                                                               |
398 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
399 |                       |     307        |     DG WORKFLOW NOT FOUND - No DG workflow found for the combination of ${dgModule} module ${dgName} name and ${dgVersion} version   |
400 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
401 |                       |     308        |     WORKFLOW NOT FOUND - No workflow found for VNF type                                                                              |
402 |                       |                |                                                                                                                                      |
403 |                       |                |     ${vnfTypeVersion} and ${actionName} action                                                                                       |
404 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
405 |                       |     309        |     UNSTABLE VNF - VNF ${vnfId} is not stable to accept the command                                                                  |
406 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
407 |                       |     310        |     LOCKING FAILURE -${detailedErrorMsg}                                                                                             |
408 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
409 |                       |     311        |     EXPIREDREQUEST. The request processing time exceeded the maximum available time                                                  |
410 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
411 |                       |     312        |     DUPLICATEREQUEST. The request already exists                                                                                     |
412 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
413 |                       |     313        |     MISSING VNF DATA IN A&AI - ${attributeName} not found for VNF ID =                                                               |
414 |                       |                |                                                                                                                                      |
415 |                       |                |     ${vnfId}                                                                                                                         |
416 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
417 |     SUCCESS           |     400        |     The request was processed successfully                                                                                           |
418 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
419 |     FAILURE           |     401        |     DG FAILURE - ${ detailedErrorMsg }                                                                                               |
420 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
421 |                       |     402        |     NO TRANSITION DEFINED - No Transition Defined for ${ actionName} action and ${currentState} state                                |
422 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
423 |                       |     403        |     UPDATE\_AAI\_FAILURE - failed to update AAI. ${errorMsg}                                                                         |
424 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
425 |                       |     404        |     EXPIRED REQUEST FAILURE - failed during processing because TTL expired                                                           |
426 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
427 |                       |     405        |     UNEXPECTED FAILURE - ${detailedErrorMsg}                                                                                         |
428 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
429 |                       |     406        |     UNSTABLE VNF FAILURE - VNF ${vnfId} is not stable to accept the command                                                          |
430 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
431 |                       |     450        |     Requested action is not supported on the VNF                                                                                     |
432 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
433 |     PARTIAL SUCCESS   |     500        |     PARTIAL SUCCESS                                                                                                                  |
434 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
435 |     PARTIAL FAILURE   |     501 -      |     PARTIAL FAILURE                                                                                                                  |
436 |                       |                |                                                                                                                                      |
437 |                       |     599        |                                                                                                                                      |
438 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
439
440
441 Malformed Message Response
442 --------------------------
443
444 A malformed message is an invalid request based on the LCM API YANG scheme specification. APPC rejects malformed requests as implemented by ODL infrastructure level.
445
446 **Response Format for Malformed Requests**::
447
448     {
449       "errors": {
450                   "error": [
451                             {   
452                               "error-type": "protocol",
453                               "error-tag": "malformed-message",
454                               "error-message": "<ERROR-MESSAGE>",
455                               "error-info": "<ERROR-INFO>"
456                             }
457                            ]
458                 }
459     }
460
461
462 **Example Response**::
463
464     {
465       "errors": {
466                   "error": [
467                             {
468                               "error-type": "protocol",
469                               "error-tag": "malformed-message",
470                               "error-message": "Error parsing input: Invalid value 'Stopp' for
471                                enum type. Allowed values are: [Sync, Audit, Stop, Terminate]",
472                               "error-info": "java.lang.IllegalArgumentException: Invalid value
473                                 'Stopp' for enum type. Allowed values are: [Sync, Audit, Stop,
474                                 Terminate]..."
475                             }
476                            ]
477                 }
478     }
479
480
481
482 API Scope
483 =========
484
485 Defines the level at which the LCM command operates for the current release of APPC and the VNF types which are supported for each command.
486
487
488 Commands, or actions, can be performed at one or more of the following scope levels:
489
490
491 +-----------------+----------------------------------------------------------------------------------------+
492 | **VNF**         | Commands can be applied at the level of a specific VNF instance using the vnf-id.      |
493 +-----------------+----------------------------------------------------------------------------------------+
494 | **VF-Module**   | Commands can be applied at the level of a specific VF-Module using the vf-module-id.   |
495 +-----------------+----------------------------------------------------------------------------------------+
496 | **VNFC**        | Commands can be applied at the level of a specific VNFC instance using a vnfc-name.    |
497 +-----------------+----------------------------------------------------------------------------------------+
498 | **VM**          | Commands can be applied at the level of a specific VM instance using a vserver-id.     |
499 +-----------------+----------------------------------------------------------------------------------------+
500
501
502 **VNF’s Types Supported**
503
504 Commands, or actions, may be currently supported on all VNF types or a limited set of VNF types. Note that the intent in the 1710 release is to support all actions on all VNF types which have been successfully onboarded in a self-service mode.
505
506 **Any -** Currently supported on any vnf-type.
507
508 **Any (requires self-service onboarding) –** Currently supported on any vnf-type which has been onboarded using the APPC self-service onboarding process. See further discussion on self-service onboarding below.
509
510
511 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
512 |     **Command**        |     **VNF**   |     **VF-Module**   |     **VNFC**   |     **VM**   |     **VNF/VM Types Supported**                                 |
513 +========================+===============+=====================+================+==============+================================================================+
514 |     Audit              |     Yes       |                     |                |              |     Any (requires self-service onboarding)                     |
515 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
516 |     CheckLock          |     Yes       |                     |                |              |     Any (APPC internal command)                                |
517 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
518 |     Configure          |     Yes       |                     |     Yes        |              |     Any (requires self-service onboarding)                     |
519 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
520 |     ConfigModify       |     Yes       |                     |     Yes        |              |     Any (requires self-service onboarding)                     |
521 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
522 |     ConfigBackup       |     Yes       |                     |                |              |     Chef and Ansible only (requires self-service onboarding)   |
523 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
524 |     ConfigRestore      |     Yes       |                     |                |              |     Chef and Ansible only (requires self-service onboarding)   |
525 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
526 |     Evacuate           |               |                     |                |     Yes      | Any (uses OpenStack Evacuate command)                          |
527 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
528 |     HealthCheck        |     Yes       |                     |                |              |     Any (requires self-service onboarding)                     |
529 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
530 |     Lock               |     Yes       |                     |                |              |     Any (APPC internal command)                                |
531 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
532 |     Migrate            |               |                     |                |     Yes      |     Any (uses OpenStack Migrate command)                       |
533 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
534 |     Rebuild            |               |                     |                |     Yes      |     Any (uses OpenStack Rebuild command)                       |
535 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
536 |     Restart            |     Yes       |                     |                |     Yes      |     Any (uses OpenStack Start and Stop commands)               |
537 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
538 |     Snapshot           |               |                     |                |     Yes      |     Any (uses OpenStack Snapshot command)                      |
539 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
540 |     Start              |     Yes       |     Yes             |                |     Yes      |     Any (uses OpenStack Start command)                         |
541 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
542 |     StartApplication   |     Yes       |                     |                |              |     Chef and Ansible only (requires self-service onboarding)   |
543 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
544 |     Stop               |     Yes       |     Yes             |                |     Yes      |     Any (uses OpenStack Stop command)                          |
545 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
546 |     StopApplication    |     Yes       |                     |                |              |     Chef and Ansible only (requires self-service onboarding)   |
547 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
548 |     Sync               |     Yes       |                     |                |              |     Any (requires self-service onboarding)                     |
549 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
550 |     Unlock             |     Yes       |                     |                |              |     Any (APPC internal command)                                |
551 +------------------------+---------------+---------------------+----------------+--------------+----------------------------------------------------------------+
552
553
554
555 Self-Service VNF Onboarding
556 ---------------------------
557
558 The APPC architecture is designed for VNF self-service onboarding (i.e., a VNF owner or vendor through the use of tools can enable a new VNF to support the LCM API actions that are designate as self-service). The VNF must support one or more of the following interface protocols:
559
560 -  Netconf with uploadable Yang model (requires a Netconf server running
561    on the VNF)
562
563 -  Chef (requires a Chef client running on the VNF)
564
565 -  Ansible (does not require any changes to the VNF software)
566
567 The self-service onboarding process is done using an APPC Design GUI which interacts with an APPC instance which is dedicated to self-service onboarding. The steps in the onboarding process using the APPC Design GUI are:
568
569 -  Define the VNF capabilities (set of actions that the VNF can
570    support).
571
572 -  Create a template and parameter definitions for actions which use the
573    Netconf, Chef, or Ansible protocols. The template is an xml or JSON
574    block which defines the “payload” which is included in the request
575    that is downloaded the VNF (if Netconf) or Chef/Ansible server.
576
577 -  Test actions which have templates/parameter definitions.
578
579 -  Upload the VNF definition, template, and parameter definition
580    artifacts to SDC which distributes them to all APPC instances in the
581    same environment (e.g., production).
582
583 For more details, see the APPC Self-Service VNF Onboarding Guide.
584
585
586
587 LCM Commands
588 ============
589
590 The LCM commands that are valid for the current release.
591
592
593 Audit
594 -----
595
596 The Audit command compares the configuration of the VNF associated with the current request against the most recent configuration that is stored in APPC's configuration database.
597
598 A successful Audit means that the current VNF configuration matches the latest APPC stored configuration.
599
600 A failed Audit indicates that the configurations do not match.
601
602 This command can be applied to any VNF type. The only restriction is that the VNF has been onboarded in self-service mode (which requires that the VNF supports a request to return the running configuration).
603
604 The Audit action does not require any payload parameters.
605
606 **NOTE:** Audit does not return a payload containing details of the comparison, only the Success/Failure status.
607
608
609 +------------------------------+------------------------------------------------------+
610 |     **Target URL**           |     /restconf /operations/ appc-provider-lcm:audit   |
611 +------------------------------+------------------------------------------------------+
612 |     **Action**               |     Audit                                            |
613 +------------------------------+------------------------------------------------------+
614 |     **Action-Identifiers**   |     vnf-id                                           |
615 +------------------------------+------------------------------------------------------+
616 |     **Payload Parameters**   |     See below                                        |
617 +------------------------------+------------------------------------------------------+
618 |     **Revision History**     |     Unchanged in this version.                       |
619 +------------------------------+------------------------------------------------------+
620
621 |
622
623 +----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+----------------------------------+
624 |     **Parameter**    |     **Description**                                                                                                                                       |     **Required?**   |     **Example**                  |
625 +======================+===========================================================================================================================================================+=====================+==================================+
626 |     publish-config   |     \* If the publish\_config field is set to Y in the payload, then always send the running configuration from the VNF using the Data Router             |     Yes             |     "publish-config": "<Y\|N>"   |
627 |                      |                                                                                                                                                           |                     |                                  |
628 |                      |     \* If the publish\_config field is set to N in the payload, then:                                                                                     |                     |                                  |
629 |                      |                                                                                                                                                           |                     |                                  |
630 |                      |     - If the result of the audit is ‘match’ (latest APPC config and the running config match), do not send the running configuration in the Data Router   |                     |                                  |
631 |                      |                                                                                                                                                           |                     |                                  |
632 |                      |     - If the result of the audit is ‘no match’, then send the running configuration on the Data Router                                                    |                     |                                  |
633 +----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+----------------------------------+
634
635 Audit Response
636 --------------
637
638 The audit response returns an indication of success or failure of the audit. If a new configuration is uploaded to the APPC database, the payload contains the ‘upload\_config\_id’ and values for any records created. In addition, the configuration is sent to the ECOMP Data Router bus which may be received by an external configuration storage system.
639
640
641 CheckLock
642 ---------
643
644 The CheckLock command returns true if the specified VNF is locked; otherwise, false is returned.
645
646 A CheckLock command is deemed successful if the processing completes without error, whether the VNF is locked or not. The command returns only a single response with a final status.
647
648 Note that APPC locks the target VNF during any VNF command processing, so a VNF can have a locked status even if no Lock command has been explicitly called.
649
650 The CheckLock command returns a specific response structure that extends the default LCM response.
651
652 The CheckLock action does not require any payload parameters.
653
654 +------------------------------+--------------------------------------------------------+
655 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:checklock   |
656 +------------------------------+--------------------------------------------------------+
657 |     **Action**               |     CheckLock                                          |
658 +------------------------------+--------------------------------------------------------+
659 |     **Action-Identifiers**   |     vnf-id                                             |
660 +------------------------------+--------------------------------------------------------+
661 |     **Payload Parameters**   |     None                                               |
662 +------------------------------+--------------------------------------------------------+
663 |     **Revision History**     |     Unchanged in this version.                         |
664 +------------------------------+--------------------------------------------------------+
665
666 CheckLock Response
667 ------------------
668
669 The CheckLock command returns a customized version of the LCM
670 response.
671
672
673 +---------------------+---------------------------------------------------------------------------------------+--------------------+---------------------------------+
674 |     **Parameter**   |     **Description**                                                                   |     **Required**   | **?Example**                    |
675 +=====================+=======================================================================================+====================+=================================+
676 |     locked          |     "TRUE"\|"FALSE" - returns TRUE if the specified VNF is locked, otherwise FALSE.   |     No             |     "locked": "<TRUE\|FALSE>"   |
677 +---------------------+---------------------------------------------------------------------------------------+--------------------+---------------------------------+
678
679
680 **Example**::
681
682     {
683       "output": {
684                   "status": {
685                               "code": <RESULT\_CODE>, "message": "<RESULT\_MESSAGE>"
686                             },
687                   "common-header": {
688                                      "api-ver": "<API\_VERSION>",
689                                      "request-id": "<ECOMP\_REQUEST\_ID>", "originator-id":
690                                      "<ECOMP\_SYSTEM\_ID>",
691                                      "sub-request-id": "<ECOMP\_SUBREQUEST\_ID>", "timestamp":
692                                      "2016-08-08T23:09:00.11Z",
693                                      "flags": {
694                                                 "ttl": <TTL\_VALUE>, "force": "<TRUE\|FALSE>",
695                                                 "mode": "<EXCLUSIVE\|NORMAL>"
696                                               }
697                                    },
698                   "locked": "<TRUE\|FALSE>"
699     }
700
701
702 Configure
703 ---------
704
705 Configure a VNF or a VNFC on the VNF after instantiation.
706
707 A set of configuration parameter values specified in the configuration template is included in the request. Other configuration parameter values may be obtained from an external system.
708
709 A successful Configure request returns a success response.
710
711 A failed Configure action returns a failure response and the specific failure messages in the response block.
712
713 +------------------------------+--------------------------------------------------------+
714 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:configure   |
715 +------------------------------+--------------------------------------------------------+
716 |     **Action**               |     Configure                                          |
717 +------------------------------+--------------------------------------------------------+
718 |     **Action-Identifiers**   |     vnf-id                                             |
719 +------------------------------+--------------------------------------------------------+
720 |     **Payload Parameters**   |     See below                                          |
721 +------------------------------+--------------------------------------------------------+
722 |     **Revision History**     |     Unchanged in this version.                         |
723 +------------------------------+--------------------------------------------------------+
724
725 |
726
727 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
728 |     **Payload Parameter**       |     **Description**                                                                                                                                                                                                                                                                                        |     **Required?**   |     **Example**                                                 |
729 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
730 +=================================+============================================================================================================================================================================================================================================================================================================+=====================+=================================================================+
731 |     request- parameters         |     The parameters required to process the request must include the host-ip-address to connect to the VNF, if Netconf. A template-name may also be included in the event that a specific configuration template needs to be identified. If the request is vnfc-specific, the vnfc-type must be included.   |     Yes             |                                                                 |
732 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     "payload":                                                  |
733 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
734 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     "{\"request-parameters                                      |
735 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
736 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \": {                                                       |
737 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
738 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \"host-ip-address\": \”value\”,                             |
739 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
740 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \”vnfc-type\”: \”value\”’,                                  |
741 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
742 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \”template-name\”: \”name\”                                 |
743 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
744 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     }                                                           |
745 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
746 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \"configuration- parameters\": {\"<CONFIG- PARAMS>\"}       |
747 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
748 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
749 |     configuration- parameters   |     A set of instance specific configuration parameters should be specified. If provided, APPC replaces variables in the configuration template with the values supplied.                                                                                                                                  |     No              |                                                                 |
750 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
751
752
753 Configure Response
754 ------------------
755
756 The Configure response returns an indication of success or failure of the request. If successful, the return payload contains the ‘upload\_config\_id’ and values for any records created. In addition, the configuration is sent to the ECOMP Data Router bus  which may be received by an external configuration storage system.
757
758 SO is creating the VNFC records in A&AI. APPC is updating the VNFC status.
759
760 ConfigModify
761 ------------
762
763 Modifies the configuration on a VNF or VNFC in service.
764
765 A successful ConfigModify request returns a success response.
766
767 A failed ConfigModify action returns a failure response code and the specific failure message in the response block.
768
769 **NOTE:** See also `Configure <#_bookmark35>`__
770
771 +------------------------------+-----------------------------------------------------------+
772 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:configmodify   |
773 +------------------------------+-----------------------------------------------------------+
774 |     **Action**               |     ConfigModify                                          |
775 +------------------------------+-----------------------------------------------------------+
776 |     **Action-Identifiers**   |     Vnf-id                                                |
777 +------------------------------+-----------------------------------------------------------+
778 |     **Payload Parameters**   |     See below                                             |
779 +------------------------------+-----------------------------------------------------------+
780 |     **Revision History**     |     Unchanged in this version.                            |
781 +------------------------------+-----------------------------------------------------------+
782
783 |
784
785 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
786 |     **Payload Parameter**       |     **Description**                                                                                                                                                                                                                                                                                        |     **Required?**   |     **Example**                                                 |
787 +=================================+============================================================================================================================================================================================================================================================================================================+=====================+=================================================================+
788 |     request- parameters         |     The parameters required to process the request must include the host-ip-address to connect to the VNF, if Netconf. A template-name may also be included in the event that a specific configuration template needs to be identified. If the request is vnfc-specific, the vnfc-type must be included.   |     Yes             |     "payload":                                                  |
789 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
790 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     "{\"request-parameters                                      |
791 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
792 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \": {                                                       |
793 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
794 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \"host-ip-address\": \”value\”,                             |
795 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
796 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \”vnfc-type\”: \”value\”’                                   |
797 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
798 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \”template-name\”: \”name\”,                                |
799 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
800 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     }                                                           |
801 |                                 |                                                                                                                                                                                                                                                                                                            |                     |                                                                 |
802 |                                 |                                                                                                                                                                                                                                                                                                            |                     |     \"configuration- parameters\": {\"<CONFIG- PARAMS>\"}       |
803 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
804 |     configuration- parameters   |     A set of instance specific configuration parameters should be specified. If provided, APPC replaces variables in the configuration template with the values supplied.                                                                                                                                  |     No              |                                                                 |
805 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
806
807 If successful, this request returns a success response.
808
809 A failed Configure action returns a failure response and the specific failure message in the response block.
810
811 ConfigModify Response
812 ---------------------
813
814 The ConfigModify response returns an indication of success or failure of the request. If successful, the return payload contains the ‘upload\_config\_id’ and values for any records created. In addition, the configuration is sent to the ECOMP Data Router bus which may be received by an external configuration storage system.
815
816 ConfigBackup
817 ------------
818
819 Stores the current VNF configuration on a local file system (not in APPC). This is limited to Ansible and Chef. There can only be one stored configuration (if there is a previously saved configuration, it is replaced with the current VNF configuration).
820
821 A successful ConfigBackup request returns a success response.
822
823 A failed ConfigBackup action returns a failure response code and the specific failure message in the response block.
824
825 +------------------------------+-----------------------------------------------------------+
826 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:configbackup   |
827 +------------------------------+-----------------------------------------------------------+
828 |     **Action**               |     ConfigBackup                                          |
829 +------------------------------+-----------------------------------------------------------+
830 |     **Action-Identifiers**   |     Vnf-id                                                |
831 +------------------------------+-----------------------------------------------------------+
832 |     **Payload Parameters**   |     See below                                             |
833 +------------------------------+-----------------------------------------------------------+
834 |     **Revision History**     |     New in this version.                                  |
835 +------------------------------+-----------------------------------------------------------+
836
837 |
838
839 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
840 |     **Payload Parameter**       |     **Description**                                                                                                                                                                |     **Required?**   |     **Example**                                                 |
841 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
842 |     request- parameters         |     The parameters required to process the request must include the host-ip-address to connect to the VNF (for Chef and Ansible, this will be the url to connect to the server).   |     Yes             | "payload":                                                      |
843 |                                 |                                                                                                                                                                                    |                     |                                                                 |
844 |                                 |                                                                                                                                                                                    |                     |     "{\"request-parameters                                      |
845 |                                 |                                                                                                                                                                                    |                     |                                                                 |
846 |                                 |                                                                                                                                                                                    |                     |     \": {                                                       |
847 |                                 |                                                                                                                                                                                    |                     |                                                                 |
848 |                                 |                                                                                                                                                                                    |                     |     \"host-ip-address\": \”value\”                              |
849 |                                 |                                                                                                                                                                                    |                     |                                                                 |
850 |                                 |                                                                                                                                                                                    |                     |     }                                                           |
851 |                                 |                                                                                                                                                                                    |                     |                                                                 |
852 |                                 |                                                                                                                                                                                    |                     |     \"configuration- parameters\": {\"<CONFIG- PARAMS>\"}       |
853 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
854 |     configuration- parameters   |     A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook.                                                 |     No              |                                                                 |
855 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
856
857 ConfigBackup Response
858 ---------------------
859
860 The ConfigBackup response returns an indication of success or failure of the request.
861
862 ConfigRestore
863 -------------
864
865 Applies a previously saved configuration to the active VNF configuration. This is limited to Ansible and Chef. There can only be one stored configuration.
866
867 A successful ConfigRestore request returns a success response.
868
869 A failed ConfigRestore action returns a failure response code and the specific failure message in the response block.
870
871 +------------------------------+------------------------------------------------------------------------------------------+
872 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:configrestore                                 |
873 +------------------------------+------------------------------------------------------------------------------------------+
874 |     **Action**               |     ConfigRestore                                                                        |
875 +------------------------------+------------------------------------------------------------------------------------------+
876 |     **Action-Identifiers**   |     Vnf-id                                                                               |
877 +------------------------------+------------------------------------------------------------------------------------------+
878 |     **Payload Parameters**   |     `request-parameters <#_bookmark24>`__, `configuration-parameters <#_bookmark26>`__   |
879 +------------------------------+------------------------------------------------------------------------------------------+
880 |     **Revision History**     |     New in this version.                                                                 |
881 +------------------------------+------------------------------------------------------------------------------------------+
882
883 |
884
885 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
886 |     **Parameter**               |     **Description**                                                                                                                                                                |     **Required?**   |     **Example**                                                 |
887 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
888 |     request- parameters         |     The parameters required to process the request must include the host-ip-address to connect to the VNF (for Chef and Ansible, this will be the url to connect to the server).   |     Yes             |     "payload":                                                  |
889 |                                 |                                                                                                                                                                                    |                     |                                                                 |
890 |                                 |                                                                                                                                                                                    |                     |     "{\"request-parameters                                      |
891 |                                 |                                                                                                                                                                                    |                     |                                                                 |
892 |                                 |                                                                                                                                                                                    |                     |     \": {                                                       |
893 |                                 |                                                                                                                                                                                    |                     |                                                                 |
894 |                                 |                                                                                                                                                                                    |                     |     \"host-ip-address\\": \”value\”                             |
895 |                                 |                                                                                                                                                                                    |                     |                                                                 |
896 |                                 |                                                                                                                                                                                    |                     |     }                                                           |
897 |                                 |                                                                                                                                                                                    |                     |                                                                 |
898 |                                 |                                                                                                                                                                                    |                     |     \"configuration- parameters\": {\"<CONFIG- PARAMS>\"}       |
899 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
900 |     configuration- parameters   |     A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook.                                                 |     No              |                                                                 |
901 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
902
903 ConfigRestore Response
904 ----------------------
905
906 The ConfigRestore response returns an indication of success or failure of the request.
907
908 Evacuate
909 --------
910
911 Evacuates a specified VM from its current host to another. After a successful evacuate, a rebuild VM is performed if a snapshot is available (and the VM boots from a snapshot.
912
913 The host on which the VM resides needs to be down.
914
915 If the node is not specified in the request, it will be selected by relying on internal rules to evacuate. The Evacuate action will fail if the specified target host is not UP/ENABLED.
916
917 After Evacuate, the rebuild VM can be disabled by setting the optional `rebuild-vm <#_bookmark43>`__ parameter to false.
918
919 A successful Evacuate action returns a success response. A failed Evacuate action returns a failure.
920
921 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
922
923 +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
924 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:evacuate                                                                                                            |
925 +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
926 |     **Action**               |     Evacuate                                                                                                                                                   |
927 +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
928 |     **Action-identifiers**   |     Vnf-id, vserver-id                                                                                                                                         |
929 +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
930 |     **Payload Parameters**   |     `vm-id <#_bookmark40>`__, `identity-url <#_bookmark41>`__, `tenant-id <#_bookmark42>`__, `rebuild-vm <#_bookmark43>`__, `targethost-id <#_bookmark44>`__   |
931 +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
932 |     **Revision History**     |     Unchanged in this version.                                                                                                                                 |
933 +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
934
935 |
936
937 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
938 |     **Parameter**    |     **Description**                                                                                                                                                              |     **Required?**   |     **Example**                       |
939 +======================+==================================================================================================================================================================================+=====================+=======================================+
940 |     vm-id            |     The unique identifier (UUID) of the resource. For backwards- compatibility, this can be the self- link URL of the VM.                                                        |     Yes             |     "payload":                        |
941 |                      |                                                                                                                                                                                  |                     |                                       |
942 |                      |                                                                                                                                                                                  |                     |     "{\"vm-id\": \"<VM-ID>            |
943 |                      |                                                                                                                                                                                  |                     |                                       |
944 |                      |                                                                                                                                                                                  |                     |     \",                               |
945 |                      |                                                                                                                                                                                  |                     |                                       |
946 |                      |                                                                                                                                                                                  |                     |     \"identity-url\":                 |
947 |                      |                                                                                                                                                                                  |                     |                                       |
948 |                      |                                                                                                                                                                                  |                     |     \"<IDENTITY-URL>\",               |
949 |                      |                                                                                                                                                                                  |                     |                                       |
950 |                      |                                                                                                                                                                                  |                     |     \"tenant-id\\": \"<TENANT-ID>     |
951 |                      |                                                                                                                                                                                  |                     |                                       |
952 |                      |                                                                                                                                                                                  |                     |     \",                               |
953 |                      |                                                                                                                                                                                  |                     |                                       |
954 |                      |                                                                                                                                                                                  |                     |     \"rebuild-vm\": \"false\",        |
955 |                      |                                                                                                                                                                                  |                     |                                       |
956 |                      |                                                                                                                                                                                  |                     |     \"targethost-id\":                |
957 |                      |                                                                                                                                                                                  |                     |                                       |
958 |                      |                                                                                                                                                                                  |                     |     \"nodeblade7\"}"                  |
959 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
960 |     identity- url    |     The identity URL used to access the resource                                                                                                                                 |     No              |                                       |
961 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
962 |     tenant-id        |     The id of the provider tenant that owns the resource                                                                                                                         |     No              |                                       |
963 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
964 |     rebuild- vm      |     A boolean flag indicating if a Rebuild is to be performed after an Evacuate. The default action is to do a Rebuild. It can be switched off by setting the flag to "false".   |     No              |                                       |
965 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
966 |     targethost- id   |     A target hostname indicating the host the VM is evacuated to. By default, the cloud determines the target host.                                                              |     No              |                                       |
967 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
968
969 HealthCheck
970 -----------
971
972 This command runs a VNF health check and returns the result.
973
974 A health check is VNF-specific. For a complex VNF, APPC initiates further subordinate health checks.
975
976 HealthCheck is a VNF level command which interrogates the VNF in order to determine the health of the VNF and the VNFCs. The HealthCheck will be implemented differently for each VNF.
977
978
979 +------------------------------+-----------------------------------------------------------+
980 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:health-check   |
981 +------------------------------+-----------------------------------------------------------+
982 |     **Action**               |     HealthCheck                                           |
983 +------------------------------+-----------------------------------------------------------+
984 |     **Action-Identifiers**   |     Vnf-id                                                |
985 +------------------------------+-----------------------------------------------------------+
986 |     **Payload Parameters**   |     `vnf-host-ip-address <#_bookmark46>`__                |
987 +------------------------------+-----------------------------------------------------------+
988 |     **Revision History**     |     Changed in this version.                              |
989 +------------------------------+-----------------------------------------------------------+
990
991 |
992
993 +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+-------------------------------------+
994 |     **Paramete**            |     **Description**                                                                                                                                            |  **Required?**   | **Example**                         |
995 +=============================+================================================================================================================================================================+==================+=====================================+
996 |     vnf- host-ip- address   |     The IP address used to connect to the VNF, using a protocol such as SSH. For example, for a vSCP VNF, the floating IP address of the SMP should be used.   |     Yes          |     "payload":                      |
997 |                             |                                                                                                                                                                |                  |                                     |
998 |                             |                                                                                                                                                                |                  |     "{\"vnf-host-ip-address\":      |
999 |                             |                                                                                                                                                                |                  |                                     |
1000 |                             |                                                                                                                                                                |                  |     \"10.222.22.2\"}"               |
1001 +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+-------------------------------------+
1002
1003 Lock
1004 ----
1005
1006 Use the Lock command to ensure exclusive access during a series of critical LCM commands.
1007
1008 The Lock action will return a successful result if the VNF is not already locked or if it was locked with the same request-id, otherwise the action returns a response with a reject status code.
1009
1010 Lock is a command intended for APPC and does not execute an actual VNF command. Instead, lock will ensure that ONAP is granted exclusive access to the VNF.
1011
1012 When a VNF is locked, any subsequent sequential commands with same request-id will be accepted. Commands associated with other request-ids will be rejected.
1013
1014 The Lock command returns only one final response with the status of the request processing.
1015
1016 APPC locks the target VNF during any VNF command processing. If a lock action is then requested on that VNF, it will be rejected because the VNF was already locked, even though no actual lock command was explicitly invoked.
1017
1018 +------------------------------+---------------------------------------------------+
1019 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:lock   |
1020 +------------------------------+---------------------------------------------------+
1021 |     **Action**               |     Lock                                          |
1022 +------------------------------+---------------------------------------------------+
1023 |     **Action-Identifier**    |     Vnf-id                                        |
1024 +------------------------------+---------------------------------------------------+
1025 |     **Payload Parameters**   |     None                                          |
1026 +------------------------------+---------------------------------------------------+
1027 |     **Revision History**     |     Unchanged in this version.                    |
1028 +------------------------------+---------------------------------------------------+
1029
1030 Migrate
1031 -------
1032
1033 Migrates a running target VM from its current host to another.
1034
1035 A destination node will be selected by relying on internal rules to migrate. Migrate calls a command in order to perform the operation.
1036
1037 Migrate suspends the guest virtual machine, and moves an image of the guest virtual machine's disk to the destination host physical machine. The guest virtual machine is then resumed on the destination host physical machine and the disk storage that it used on the source host physical machine is freed.
1038
1039 The migrate action will leave the VM in the same Openstack state the VM had been in prior to the migrate action. If a VM was stopped before migration, a separate VM-level restart command would be needed to restart the VM after migration.
1040
1041 A successful Migrate action returns a success response and the new node identity in the response payload block.
1042
1043 A failed Migrate action returns a failure and the failure messages in the response payload block.
1044
1045 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1046
1047 +--------------------------------+-----------------------------------------------------------------------------------------------+
1048 |     **Target URL**             |     /restconf/operations/appc-provider-lcm:migrate                                            |
1049 +--------------------------------+-----------------------------------------------------------------------------------------------+
1050 |     **Action**                 |     Migrate                                                                                   |
1051 +--------------------------------+-----------------------------------------------------------------------------------------------+
1052 |     **Action-Identifiers**     |     Vnf-id, vserver-id                                                                        |
1053 +--------------------------------+-----------------------------------------------------------------------------------------------+
1054 |     \ **Payload Parameters**   |     `vm-id <#_bookmark52>`__, `identity-url <#_bookmark54>`__, `tenant-id <#_bookmark55>`__   |
1055 +--------------------------------+-----------------------------------------------------------------------------------------------+
1056 |     **Revision History**       |     Unchanged in this version.                                                                |
1057 +--------------------------------+-----------------------------------------------------------------------------------------------+
1058
1059 Payload Parameters
1060
1061 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1062 | **Parameter**       |     **Description**                                                     |     **Required?**   |     **Example**                    |
1063 +=====================+=========================================================================+=====================+====================================+
1064 |     vm-id           |     The unique identifier (UUID) of                                     |     Yes             |                                    |
1065 |                     |     the resource. For backwards- compatibility, this can be the self-   |                     |     "payload":                     |
1066 |                     |     link URL of the VM.                                                 |                     |                                    |
1067 |                     |                                                                         |                     |     "{\\"vm-id\": \\"<VM-ID>\\",   |
1068 |                     |                                                                         |                     |     \\"identity-url\\":            |
1069 |                     |                                                                         |                     |                                    |
1070 |                     |                                                                         |                     |     \\"<IDENTITY-URL>\\",          |
1071 +---------------------+-------------------------------------------------------------------------+---------------------+                                    +
1072 |     identity- url   |     The identity url used to access the resource                        |     No              |     \\"tenant-id\\": \\"<TENANT-   |
1073 |                     |                                                                         |                     |     ID>\\"}"                       |
1074 +---------------------+-------------------------------------------------------------------------+---------------------+                                    +
1075 |     tenant-id       |     The id of the provider tenant that owns the resource                |     No              |                                    |
1076 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1077
1078 Rebuild
1079 -------
1080
1081 Recreates a target VM instance to a known, stable state.
1082
1083 Rebuild calls an OpenStack command immediately and therefore does not expect any prerequisite operations to be performed, such as shutting off a VM.
1084
1085 APPC only supports the rebuild operation for a VM that boots from image (snapshot), i.e., APPC rejects a rebuild request if it determines the VM boots from volume (disk).
1086
1087 A successful rebuild returns a success response and the rebuild details in the response payload block. A failed rebuild returns a failure and the failure messages in the response payload block.
1088
1089 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1090
1091 +------------------------------+-----------------------------------------------------------------------------------------------+
1092 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:rebuild                                            |
1093 +------------------------------+-----------------------------------------------------------------------------------------------+
1094 |     **Action**               |     Rebuild                                                                                   |
1095 +------------------------------+-----------------------------------------------------------------------------------------------+
1096 |     **Action-identifiers**   |     Vnf-id, vserver-id                                                                        |
1097 +------------------------------+-----------------------------------------------------------------------------------------------+
1098 |     **Payload Parameters**   |     `vm-id <#_bookmark52>`__, `identity-url <#_bookmark54>`__, `tenant-id <#_bookmark55>`__   |
1099 +------------------------------+-----------------------------------------------------------------------------------------------+
1100 |     **Revision History**     |     Unchanged in this version.                                                                |
1101 +------------------------------+-----------------------------------------------------------------------------------------------+
1102
1103 Restart
1104 -------
1105
1106 Use the Restart command to restart a VNF or a single VM. The generic VNF Restart uses a simple restart logic where all VM’s are stopped and re-started.
1107
1108 The generic Restart operation is invoked either for the VM or the VNF level.
1109
1110 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1111 |     **Input Block**          |     api-ver must be set to 2.00 for *VNF Restart*                                                               |
1112 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1113 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:restart                                                              |
1114 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1115 |     **Action**               |     Restart                                                                                                     |
1116 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1117 |     **Action-identifiers**   |     Vnf-id is required; if restart is for a single VM, then vserver-id is also required.                        |
1118 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1119 |     **Payload Parameters**   |     For *VNF* Restart: `host Identity <#_bookmark57>`__, `vnf-host-ip-address <#_bookmark58>`__                 |
1120 |                              |                                                                                                                 |
1121 |                              |     For *VM* Restart: `vm-id <#_bookmark52>`__, `identity-url <#_bookmark54>`__, `tenant-id <#_bookmark55>`__   |
1122 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1123 |     **Revision History**     |     Revised in this version.                                                                                    |
1124 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1125
1126 Payload Parameters for **VNF Restart**
1127
1128 +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
1129 |     **Parameter**           |     **Description**                                                                                                                                               |     **Required?**   |     **Example**                       |
1130 +=============================+===================================================================================================================================================================+=====================+=======================================+
1131 |     Cloud Identity          |     The identity URL of the OpenStack host on which the VNF resource was created. If not provided, this information will be retrieved from the properties file.   |     No              |     "payload":                        |
1132 |                             |                                                                                                                                                                   |                     |     "{\\" vnf-host-ip-address \\":    |
1133 |                             |                                                                                                                                                                   |                     |                                       |
1134 |                             |                                                                                                                                                                   |                     |     \\"<VNF\_FLOATING\_IP\_ADDRESS>   |
1135 |                             |                                                                                                                                                                   |                     |     \\",                              |
1136 |                             |                                                                                                                                                                   |                     |     \\" hostIdentity \\":             |
1137 |                             |                                                                                                                                                                   |                     |     \\"<OpenStack IP Address>\\"      |
1138 |                             |                                                                                                                                                                   |                     |     }"                                |
1139 +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
1140 |     vnf- host-ip- address   |     The IP address used to connect to the VNF, using a protocol such as SSH. For example, for a vSCP VNF, the floating IP address of the SMP should be used.      |     Yes             |                                       |
1141 +-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
1142
1143 Payload Parameters for **VM Restart**
1144
1145 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1146 | **Parameter**       |     **Description**                                                     |     **Required?**   |     **Example**                    |
1147 +=====================+=========================================================================+=====================+====================================+
1148 |     vm-id           |     The unique identifier (UUID) of                                     |     Yes             |                                    |
1149 |                     |     the resource. For backwards- compatibility, this can be the self-   |                     |     "payload":                     |
1150 |                     |     link URL of the VM.                                                 |                     |                                    |
1151 |                     |                                                                         |                     |     "{\\"vm-id\\": \\"<VM-ID>\\",  |
1152 |                     |                                                                         |                     |     \\"identity-url\\":            |
1153 |                     |                                                                         |                     |                                    |
1154 +---------------------+-------------------------------------------------------------------------+---------------------+     \\"<IDENTITY-URL>\\",          |
1155 |     identity- url   |     The identity url used to access the resource                        |     No              |     \"tenant-id\": \"<TENANT-      |
1156 |                     |                                                                         |                     |     ID>\"}"                        |
1157 +---------------------+-------------------------------------------------------------------------+---------------------+                                    +
1158 |     tenant-id       |     The id of the provider tenant that owns the resource                |     No              |                                    |
1159 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1160
1161 Snapshot
1162 --------
1163
1164 Creates a snapshot of a VM.
1165
1166 The Snapshot command returns a customized response containing a reference to the newly created snapshot instance if the action is successful.
1167
1168 This command can be applied to any VNF type. The only restriction is that the particular VNF should be built based on the generic heat stack.
1169
1170 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1171
1172 +------------------------------+-----------------------------------------------------------------------------------------------------+
1173 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:snapshot                                                 |
1174 +------------------------------+-----------------------------------------------------------------------------------------------------+
1175 |     **Action**               |     Snapshot                                                                                        |
1176 +------------------------------+-----------------------------------------------------------------------------------------------------+
1177 |     **Action-identifiers**   |     Vnf-id is required. If the snapshot is for a single VM, then the vserver-id is also required.   |
1178 +------------------------------+-----------------------------------------------------------------------------------------------------+
1179 |     **Payload Parameters**   |     `vm-id <#_bookmark52>`__, `identity-url <#_bookmark54>`__, `tenant-id <#_bookmark55>`__         |
1180 +------------------------------+-----------------------------------------------------------------------------------------------------+
1181 |     **Revision History**     |     Unchanged in this version.                                                                      |
1182 +------------------------------+-----------------------------------------------------------------------------------------------------+
1183
1184 Payload Parameters
1185
1186 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1187 | **Parameter**       |     **Description**                                                     |     **Required?**   |     **Example**                    |
1188 +=====================+=========================================================================+=====================+====================================+
1189 |     vm-id           |     The unique identifier (UUID) of                                     |     Yes             |                                    |
1190 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1191 |                     |     the resource. For backwards- compatibility, this can be the self-   |                     |     "payload":                     |
1192 |                     |     link URL of the VM.                                                 |                     |                                    |
1193 |                     |                                                                         |                     |     "{\\"vm-id\": \\"<VM-ID>       |
1194 |                     |                                                                         |                     |                                    |
1195 |                     |                                                                         |                     |     \\",                           |
1196 |                     |     link URL of the VM.                                                 |                     |     \\"identity-url\\":            |
1197 |                     |                                                                         |                     |                                    |
1198 |                     |                                                                         |                     |     \\"<IDENTITY-URL>\\",          |
1199 +---------------------+-------------------------------------------------------------------------+---------------------+                                    +
1200 |     identity- url   |     The identity url used to access the resource                        |     No              |     \\"tenant-id\\": \\"<TENANT-   |
1201 |                     |                                                                         |                     |     ID>\\"}"                       |
1202 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1203 |     tenant-id       |     The id of the provider tenant that owns the resource                |     No              |                                    |
1204 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1205
1206 Snapshot Response
1207 -----------------
1208
1209 The Snapshot command returns an extended version of the LCM response.
1210
1211 The Snapshot response conforms to the `standard response format <#_bookmark5>`__, but has the following additional field.
1212
1213 Additional Parameters
1214
1215 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------+---------------------------------------+
1216 |     **Parameter**   |     **Description**                                                                                                                                    |     **Required**   | **?Example**                          |
1217 +=====================+========================================================================================================================================================+====================+=======================================+
1218 |     snapshot-id     |     The snapshot identifier created by cloud host. This identifier will be returned only in the final success response returned via the message bus.   |     No             |     "snapshot-id": "<SNAPSHOT\_ID>"   |
1219 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------+---------------------------------------+
1220
1221 Start
1222 -----
1223
1224 Use the Start command to start a VNF, VF-Module, or VM that is stopped or not running.
1225
1226 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1227
1228 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1229 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:start                                                                               |
1230 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1231 |     **Action**               |     Start                                                                                                                      |
1232 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1233 |     **Action-identifiers**   |     Vnf-id is required; vf-module-id or vserver-id is also required if the action is at vf-module or vm level, respectively.   |
1234 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1235 |     **Payload Parameters**   |     None                                                                                                                       |
1236 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1237 |     **Revision History**     |     Revised in this version.                                                                                                   |
1238 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1239
1240 StartApplication
1241 ----------------
1242
1243 Starts the VNF application, if needed, after a VM is instantiated/configured or after VM start or restart. Supported using Chef cookbook or Ansible playbook only.
1244
1245 A successful StartApplication request returns a success response.
1246
1247 A failed StartApplication action returns a failure response code and the specific failure message in the response block.
1248
1249 +------------------------------+---------------------------------------------------------------+
1250 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:startapplication   |
1251 +------------------------------+---------------------------------------------------------------+
1252 |     **Action**               |     StartApplication                                          |
1253 +------------------------------+---------------------------------------------------------------+
1254 |     **Action-Identifiers**   |     Vnf-id                                                    |
1255 +------------------------------+---------------------------------------------------------------+
1256 |     **Payload Parameters**   |     See below                                                 |
1257 +------------------------------+---------------------------------------------------------------+
1258 |     **Revision History**     |     New in this version.                                      |
1259 +------------------------------+---------------------------------------------------------------+
1260
1261 |
1262
1263 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1264 |     **Payload Parameter**       |     **Description**                                                                                                                                                                |     **Required?**   |     **Example**                                                 |
1265 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
1266 |     request- parameters         |     The parameters required to process the request must include the host-ip-address to connect to the VNF (for Chef and Ansible, this will be the url to connect to the server).   |     Yes             |     "payload":                                                  |
1267 |                                 |                                                                                                                                                                                    |                     |                                                                 |
1268 |                                 |                                                                                                                                                                                    |                     |     "{\\"request-parameters                                     |
1269 |                                 |                                                                                                                                                                                    |                     |     \\": {                                                      |
1270 |                                 |                                                                                                                                                                                    |                     |     \\"host-ip-address\\": \\”value\\”                          |
1271 |                                 |                                                                                                                                                                                    |                     |     }                                                           |
1272 |                                 |                                                                                                                                                                                    |                     |     \\"configuration- parameters\\": {\\"<CONFIG- PARAMS>\\"}   |
1273 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1274 |     configuration- parameters   |     A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook.                                                 |     No              |                                                                 |
1275 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1276
1277 StartApplication Response
1278 -------------------------
1279
1280 The StartApplication response returns an indication of success or failure of the request.
1281
1282 Stop
1283 ----
1284
1285 Use the Stop command to start a VNF, VF-Module, or VM that is stopped or not running.
1286
1287 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1288
1289 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1290 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:stop                                                                                |
1291 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1292 |     **Action**               |     Stop                                                                                                                       |
1293 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1294 |     **Action-identifiers**   |     Vnf-id is required; vf-module-id or vserver-id is also required if the action is at vf-module or vm level, respectively.   |
1295 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1296 |     **Payload Parameters**   |     None                                                                                                                       |
1297 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1298 |     **Revision History**     |     Revised in this version.                                                                                                   |
1299 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1300
1301 StopApplication
1302 ---------------
1303
1304 Stops the VNF application gracefully (not lost traffic), if needed, prior to a Stop command. Supported using Chef cookbook or Ansible playbook only.
1305
1306 A successful StopApplication request returns a success response.
1307
1308 A failed StopApplication action returns a failure response code and the specific failure message in the response block.
1309
1310 +------------------------------+--------------------------------------------------------------+
1311 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:stopapplication   |
1312 +------------------------------+--------------------------------------------------------------+
1313 |     **Action**               |     StopApplication                                          |
1314 +------------------------------+--------------------------------------------------------------+
1315 |     **Action-Identifiers**   |     Vnf-id                                                   |
1316 +------------------------------+--------------------------------------------------------------+
1317 |     **Payload Parameters**   |     See below                                                |
1318 +------------------------------+--------------------------------------------------------------+
1319 |     **Revision History**     |     New in this version.                                     |
1320 +------------------------------+--------------------------------------------------------------+
1321
1322 |
1323
1324 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1325 |     **Payload Parameter**       |     **Description**                                                                                                                                                                |     **Required?**   |     **Example**                                                 |
1326 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
1327 |     request- parameters         |     The parameters required to process the request must include the host-ip-address to connect to the VNF (for Chef and Ansible, this will be the url to connect to the server).   |     Yes             |     "payload":                                                  |
1328 |                                 |                                                                                                                                                                                    |                     |     "{\\"request-parameters                                     |
1329 |                                 |                                                                                                                                                                                    |                     |     \\": {                                                      |
1330 |                                 |                                                                                                                                                                                    |                     |     \\"host-ip-address\\": \\”va lue\\”                         |
1331 |                                 |                                                                                                                                                                                    |                     |     }                                                           |
1332 |                                 |                                                                                                                                                                                    |                     |     \\"configuration- parameters\\": {\\"<CONFIG- PARAMS>\\"}   |
1333 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1334 |     configuration- parameters   |     A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook.                                                 |     No              |                                                                 |
1335 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1336
1337 StopApplication Response
1338 ------------------------
1339
1340 The StopApplication response returns an indication of success or failure of the request.
1341
1342 Sync
1343 ----
1344
1345 The Sync action updates the current configuration in the APPC store with the running configuration from the device.
1346
1347 A successful Sync returns a success status.
1348
1349 A failed Sync returns a failure response status and failure messages in the response payload block.
1350
1351 This command can be applied to any VNF type. The only restriction is that the VNF has been onboarded in self-service mode (which requires that the VNF supports a request to return the running configuration).
1352
1353 +------------------------------+---------------------------------------------------+
1354 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:sync   |
1355 +------------------------------+---------------------------------------------------+
1356 |     **Action**               |     Sync                                          |
1357 +------------------------------+---------------------------------------------------+
1358 |     **Action-identifiers**   |     Vnf-id                                        |
1359 +------------------------------+---------------------------------------------------+
1360 |     **Payload Parameters**   |     None                                          |
1361 +------------------------------+---------------------------------------------------+
1362 |     **Revision History**     |     Unchanged in this version.                    |
1363 +------------------------------+---------------------------------------------------+
1364
1365 Unlock
1366 ------
1367
1368 Run the Unlock command to release the lock on a VNF and allow other clients to perform LCM commands on that VNF.
1369
1370 Unlock is a command intended for APPC and does not execute an actual VNF command. Instead, unlock will release the VNF from the exclusive access held by the specific request-id allowing other requests for the VNF to be accepted.
1371
1372 The Unlock command will result in success if the VNF successfully unlocked or if it was already unlocked, otherwise commands will be rejected.
1373
1374 The Unlock command will only return success if the VNF was locked with same `request-id <#_bookmark4>`__.
1375
1376 The Unlock command returns only one final response with the status of the request processing.
1377
1378 Note: APPC locks the target VNF during any command processing. If an Unlock action is then requested on that VNF with a different request-id, it will be rejected because the VNF is already locked for another process, even though no actual lock command was explicitly invoked.
1379
1380 +------------------------------+-----------------------------------------------------+
1381 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:unlock   |
1382 +------------------------------+-----------------------------------------------------+
1383 |     **Action**               |     Unlock                                          |
1384 +------------------------------+-----------------------------------------------------+
1385 |     **Action-identifiers**   |     Vnf-id                                          |
1386 +------------------------------+-----------------------------------------------------+
1387 |     **Payload Parameters**   |     None                                            |
1388 +------------------------------+-----------------------------------------------------+
1389 |     **Revision History**     |     Unchanged in this version.                      |
1390 +------------------------------+-----------------------------------------------------+
1391