22b28a5404eaa22b495466f41a6dd24fa96decc1
[appc.git] / docs / APPC LCM API Guide / APPC LCM API Guide.rst
1 .. ============LICENSE_START==========================================
2 .. ===================================================================
3 .. Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
4 .. ===================================================================
5 .. Licensed under the Creative Commons License, Attribution 4.0 Intl.  (the "License");
6 .. you may not use this documentation except in compliance with the License.
7 .. You may obtain a copy of the License at
8 .. 
9 ..  https://creativecommons.org/licenses/by/4.0/
10 .. 
11 .. Unless required by applicable law or agreed to in writing, software
12 .. distributed under the License is distributed on an "AS IS" BASIS,
13 .. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 .. See the License for the specific language governing permissions and
15 .. limitations under the License.
16 .. ============LICENSE_END============================================
17 .. ECOMP is a trademark and service mark of AT&T Intellectual Property.
18
19 .. _appc_api_guide:
20
21 ==================
22 APPC LCM API Guide
23 ==================
24
25 Introduction
26 ============
27
28 This guide describes the APPC API that allows you to manage and control the life cycle of controlled virtual network functions (VNFs).
29
30
31 Target Audience
32 ---------------
33 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.
34
35
36 Life Cycle Management Commands
37 ==============================
38
39 APPC receives commands from external ONAP components, such as SO, Policy, DCAE, or the Portal, to manage the life cycle of virtual applications and their components.
40
41 A virtual application is composed of the following layers of network technology:
42
43 - Virtual Network Function (VNF)
44 - Virtual Network Function Component (VNFC)
45 - Virtual Machine (VM)
46
47 A Life Cycle Management (LCM) command may affect one or more of these layers.
48
49 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).  A request may result in either a single synchronous response or multiple asynchronous responses:
50
51 - An **asynchronous** command, which is sent as an authorized and valid request, results in at least two discrete response events:
52     - an accept response, to indicate that the request is accepted for processing
53     - a final response to indicate the status and outcome of the request processing
54     - An unauthorized or invalid request results in a single ERROR response.
55
56 - A **synchronous** command, such as Lock or Unlock, results in a single response that is either SUCCESS or ERROR.
57
58 **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.
59
60
61 Message Bus and the LCM API Client Library
62 ------------------------------------------
63
64 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.
65
66 For more details, see the APPC Client Library Guide at:
67
68   :ref:`appc_client_library`
69
70
71 The client library supports both synchronous and asynchronous flows as follows.
72
73 Asynchronous Flow
74 ^^^^^^^^^^^^^^^^^
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 message bus 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
84 - The APPC Client Library is called via a synchronous API using a full command object, which is mapped to a JSON representation.
85 - The APPC client calls the message bus client and sends the JSON command to a configured topic.
86 - The APPC client pulls response messages from the configured topic.
87 - On receiving the final response for the command, the APPC client returns the response object with a final status.
88
89 The client library adds the following wrapper around request and responses to the LCM API (described below)::
90
91     {
92         "version" : "2.0",
93         "cambria.partition" : "<TOPIC>",
94         "correlation-id" :"<CORRELATION_ID>",
95         "rpc-name" : "<RPC_NME>",
96         "type" : <MESSAGE_TYPE>
97         "body" : <RPC_SPECIFIC_BODY>
98     }
99
100
101
102 Table 1 Request / Response Message Fields
103
104 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
105 | **Field**            | **Description**                                                                                                | **Required**        |
106 +======================+================================================================================================================+=====================+
107 | version              | Indicates the version of the message bus protocol with APPC. Version 2.0 should be used.                       |     Yes             |
108 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
109 | cambria. partition   | Indicates the specific topic partition that the message is intended for. For example:                          |     No              |
110 |                      |                                                                                                                |                     |
111 |                      | -  For incoming messages, this value should be ``APPC``.                                                       |                     |
112 |                      |                                                                                                                |                     |
113 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
114 | correlation- id      | Correlation ID used for associating responses in APPC Client Library.                                          |     Yes             |
115 |                      | Built as: ``<request-id>-<sub-request-id>``                                                                    |                     |
116 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
117 | rpc-name             | The target Remote Processing Call (RPC) name which should match the LCM command name. For example:``configure``|     Yes             |
118 |                      |                                                                                                                |                     |
119 |                      | The convention for RPC names and the target URL is that multi-word command names should have a dash between    |                     |
120 |                      | words, e.g.,                                                                                                   |                     |
121 |                      | /restconf/operations/appc-provider-lcm:action-status                                                           |                     |
122 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
123 | type                 | Message type: request, response or error                                                                       |     Yes             |
124 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
125 | body                 | Contains the input or output LCM command content, which is either the request or response                      |                     |
126 |                      | The body field format is identical to the equivalent HTTP Rest API command based on the specific RPC name.     |     Yes             |
127 |                      | For example::                                                                                                  |                     |
128 |                      |                                                                                                                |                     |
129 |                      |     {                                                                                                          |                     |
130 |                      |     "input" : {                                                                                                |                     |
131 |                      |                 "common-header" : {...}                                                                        |                     |
132 |                      |                 "action" : "configure",                                                                        |                     |
133 |                      |                 "action-identifiers" : {...},                                                                  |                     |
134 |                      |                 "payload": "..."                                                                               |                     |
135 |                      |     }                                                                                                          |                     |
136 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
137
138
139 Generic Request Format
140 ----------------------
141
142 The LCM API general request format is applicable for both POST HTTP API and for the message body received via the message bus.
143
144 LCM Request
145 ^^^^^^^^^^^
146
147 The LCM request comprises a common header and a section containing the details of the LCM action.
148 The LCM request conforms to the following structure::
149
150     {
151     "input": {
152                 "common-header": {"timestamp": "<TIMESTAMP>",
153                                         "api-ver": "<API_VERSION>",
154                                         "originator-id": "<SYSTEM_ID>",
155                                         "request-id": "<REQUEST_ID>",
156                                         "sub-request-id": "<SUBREQUEST_ID>",
157                                         "flags": {
158                                                    "mode": "<EXCLUSIVE|NORMAL>",
159                                                    "force": "<TRUE|FALSE>",
160                                                    "ttl": "<TTL_VALUE>"
161                                                  }
162                                  },
163                 "action": "<COMMAND_ACTION>",
164                 "action-identifiers": {
165                                         "vnf-id": "<VNF_ID>",
166                                         "vnfc-name": "<VNFC_NAME>",
167                                         "vserver-id": "VSERVER_ID"
168                                       },
169                 ["payload": "<PAYLOAD>"]
170              }
171     }
172
173
174 Table 2 LCM Request Fields
175
176 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
177 |     **Field**             |     **Description**                                                                                                                                                                                                                                                                                                                                                         |     **Required?**   |
178 +===========================+=============================================================================================================================================================================================================================================================================================================================================================================+=====================+
179 |     input                 |     The block that defines the details of the input to the command processing. Contains the common-header details.                                                                                                                                                                                                                                                          |     Yes             |
180 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
181 |     common- header        |     The block that contains the generic details about a request.                                                                                                                                                                                                                                                                                                            |     Yes             |
182 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
183 |     timestamp             |     The time of the request, in ISO 8601 format, ZULU offset. For example: 2016-08-03T08:50:18.97Z.                                                                                                                                                                                                                                                                         |     Yes             |
184 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
185 |                           |     APPC will reject the request if timestamp is in the future (due to clock error), or timestamp is too old (compared to TTL flag)                                                                                                                                                                                                                                         |                     |
186 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
187 |     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.                                                                                                                                                                                                                    |     Yes             |
188 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
189 |                           |     2.00 should be used for all LCM API requests                                                                                                                                                                                                                                                                                                                            |                     |
190 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
191 |     originator-id         |     An identifier of the calling system limited to a length of 40 characters.                                                                                                                                                                                                                                                                                               |     Yes             |
192 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
193 |                           |     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.                                                                                                                                                                                           |                     |
194 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
195 |     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             |
196 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
197 |                           |     The request-id is stored throughout the operations performed during a single request.                                                                                                                                                                                                                                                                                   |                     |
198 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
199 |     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              |
200 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
201 |     flags                 | Generic flags that apply to all LCM actions:                                                                                                                                                                                                                                                                                                                                |     No              |
202 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
203 |                           | -  "MODE" :                                                                                                                                                                                                                                                                                                                                                                 |                     |
204 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
205 |                           |    -  "EXCLUSIVE" - reject requests on this VNF while another request is in progress, or                                                                                                                                                                                                                                                                                    |                     |
206 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
207 |                           |    -  "NORMAL" - allow requests (pending additional validations) on this VNF if there is another request is in progress.                                                                                                                                                                                                                                                    |                     |
208 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
209 |                           | -  "FORCE" :                                                                                                                                                                                                                                                                                                                                                                |                     |
210 |                           |       - **TRUE** – forces APPC to process the request regardless of whether there is another request for the VNF or VM in progress.                                                                                                                                                                                                                                         |                     |
211 |                           |       - **FALSE** – default value. Will return an error if there is another action in progress on the same VNF or VM, unless the two actions are allowed in parallel based on a Request Management Model stored in APPC. The model allows some non-disruptive actions such as Lock, Unlock, CheckLock, and ActionStatus to be performed in conjunction with other actions.  |                     |
212 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
213 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
214 |                           | -  "TTL": <0....N> - The timeout value is used to determine if the request timeout has been exceeded (i.e., if the TTL value is less than the current time minus the timestamp, the request is rejected). The value is in seconds.                                                                                                                                          |                     |
215 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
216 |                           |     If no TTL value provided, the default/configurable TTL value is to be used.                                                                                                                                                                                                                                                                                             |                     |
217 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
218 |     action                |     The action to be taken by APPC, for example: Test, Start                                                                                                                                                                                                                                                                                                                |     Yes             |
219 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
220 |                           |     These are case-sensitive; e.g.,”Restart” is correct; “restart” is incorrect.                                                                                                                                                                                                                                                                                            |                     | 
221 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
222 |                           |     ***NOTE:** The specific value for the action parameter is provided for each command.                                                                                                                                                                                                                                                                                    |                     |
223 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
224 |     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             |
225 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
226 |     service-instance-id   |     Identifies a specific service instance that the command refers to. When multiple APPC instances are used and applied to a subset of services, this will become significant. The field is mandatory when the vnf-id is empty. Currently not used.                                                                                                                        |     No              |
227 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
228 |     vnf-id                |     Identifies the VNF instance to which this action is to be applied. Required for actions.                                                                                                                                                                                                                                                                                |     Yes             |
229 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
230 |     vnfc-name             |     Identifies the VNFC instance to which this action is to be applied. Required if the action applied to a specific VNFC. Currently not used.                                                                                                                                                                                                                              |     No              |
231 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
232 |     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              |
233 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
234 |     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              |
235 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
236 |     payload               |     An action-specific open-format field.                                                                                                                                                                                                                                                                                                                                   |     No              |
237 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
238 |                           |     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:                                                                                                                                                                                                          |                     |
239 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
240 |                           |        ``"{\" vnf-host-ip-address\": \"<VNF-HOST-IP-ADDRESS>\"}"``                                                                                                                                                                                                                                                                                                          |                     |
241 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
242 |                           |     The payload is typically used to provide parametric data associated with the command, such as a list of configuration parameters.                                                                                                                                                                                                                                       |                     |
243 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
244 |                           |     Note that not all LCM commands need have a payload.                                                                                                                                                                                                                                                                                                                     |                     |
245 |                           |                                                                                                                                                                                                                                                                                                                                                                             |                     |
246 |                           |     ***NOTE:** See discussion below on the use of payloads for self-service actions.                                                                                                                                                                                                                                                                                        |                     |
247 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
248
249 Request Processing and Validation Logic
250 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
251
252 When a new request is received, APPC applies the following validation logic. For any failure, the request is rejected and an error (300 range) is returned.
253
254 1. If the request has timeout (i.e., the difference between current
255    time and the request timestamp value is greater than TTL value in
256    request), a timeout error is returned.
257
258 2. If the request is a duplicate of an existing request in progress
259    (same request-id, sub-request-id, originator-id), a duplicate error
260    is returned.
261
262 3. If there is a Lock on the vnf-id, reject any new action if it is not
263    associated with the locking request-id, a lockout error is returned.
264
265 4. If the Force flag = Y, then allow the new action regardless of
266    whether there is an action in progress.
267
268 5. If the Mode flag = Exclusive on a request in progress, any new
269    request is rejected until the request in progress is completed.
270
271 6. If request is received and there are one or more requests in
272    progress, then the new request is evaluated to determine if there is
273    any overlap in scope with the existing requests (for example, a new
274    VNF level request would overlap with another request in progress).
275
276    a. If there is no overlap between the new request and requests in
277       progress, the new request is accepted. 
278
279    b. If there is overlap, then only special cases are allowed in
280       parallel (for example, Audit and HealthCheck are allowed).
281
282
283 Generic Response Format
284 -----------------------
285
286
287 This section describes the generic response format.
288
289 The response format is applicable for both POST HTTP API and for the message body received via the message bus.
290
291
292 LCM Response
293 ^^^^^^^^^^^^
294
295 The LCM response comprises a common header and a section containing the payload and action details.
296
297 The LCM response conforms to the following structure::
298
299     {
300         "output": {
301                     "common-header": {
302                                         "api-ver": "<API_VERSION>",
303                                         "flags": {
304                                                    "ttl": <TTL_VALUE>,
305                                                    "force": "<TRUE|FALSE>",
306                                                    "mode": "<EXCLUSIVE|NORMAL>"
307                                                  },
308                                         "originator-id": "<SYSTEM_ID>",
309                                         "request-id": "<REQUEST_ID>",
310                                         "sub-request-id": "<SUBREQUEST_ID>",
311                                         "timestamp": "2016-08-08T23:09:00.11Z",
312                                      },
313                     "payload": "<PAYLOAD>",
314                     [Additional fields],
315                     "status": {
316                                 "code": <RESULT_CODE>,
317                                 "message": "<RESULT_MESSAGE>"
318                               }
319                   }
320     }
321
322
323 Table 3 LCM Response Fields
324
325 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
326 |     **Field**        |     **Description**                                                                                                                                                                                                       |     **Required?**   |
327 +======================+===========================================================================================================================================================================================================================+=====================+
328 |     output           |     The block that defines the details of the output of the command processing. Contains the ``common-header`` details.                                                                                                   |     Yes             |
329 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
330 |     common- header   |     The block that contains the generic details about a request.                                                                                                                                                          |     Yes             |
331 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
332 |     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.                                                                  |     Yes             |
333 |                      |                                                                                                                                                                                                                           |                     |
334 |                      |     -  2.00 should be used for all LCM API requests                                                                                                                                                                       |                     |
335 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
336 |     originator-id    |     An identifier of the calling system limited to a length of 40 characters.                                                                                                                                             |     Yes             |
337 |                      |                                                                                                                                                                                                                           |                     |
338 |                      |     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.                                         |                     |
339 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
340 |     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             |
341 |                      |                                                                                                                                                                                                                           |                     |
342 |                      |     The request-id is stored throughout the operations performed during a single request.                                                                                                                                 |                     |
343 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
344 |     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              |
345 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
346 |     timestamp        |     The time of the request, in ISO 8601 format, ZULU offset. For example: ``2016-08-03T08:50:18.97Z``.                                                                                                                   |     Yes             |
347 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
348 |     status           |     The status describes the outcome of the command processing. Contains a ``code`` and a ``message`` providing success or failure details.                                                                               |     Yes             |
349 |                      |                                                                                                                                                                                                                           |                     |
350 |                      |     ***NOTE:** See* status *for code values.*                                                                                                                                                                             |                     |
351 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
352 |     payload          |     An open-format field.                                                                                                                                                                                                 |     No              |
353 |                      |                                                                                                                                                                                                                           |                     |
354 |                      |     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\\"}"``.        |                     |
355 |                      |                                                                                                                                                                                                                           |                     |
356 |                      |     The payload is typically used to provide parametric data associated with the response to the command.                                                                                                                 |                     |
357 |                      |                                                                                                                                                                                                                           |                     |
358 |                      |     Note that not all LCM commands need have a payload.                                                                                                                                                                   |                     |
359 |                      |                                                                                                                                                                                                                           |                     |
360 |                      |     ***NOTE:** The specific value(s) for the response payload, where relevant, is provided for in each* command *description.*                                                                                            |                     |
361 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
362 |     [Field name]     |     Additional fields can be provided in the response, if needed, by specific commands.                                                                                                                                   |     No              |
363 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
364 |     code             |     A unique pre-defined value that identifies the exact nature of the success or failure status.                                                                                                                         |     No              |
365 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
366 |     message          |     The description of the success or failure status.                                                                                                                                                                     |     No              |
367 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
368
369
370 Status Codes
371 ------------
372
373 The status code is returned in the response message as the ``code`` parameter, and the description as the message parameter.
374
375 The different responses are categorized as follows:
376
377 **ACCEPTED**
378
379     Request is valid and accepted for processing.
380
381 **ERROR**
382
383     Request invalid or incomplete.
384
385 **REJECT**
386
387     Request rejected during processing due to invalid data, such as an
388     unsupported command.
389
390 **SUCCESS**
391
392     Request is valid and completes successfully.
393
394 **FAILURE**
395
396     The request processing resulted in failure.
397
398     A FAILURE response is always returned asynchronously via the message
399     bus.
400
401 **PARTIAL SUCCESS**
402
403     The request processing resulted in partial success where at least
404     one step in a longer process completed successfully.
405
406     A PARTIAL SUCCESS response is always returned asynchronously via the
407     message bus.
408
409 **PARTIAL FAILURE**
410
411     The request processing resulted in partial failure.
412
413     A PARTIAL FAILURE response is always returned asynchronously via the
414     message bus.
415
416 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
417 |     **Category**      |     **Code**   |     **Message / Description**                                                                                                        |
418 +=======================+================+======================================================================================================================================+
419 |     ACCEPTED          |     100        |     ACCEPTED - Request accepted                                                                                                      |
420 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
421 |     ERROR             |     200        |     UNEXPECTED ERROR - ${detailedErrorMsg}                                                                                           |
422 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
423 |     REJECT            |     300        |     REJECTED - ${detailedErrorMsg}                                                                                                   |
424 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
425 |                       |     301        |     INVALID INPUT PARAMETER -${detailedErrorMsg}                                                                                     |
426 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
427 |                       |     302        |     MISSING MANDATORY PARAMETER - Parameter ${paramName} is missing                                                                  |
428 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
429 |                       |     303        |     REQUEST PARSING FAILED - ${detailedErrorMsg}                                                                                     |
430 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
431 |                       |     304        |     NO TRANSITION DEFINED - No Transition Defined for ${actionName} action and ${currentState} state                                 |
432 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
433 |                       |     305        |     ACTION NOT SUPPORTED - ${actionName} action is not supported                                                                     |
434 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
435 |                       |     306        |     VNF NOT FOUND - VNF with ID ${vnfId} was not found                                                                               |
436 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
437 |                       |     307        |     DG WORKFLOW NOT FOUND - No DG workflow found for the combination of ${dgModule} module ${dgName} name and ${dgVersion} version   |
438 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
439 |                       |     308        |     WORKFLOW NOT FOUND - No workflow found for VNF type                                                                              |
440 |                       |                |                                                                                                                                      |
441 |                       |                |     ${vnfTypeVersion} and ${actionName} action                                                                                       |
442 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
443 |                       |     309        |     UNSTABLE VNF - VNF ${vnfId} is not stable to accept the command                                                                  |
444 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
445 |                       |     310        |     LOCKING FAILURE -${detailedErrorMsg}                                                                                             |
446 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
447 |                       |     311        |     EXPIREDREQUEST. The request processing time exceeded the maximum available time                                                  |
448 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
449 |                       |     312        |     DUPLICATEREQUEST. The request already exists                                                                                     |
450 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
451 |                       |     313        |     MISSING VNF DATA IN A&AI - ${attributeName} not found for VNF ID =                                                               |
452 |                       |                |                                                                                                                                      |
453 |                       |                |     ${vnfId}                                                                                                                         |
454 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
455 |                       |     315        |     MULTIPLE REQUESTS USING SEARCH CRITERIA: ${parameters}                                                                           |
456 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
457 |                       |     316        |     POLICY VALIDATION FAILURE - Request rejected as per the request validation policy                                                |
458 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
459 |     SUCCESS           |     400        |     The request was processed successfully                                                                                           |
460 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
461 |     FAILURE           |     401        |     DG FAILURE - ${ detailedErrorMsg }                                                                                               |
462 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
463 |                       |     402        |     NO TRANSITION DEFINED - No Transition Defined for ${ actionName} action and ${currentState} state                                |
464 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
465 |                       |     403        |     UPDATE\_AAI\_FAILURE - failed to update AAI. ${errorMsg}                                                                         |
466 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
467 |                       |     404        |     EXPIRED REQUEST FAILURE - failed during processing because TTL expired                                                           |
468 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
469 |                       |     405        |     UNEXPECTED FAILURE - ${detailedErrorMsg}                                                                                         |
470 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
471 |                       |     406        |     UNSTABLE VNF FAILURE - VNF ${vnfId} is not stable to accept the command                                                          |
472 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
473 |                       |     450        |     REQUEST NOT SUPPORTED                                                                                                            |
474 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
475 |     PARTIAL SUCCESS   |     500        |     PARTIAL SUCCESS                                                                                                                  |
476 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
477 |     PARTIAL FAILURE   |     501 -      |     PARTIAL FAILURE                                                                                                                  |
478 |                       |     599        |                                                                                                                                      |
479 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
480
481
482 Malformed Message Response
483 --------------------------
484
485 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.
486
487 **Response Format for Malformed Requests**::
488
489     {
490       "errors": {
491                   "error": [
492                             {
493                               "error-type": "protocol",
494                               "error-tag": "malformed-message",
495                               "error-message": "<ERROR-MESSAGE>",
496                               "error-info": "<ERROR-INFO>"
497                             }
498                            ]
499                 }
500     }
501
502
503 **Example Response**::
504
505     {
506       "errors": {
507                   "error": [
508                             {
509                               "error-type": "protocol",
510                               "error-tag": "malformed-message",
511                               "error-message": "Error parsing input: Invalid value 'Stopp' for
512                                enum type. Allowed values are: [Sync, Audit, Stop, Terminate]",
513                               "error-info": "java.lang.IllegalArgumentException: Invalid value
514                                 'Stopp' for enum type. Allowed values are: [Sync, Audit, Stop,
515                                 Terminate]..."
516                             }
517                            ]
518                 }
519     }
520
521
522
523 API Scope
524 =========
525
526 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.
527
528
529 Commands, or actions, can be performed at one or more of the following scope levels:
530
531
532 +-----------------+----------------------------------------------------------------------------------------+
533 | **VNF**         | Commands can be applied at the level of a specific VNF instance using the vnf-id.      |
534 +-----------------+----------------------------------------------------------------------------------------+
535 | **VF-Module**   | Commands can be applied at the level of a specific VF-Module using the vf-module-id.   |
536 +-----------------+----------------------------------------------------------------------------------------+
537 | **VNFC**        | Commands can be applied at the level of a specific VNFC instance using a vnfc-name.    |
538 +-----------------+----------------------------------------------------------------------------------------+
539 | **VM**          | Commands can be applied at the level of a specific VM instance using a vserver-id.     |
540 +-----------------+----------------------------------------------------------------------------------------+
541
542
543 **VNF/VM Types Supported**
544
545 Commands, or actions, may be currently supported on all VNF types or a limited set of VNF types. Note that the intent is to support all actions on all VNF types which have been successfully onboarded in a self-service mode.
546
547   - **Any** Currently supported on any vnf-type.
548
549   - **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.
550
551
552 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
553 |     **Command**             | **VNF**   |  **VF-Module**   |     **VNFC**   | **VM**   |     **VNF/VM Types Supported**                             |
554 +=============================+===========+==================+================+==========+============================================================+
555 |     ActionStatus            | Yes       |                  |                |          |     Any                                                    |
556 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
557 |     AttachVolume            |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
558 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
559 |     Audit                   | Yes       |                  |                |          |     Any (requires self-service onboarding)                 |
560 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
561 |     CheckLock               | Yes       |                  |                |          |     Any                                                    |
562 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
563 |     Configure               | Yes       |                  |                |          |     Any (requires self-service onboarding)                 |
564 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
565 |     ConfigBackup            | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
566 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
567 |     ConfigModify            | Yes       |                  |                |          |     Any (requires self-service onboarding)                 |
568 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
569 |     ConfigRestore           | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
570 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
571 |     ConfigScaleOut          | Yes       |                  |                |          |     Any (requires self-service onboarding)                 |
572 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
573 |     DetachVolume            |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
574 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
575 |     DistributeTraffic       | Yes       |                  | Yes            | Yes      | Chef and Ansible only (requires self-service onboarding)   |
576 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
577 |     DistributeTrafficCheck  | Yes       |                  | Yes            | Yes      | Chef and Ansible only (requires self-service onboarding)   |
578 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
579 |     Evacuate                |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
580 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
581 |     GetConfig               | Yes       |                  |                |          |     Ansible                                                |
582 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
583 |     HealthCheck             | Yes       |                  |                |          |     Any (requires self-service onboarding)                 |
584 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
585 |     LicenseManagement       | Yes       |                  |                |          |     Ansible                                                |
586 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
587 |     Lock                    | Yes       |                  |                |          |     Any                                                    |
588 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
589 |     Migrate                 |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
590 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
591 |     PostEvacuate            | Yes       |                  |                |          |     Ansible                                                |
592 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
593 |     PostMigrate             | Yes       |                  |                |          |     Ansible                                                |
594 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
595 |     PostRebuild             | Yes       |                  |                |          |     Ansible                                                |
596 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
597 |     PreConfigure            | Yes       |                  |                |          |     Ansible                                                |
598 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
599 |     PreEvacuate             | Yes       |                  |                |          |     Ansible                                                |
600 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
601 |     PreMigrate              | Yes       |                  |                |          |     Ansible                                                |
602 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
603 |     PreRebuild              | Yes       |                  |                |          |     Ansible                                                |
604 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
605 |     Provisioning            | Yes       |                  |                |          |     Ansible                                                |
606 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
607 |     QuiesceTraffic          | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
608 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
609 |     Reboot                  |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
610 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
611 |     Rebuild                 |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
612 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
613 |     Restart                 |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
614 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
615 |     ResumeTraffic           | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
616 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
617 |     Snapshot                |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
618 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
619 |     Start                   |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
620 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
621 |     StartApplication        | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
622 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
623 |     StartTraffic            | Yes       |                  |                |          |     Ansible                                                |
624 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
625 |     StatusTraffic           | Yes       |                  |                |          |     Ansible                                                |
626 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
627 |     Stop                    |           |                  |                | Yes      |     Any (uses OpenStack command)                           |
628 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
629 |     StopApplication         | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
630 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
631 |     StopTraffic             | Yes       |                  |                |          |     Ansible                                                |
632 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
633 |     Sync                    | Yes       |                  |                |          |     Any (requires self-service onboarding)                 |
634 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
635 |     Unlock                  | Yes       |                  |                |          |     Any                                                    |
636 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
637 |     UpgradeBackout          | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
638 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
639 |     UpgradeBackup           | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
640 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
641 |     UpgradePostCheck        | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
642 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
643 |     UpgradePreCheck         | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
644 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
645 |     UpgradeSoftware         | Yes       |                  |                |          | Chef and Ansible only (requires self-service onboarding)   |
646 +-----------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
647
648
649
650 Self-Service VNF Onboarding
651 ---------------------------
652
653 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:
654
655 -  Netconf with uploadable Yang model (requires a Netconf server running
656    on the VNF)
657
658 -  Chef (requires a Chef client running on the VNF)
659
660 -  Ansible (does not require any changes to the VNF software)
661
662 The self-service onboarding process is done using an APPC Design GUI (also referred to as CDT) 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:
663
664 -  Define the VNF capabilities (set of actions that the VNF can
665    support).
666
667 -  Create a template and parameter definitions for actions which use the
668    Netconf, Chef, or Ansible protocols. The template is an xml or JSON
669    block which defines the “payload” which is included in the request
670    that is downloaded the VNF (if Netconf) or Chef/Ansible server.
671
672 -  Test actions which have templates/parameter definitions.
673
674 -  Upload the VNF definition, template, and parameter definition
675    artifacts to SDC which distributes them to all APPC instances in the
676    same environment (e.g., production).
677
678 For more details, see the APPC CDT Onboarding User Guide.
679
680
681
682 LCM Commands
683 ============
684
685 The LCM commands that are valid for the current release.
686
687 ActionStatus
688 ------------
689
690 The ActionStatus command returns that state of any action request that has been previously submitted to an APPC instance for a specified VNF. This enables the client to know the status of a previous request and helps them decide if they should reissue a request.
691
692 +--------------------------+----------------------------------------------------------+
693 | **Target URL**           | /restconf /operations/ appc-provider-lcm:action-status   |
694 +--------------------------+----------------------------------------------------------+
695 | **Action**               | ActionStatus                                             |
696 +--------------------------+----------------------------------------------------------+
697 | **Action-Identifiers**   | vnf-id                                                   |
698 +--------------------------+----------------------------------------------------------+
699 | **Payload Parameters**   | See below                                                |
700 +--------------------------+----------------------------------------------------------+
701 | **Revision History**     | New in Beijing                                           |
702 +--------------------------+----------------------------------------------------------+
703
704 |
705
706 +-----------------------------+------------------------------------------------------------+--------------------+-------------------------------------+
707 |     **Payload Parameter**   |     **Description**                                        |     **Required**   |     **Example**                     |
708 +=============================+============================================================+====================+=====================================+
709 | request-id                  |     Request id from the previously submitted request       | Yes                |     "request-id": "123456789"       |
710 +-----------------------------+------------------------------------------------------------+--------------------+-------------------------------------+
711 | sub-request ID              |     Sub-Request id from the previously submitted request   | optional           |     "sub-request-id": "123456789"   |
712 +-----------------------------+------------------------------------------------------------+--------------------+-------------------------------------+
713 | originator-id               |     Originator id from the previously submitted request    | optional           |     "originator-id": "123456789"    |
714 +-----------------------------+------------------------------------------------------------+--------------------+-------------------------------------+
715
716
717 ActionStatus Response:
718 ^^^^^^^^^^^^^^^^^^^^^^
719
720 A successful response contains a payload with the following:
721
722 +-----------------------------+-----------------------------------------------------------------------+--------------------+------------------------------+
723 |     **Payload Parameter**   |     **Description**                                                   |     **Required**   |     **Example**              |
724 +=============================+=======================================================================+====================+==============================+
725 | status-reason               |     Contains more details about status                                | No                 |                              |
726 +-----------------------------+-----------------------------------------------------------------------+--------------------+------------------------------+
727 | status                      |     IN_PROGRESS – The request has been accepted and is in progress    | No                 |     "status": "SUCCESSFUL"   |
728 |                             |                                                                       |                    |                              |
729 |                             |     SUCCESSFUL – The request returned success message                 |                    |                              |
730 |                             |                                                                       |                    |                              |
731 |                             |     FAILED – The request failed and returned an error message         |                    |                              |
732 |                             |                                                                       |                    |                              |
733 |                             |     ABORTED – the request aborted                                     |                    |                              |
734 |                             |                                                                       |                    |                              |
735 |                             |     NOT_FOUND – The request is not found                              |                    |                              |
736 +-----------------------------+-----------------------------------------------------------------------+--------------------+------------------------------+
737
738 If the ActionStatus request was rejected or could not be processed, it returns a valid error code or error message (but no payload).Example below:
739
740     ``"message": "MULTIPLE REQUESTS FOUND - using search criteria:
741     request- id=c09ac7d1-de62-0016-2000-e63701125559 AND
742     vnf-id=ctsf0007v", "code": 315``
743
744 AttachVolume
745 ------------
746
747 The AttachVolume command attaches a cinder volume to a VM via an Openstack command.
748
749 Cinder is a Block Storage service for OpenStack. It's designed to present storage resources to end users that can be consumed by the OpenStack Compute Project (Nova). The short description of Cinder is that it virtualizes the management of block storage devices and provides end users with a self service API to request and consume those resources without requiring any knowledge of where their  storage is actually deployed or on what type of device.
750
751     NOTE: The command implementation is based on Openstack
752     functionality. For further details, see
753     http://developer.openstack.org/api-ref/compute/.
754
755 +--------------------------+----------------------------------------------------------+
756 | **Target URL**           | /restconf/operations/appc-provider-lcm:attach-volume     |
757 +--------------------------+----------------------------------------------------------+
758 | **Action**               | AttachVolume                                             |
759 +--------------------------+----------------------------------------------------------+
760 | **Action-Identifiers**   | vnf-id, vserver-id                                       |
761 +--------------------------+----------------------------------------------------------+
762 | **Payload Parameters**   | See table                                                |
763 +--------------------------+----------------------------------------------------------+
764 | **Revision History**     | New in Beijing                                           |
765 +--------------------------+----------------------------------------------------------+
766
767 |
768
769 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
770 |     **Payload Parameter**   |     **Description**                                  |     **Required**   |     **Example**                                                                                                           |
771 +=============================+======================================================+====================+===========================================================================================================================+
772 | volumeId                    |     The UUID of the volume to attach.                | Yes                |     "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803",                                                                   |
773 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
774 | device                      |     The device identifier                            | Yes                |     "device": "/dev/vdb"                                                                                                  |
775 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
776 | vm-id                       |     TThe self- link URL of the VM.                   | Yes                |     "vm-id": http://135.25.246.162:8774/v2/64af07e991424b8e9e54eca27d5c0d48/servers/b074cd1b-8d53-412e-a102-351cc51ac10a" |
777 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
778 | Identity-url                |     The identity URL used to access the resource     | Yes                |     "identity-url": "http://135.25.246.162:5000/v2.0"                                                                     |
779 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
780
781 AttachVolume Response:
782 ^^^^^^^^^^^^^^^^^^^^^^
783
784 Success: A successful AttachVolume returns a success status code 400.
785
786 Failure: A failed AttachVolume returns a failure code 401 and the failure message. Failure messages can include:
787
788 -  badRequest
789 -  unauthorized
790 -  forbidden
791 -  itemNotFound
792
793
794 Audit
795 -----
796
797 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.
798
799 A successful Audit means that the current VNF configuration matches the latest APPC stored configuration.
800
801 A failed Audit indicates that the configurations do not match.
802
803 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).
804
805 The Audit action does not require any payload parameters.
806
807 **NOTE:** Audit does not return a payload containing details of the comparison, only the Success/Failure status.
808
809
810 +------------------------------+------------------------------------------------------+
811 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:audit     |
812 +------------------------------+------------------------------------------------------+
813 |     **Action**               |     Audit                                            |
814 +------------------------------+------------------------------------------------------+
815 |     **Action-Identifiers**   |     vnf-id                                           |
816 +------------------------------+------------------------------------------------------+
817 |     **Payload Parameters**   |     See below                                        |
818 +------------------------------+------------------------------------------------------+
819 |     **Revision History**     |     Unchanged in this release.                       |
820 +------------------------------+------------------------------------------------------+
821
822 |
823
824 +----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+----------------------------------+
825 |     **Parameter**    |     **Description**                                                                                                                                       |     **Required?**   |     **Example**                  |
826 +======================+===========================================================================================================================================================+=====================+==================================+
827 |     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 message bus             |     Yes             |     "publish-config": "<Y\|N>"   |
828 |                      |                                                                                                                                                           |                     |                                  |
829 |                      |     \* If the publish\-config field is set to N in the payload, then:                                                                                     |                     |                                  |
830 |                      |                                                                                                                                                           |                     |                                  |
831 |                      |     - If the result of the audit is ‘match’ (latest APPC config and the running config match), do not send the running configuration                      |                     |                                  |
832 |                      |                                                                                                                                                           |                     |                                  |
833 |                      |     - If the result of the audit is ‘no match’, then send the running configuration                                                                       |                     |                                  |
834 +----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+----------------------------------+
835
836 Audit Response
837 ^^^^^^^^^^^^^^
838
839 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 bus which may be received by an external configuration storage system.
840
841
842 CheckLock
843 ---------
844
845 The CheckLock command returns true if the specified VNF is locked; otherwise, false is returned.
846
847 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.
848
849 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.
850
851 The CheckLock command returns a specific response structure that extends the default LCM response.
852
853 The CheckLock action does not require any payload parameters.
854
855 +------------------------------+--------------------------------------------------------+
856 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:checklock   |
857 +------------------------------+--------------------------------------------------------+
858 |     **Action**               |     CheckLock                                          |
859 +------------------------------+--------------------------------------------------------+
860 |     **Action-Identifiers**   |     vnf-id                                             |
861 +------------------------------+--------------------------------------------------------+
862 |     **Payload Parameters**   |     None                                               |
863 +------------------------------+--------------------------------------------------------+
864 |     **Revision History**     |     Unchanged in this release.                         |
865 +------------------------------+--------------------------------------------------------+
866
867 CheckLock Response
868 ^^^^^^^^^^^^^^^^^^
869
870 The CheckLock command returns a customized version of the LCM
871 response.
872
873
874 +---------------------+---------------------------------------------------------------------------------------+--------------------+---------------------------------+
875 |     **Parameter**   |     **Description**                                                                   |     **Required**   | **?Example**                    |
876 +=====================+=======================================================================================+====================+=================================+
877 |     locked          |     "TRUE"\|"FALSE" - returns TRUE if the specified VNF is locked, otherwise FALSE.   |     No             |     "locked": "<TRUE\|FALSE>"   |
878 +---------------------+---------------------------------------------------------------------------------------+--------------------+---------------------------------+
879
880
881 **Example**::
882
883     {
884       "output": {
885                   "status": {
886                               "code": <RESULT_CODE>, "message": "<RESULT_MESSAGE>"
887                             },
888                   "common-header": {
889                                      "api-ver": "<API_VERSION>",
890                                      "request-id": "<ECOMP\_REQUEST_ID>", "originator-id":
891                                      "<ECOMP_SYSTEM_ID>",
892                                      "sub-request-id": "<ECOMP_SUBREQUEST_ID>", "timestamp":
893                                      "2016-08-08T23:09:00.11Z",
894                                      "flags": {
895                                                 "ttl": <TTL_VALUE>, "force": "<TRUE|FALSE>",
896                                                 "mode": "<EXCLUSIVE|NORMAL>"
897                                               }
898                                    },
899                   "locked": "<TRUE|FALSE>"
900     }
901
902
903 Configure
904 ---------
905
906 Configure a VNF or a VNFC on the VNF after instantiation.
907
908 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.
909
910 A successful Configure request returns a success response.
911
912 A failed Configure action returns a failure response and the specific failure messages in the response block.
913
914 +------------------------------+--------------------------------------------------------+
915 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:configure   |
916 +------------------------------+--------------------------------------------------------+
917 |     **Action**               |     Configure                                          |
918 +------------------------------+--------------------------------------------------------+
919 |     **Action-Identifiers**   |     vnf-id                                             |
920 +------------------------------+--------------------------------------------------------+
921 |     **Payload Parameters**   |     See below                                          |
922 +------------------------------+--------------------------------------------------------+
923 |     **Revision History**     |     Unchanged in this release.                         |
924 +------------------------------+--------------------------------------------------------+
925
926 |
927
928 +---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
929 |     **Payload Parameter**       |     **Description**                                                                                                                                                                                            |     **Required?**   |     **Example**                                                 |
930 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
931 +=================================+================================================================================================================================================================================================================+=====================+=================================================================+
932 |     request-parameters          |     vnf-host-ip-address: optional if Netconf or other direct interface to the VNF.   If not provided, APPC will look for the host-ip-address in the A&AI VNF oam ipv4 address field.                           |     No              |                                                                 |
933 |                                 |                                                                                                                                                                                                                |                     |     "payload":                                                  |
934 |                                 |     vnfc-type:  must be included if template is vnfc specific                                                                                                                                                  |                     |     "{ \\"request-parameters                                    |
935 |                                 |                                                                                                                                                                                                                |                     |     \\": {                                                      |
936 |                                 |                                                                                                                                                                                                                |                     |     \\"vnf-host-ip-address\\":                                  |
937 |                                 |                                                                                                                                                                                                                |                     |     \\”value\\”,                                                |
938 |                                 |                                                                                                                                                                                                                |                     |     \\”vnfc-type\\”: \\”value\\”’                               |
939 |                                 |                                                                                                                                                                                                                |                     |     }                                                           |
940 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
941 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
942 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
943 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
944 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
945 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
946 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
947 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
948 |                                 |                                                                                                                                                                                                                |                     |                                                                 |
949 +---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+                                                                 |
950 |     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              |      \\"configuration- parameters\\": {\\"<CONFIG- PARAMS>\\"}  |
951 +---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
952
953
954 Configure Response
955 ^^^^^^^^^^^^^^^^^^
956
957 The Configure response returns an indication of success or failure of the request. 
958
959 **Success:** A successful Configure returns a success status code 400.
960 **Failure:** A failed Configure returns a failure code 401 and the failure message.  
961
962 If successful, the return payload contains the ‘upload_config_id’ and values for any records created in the APPC DB. In addition, the configuration is sent to the ONAP Data Router bus  which may be received by an external configuration storage system.
963
964 If APPC in unable to update A&AI with the VNFC records, a 501 intermediate error message returned prior to the final 400 or 401 success message.
965
966 ConfigModify
967 ------------
968
969 Modifies the configuration on a VNF or VNFC in service.
970
971 This command is executed either directly on the VNF (such as for Netconf) or using an Ansible playbook or Chef cookbook.
972
973 Request Structure:
974
975 +--------------------------+--------------------------------------------------------+
976 | **Target URL**           | /restconf/operations/appc-provider-lcm:config-modify   |
977 +--------------------------+--------------------------------------------------------+
978 | **Action**               | ConfigModify                                           |
979 +--------------------------+--------------------------------------------------------+
980 | **Action-Identifiers**   | vnf-id                                                 |
981 +--------------------------+--------------------------------------------------------+
982 | **Payload Parameters**   | request-parameters, configuration-parameters           |
983 +--------------------------+--------------------------------------------------------+
984 | **Revision History**     | Unchanged in this release.                             |
985 +--------------------------+--------------------------------------------------------+
986
987 Request Payload Parameters:
988
989 +-------------------------+----------------------------------------+-----------------+-------------------------------------------------------+
990 | **Payload Parameter**   | **Description**                        | **Required?**   |     **Example**                                       |
991 +=========================+========================================+=================+=======================================================+
992 | request-parameters      | vnf-host-ip-address: optional if       | No              |     "payload":                                        |
993 |                         | Netconf or other direct interface      |                 |     "{\\"request-parameters \\":                      |
994 |                         | to the VNF. If not provided, it is     |                 |     {\\"vnf-host-ip-address\\": \\”value\\",          |
995 |                         | obtained from A&AI                     |                 |     \\”vnfc-type\\”: \\”value\\”                      |
996 |                         |                                        |                 |     }                                                 |
997 |                         |                                        |                 |                                                       |
998 |                         | vnfc-type: must be included if template|                 |                                                       |
999 |                         | is vnfc specific                       |                 |                                                       |
1000 |                         |                                        |                 |     \\"configuration- parameters\\": {\\"name1\\":    |
1001 |                         |                                        |                 |     \\”value1\\”,\\"name2\\":                         |
1002 |                         |                                        |                 |     \\”value2\\”                                      |
1003 |                         |                                        |                 |     }                                                 |
1004 |                         |                                        |                 |     }                                                 |
1005 +-------------------------+----------------------------------------+-----------------+                                                       |
1006 | configuration-          | A set of instance specific             | No              |                                                       |
1007 | parameters              | configuration parameters should        |                 |                                                       |
1008 |                         | be specified.                          |                 |                                                       |
1009 +-------------------------+----------------------------------------+-----------------+-------------------------------------------------------+
1010
1011 ConfigModify Request
1012 ^^^^^^^^^^^^^^^^^^^^
1013
1014     Examples::
1015
1016               {
1017                      "input": {
1018                           "common-header": {
1019                               "timestamp": "2017-10-25T11:10:04.244Z",
1020                               "api-ver": "2.00",
1021                               "originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced200",
1022                               "request-id": "664be3d2-6c12-4f4b-a3e7-c349acced200",
1023                               "sub-request-id": "1",
1024                               "flags": {
1025                                   "force": "TRUE",
1026                                   "ttl": 60000
1027                               }
1028                           },
1029                           "action": "ConfigModify",
1030                           "action-identifiers": {
1031                               "vnf-id": "<VNF_ID>"
1032                           },
1033                           "payload": "{ \"config-url\":\"5f517fd4-bf3d-43bc-8147-1b61776d7ded\",
1034                                         \"config-json\": \"{\"pg-streams\":{
1035                                         \"pg-stream\": [{ \"id\":\"fw_udp1\", \"is-enabled\": \"true\" }, 
1036                                         {\"id\": \"fw_udp2\", \"is-enabled\":\"true\" }, 
1037                                         { \"id\": \"fw_udp3\",\"is-enabled\": \"true\" },
1038                                         { \"id\":\"fw_udp4\", \"is-enabled\": \"true\" }, 
1039                                         {\"id\": \"fw_udp5\", \"is-enabled\":\"true\" }]}}"
1040                           }
1041                       }
1042              }
1043
1044
1045 ConfigModify Response
1046 ^^^^^^^^^^^^^^^^^^^^^
1047
1048 **Success:** A successful ConfigModify returns a success status code 400.
1049
1050 If successful, the return payload contains the ‘upload_config_id’ and values associated with the configuration stored in the APPC DB. In addition, the configuration is sent to the message bus which may be received by an external configuration storage system.
1051
1052 **Failure:** A failed ConfigModify returns a failure code 401 and the failure message.
1053
1054 ConfigBackup
1055 ------------
1056
1057 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).
1058
1059 A successful ConfigBackup request returns a success response.
1060
1061 A failed ConfigBackup action returns a failure response code and the specific failure message in the response block.
1062
1063 +------------------------------+-----------------------------------------------------------+
1064 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:config-backup  |
1065 +------------------------------+-----------------------------------------------------------+
1066 |     **Action**               |     ConfigBackup                                          |
1067 +------------------------------+-----------------------------------------------------------+
1068 |     **Action-Identifiers**   |     Vnf-id                                                |
1069 +------------------------------+-----------------------------------------------------------+
1070 |     **Payload Parameters**   |     See below                                             |
1071 +------------------------------+-----------------------------------------------------------+
1072 |     **Revision History**     |     Unchanged in this release.                            |
1073 +------------------------------+-----------------------------------------------------------+
1074
1075 |
1076
1077 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-------------------------------------------------------------------+
1078 |     **Payload Parameter**       |     **Description**                                                                                                                                                                |     **Required?**   |     **Example**                                                   |
1079 +=================================+====================================================================================================================================================================================+=====================+===================================================================+
1080 |     request-parameters          |     Not used. This request is limited to Ansible and Chef only.                                                                                                                    |     No              | "payload": \\"configuration-parameters\\": {\\"<CONFIG-PARAMS>\\"}|
1081 |                                 |                                                                                                                                                                                    |                     |                                                                   |
1082 |                                 |                                                                                                                                                                                    |                     |                                                                   |
1083 |                                 |                                                                                                                                                                                    |                     |                                                                   |
1084 |                                 |                                                                                                                                                                                    |                     |                                                                   |
1085 |                                 |                                                                                                                                                                                    |                     |                                                                   |
1086 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+                                                                   |
1087 |     configuration-parameters    |     A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook.                                                 |     No              |                                                                   |
1088 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-------------------------------------------------------------------+
1089
1090 ConfigBackup Response
1091 ^^^^^^^^^^^^^^^^^^^^^
1092
1093 The ConfigBackup response returns an indication of success or failure of the request.
1094
1095 **Success:** A successful ConfigBackup returns a success status code 400.
1096 **Failure:** A failed ConfigBackup returns a failure code 401 and the failure message.  
1097
1098
1099 ConfigRestore
1100 -------------
1101
1102 Applies a previously saved configuration to the active VNF configuration. This is limited to Ansible and Chef. There can only be one stored configuration.
1103
1104 A successful ConfigRestore request returns a success response.
1105
1106 A failed ConfigRestore action returns a failure response code and the specific failure message in the response block.
1107
1108 +------------------------------+------------------------------------------------------------------------------------------+
1109 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:config-restore                                |
1110 +------------------------------+------------------------------------------------------------------------------------------+
1111 |     **Action**               |     ConfigRestore                                                                        |
1112 +------------------------------+------------------------------------------------------------------------------------------+
1113 |     **Action-Identifiers**   |     Vnf-id                                                                               |
1114 +------------------------------+------------------------------------------------------------------------------------------+
1115 |     **Payload Parameters**   |     See below                                                                            |
1116 +------------------------------+------------------------------------------------------------------------------------------+
1117 |     **Revision History**     |     Unchanged in this release.                                                           |
1118 +------------------------------+------------------------------------------------------------------------------------------+
1119
1120 |
1121
1122 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1123 |     **Parameter**               |     **Description**                                                                                                                                                                |     **Required?**   |     **Example**                                                 |
1124 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
1125 |     request-parameters          |     Not used. This request is limited to Ansible and Chef only.                                                                                                                    |     No              |     "payload":                                                  |
1126 |                                 |                                                                                                                                                                                    |                     |     \\"configuration-parameters\\": {\\"<CONFIG- PARAMS>\\"}    |
1127 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+                                                                 |
1128 |     configuration-parameters    |     A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook.                                                 |     No              |                                                                 |
1129 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1130
1131 ConfigRestore Response
1132 ^^^^^^^^^^^^^^^^^^^^^^
1133
1134 **Success:** A successful ConfigRestore returns a success status code 400.
1135
1136 If successful, the return payload contains the ‘upload_config_id’ and values associated with the configuration stored in the APPC DB.  In addition, the configuration is sent to the ONAP Data Router bus which may be received by an external configuration storage system.
1137
1138 **Failure:** A failed ConfigRestore returns a failure code 401 and the failure message.
1139
1140
1141
1142 ConfigScaleOut
1143 --------------
1144
1145 The ConfigScaleOut command is used to apply any actions on a VNF as part of a ScaleOut flow. Actions could include updating the VNF configuration or running a set of other tasks.
1146
1147 The ConfigScaleOut action can have multiple APPC templates associated with it.  APPC retrieves the VfModuleModelName from A&AI (model.model-vers.model-name), which is used as the unique identifier to select the correct APPC template.
1148 APPC creates or updates VNFC records in A&AI for the newly instantiated VM’s.  The orchestration-status of the VNFC’s is set to CONFIGURED.
1149
1150 This action is supported via the Netconf (limited to configuration changes), Chef, and Ansible protocols.
1151
1152 |
1153
1154 +------------------------------+------------------------------------------------------------------------------------------+
1155 |     **Target URL**           |     /restconf /operations/appc-provider-lcm:config-scale-out                             |
1156 +------------------------------+------------------------------------------------------------------------------------------+
1157 |     **Action**               |     ConfigScaleOut                                                                       |
1158 +------------------------------+------------------------------------------------------------------------------------------+
1159 |     **Action-Identifiers**   |     Vnf-id                                                                               |
1160 +------------------------------+------------------------------------------------------------------------------------------+
1161 |     **Payload Parameters**   |     See below                                                                            |
1162 +------------------------------+------------------------------------------------------------------------------------------+
1163 |     **Revision History**     |     New in Beijing                                                                       |
1164 +------------------------------+------------------------------------------------------------------------------------------+
1165
1166 |
1167
1168 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------------+
1169 |     **Payload Parameter**       |     **Description**                                                                                                                                              |     **Required?**   |     **Example**                             |
1170 +=================================+==================================================================================================================================================================+=====================+=============================================+
1171 |     request-parameters          |     vnf-host-ip-address: optional if Netconf or other direct interface to the VNF.   If not provided, the vnf-host-ip-address will be obtained from A&AI.        |     No              |      "payload":                             |
1172 |                                 +------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+      "{\\"request-parameters \\":           |
1173 |                                 |     vf-module-id:  used to determine the A&AI VM inventory associated with ConfigScaleOut.                                                                       |     Yes             |      {                                      |
1174 |                                 +------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+      \\"vnf-host-ip-address\\":             |
1175 |                                 |     controller-template-id: optional. This is a unique identifier that will identify the template associated with the ConfigScaleOut.                            |                     |      \\”value\\”,                           |
1176 |                                 |     Will be needed if A&AI does not contain the template identifier.                                                                                             |     No              |      \\”vf-module-id\\”: \\”value\\”,       |
1177 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+      \\”controller-template-id\\”:          |                                                         
1178 |     configuration-parameters    |     A set of instance specific configuration parameters should be specified. If provided, APP-C replaces variables in the configuration template with the        |     No              |      \\”value\\”                            |
1179 |                                 |     values supplied.                                                                                                                                             |                     |      }                                      |
1180 |                                 |                                                                                                                                                                  |                     |                                             |
1181 |                                 |                                                                                                                                                                  |                     |      \\"configuration-parameters\\":        |
1182 |                                 |                                                                                                                                                                  |                     |        {\\"<CONFIG- PARAMS>\\"}             |
1183 |                                 |                                                                                                                                                                  |                     |                                             |
1184 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------------+
1185
1186 ConfigScaleOut Response
1187 ^^^^^^^^^^^^^^^^^^^^^^^
1188
1189 **Success:**  
1190
1191  - A successful ConfigScaleOut returns a success status code 400 when completed.
1192  
1193 **Failure:** 
1194
1195  - A failed ConfigScaleOut returns a failure code 401 and the failure message. 
1196  - If the ConfigScaleOut is successfully performed on the VNF but there is a failure to update A&AI inventory, an intermediate failure message with failure code 501 is returned prior to the final 400 success message.
1197
1198
1199 DetachVolume
1200 ------------
1201
1202 The DetachVolume command detaches a cinder volume from a VM via an Openstack command.
1203
1204 Cinder is a Block Storage service for OpenStack. It's designed to present storage resources to end users that can be consumed by the OpenStack Compute Project (Nova). The short description of Cinder is that it virtualizes the management of block storage devices and provides end users with a self-service API to request and consume those resources without requiring any knowledge of where their storage is actually deployed or on what type of device.
1205
1206 NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1207
1208 +--------------------------+----------------------------------------------------------+
1209 | **Target URL**           | /restconf/operations/appc-provider-lcm:detach-volume     |
1210 +--------------------------+----------------------------------------------------------+
1211 | **Action**               | DetachVolume                                             |
1212 +--------------------------+----------------------------------------------------------+
1213 | **Action-Identifiers**   | vnf-id, vserver-id                                       |
1214 +--------------------------+----------------------------------------------------------+
1215 | **Payload Parameters**   | See table                                                |
1216 +--------------------------+----------------------------------------------------------+
1217 | **Revision History**     | New in Beijing                                           |
1218 +--------------------------+----------------------------------------------------------+
1219
1220 Request Payload Parameters:
1221
1222 +-----------------------------+----------------------------------------------------------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------+
1223 |     **Payload Parameter**   |     **Description**                                            |     **Required**   |     **Example**                                                                                                                |
1224 +=============================+================================================================+====================+================================================================================================================================+
1225 | volumeId                    |     The UUID of the volume to detach.                          | Yes                |     "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803"                                                                         |
1226 +-----------------------------+----------------------------------------------------------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------+
1227 | vm-id                       |     The self- link URL of the VM.                              | Yes                |     "vm-id": http://135.25.246.162:8774/v2/64af07e991424b8e9e54eca27d5c0d48/servers/b074cd1b-8d53-412e-a102-351cc51ac10a"      |
1228 +-----------------------------+----------------------------------------------------------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------+
1229 | Identity-url                |     The identity URL used to access the resource               | Yes                |     "identity-url": "http://135.25.246.162:5000/v2.0"                                                                          |
1230 +-----------------------------+----------------------------------------------------------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------+
1231
1232 DetachVolume Response:
1233 ^^^^^^^^^^^^^^^^^^^^^^
1234
1235 **Success:** A successful DetachVolume returns a success status code 400.
1236
1237 **Failure:** A failed DetachVolume returns a failure code 401 and the failure message. Failure messages can include:
1238
1239         -  badRequest
1240         -  unauthorized
1241         -  forbidden
1242         -  itemNotFound
1243         -  conflict
1244
1245 DistributeTraffic
1246 -----------------
1247
1248 The Distribute Traffic LCM action is used to distribute traffic across different instances of VNF, VNFC or VM.
1249 The entity for which Distribute Traffic LCM action is being invoked is called an anchor point that is responsible for final
1250 realization of request. Parameters present in configuration file specify where and how traffic should be distributed,
1251 including: traffic destination points like VNFs, VNFCs or VMs; distribution weights; rollback strategy.
1252 Format of configuration file is specific to each VNF type. The Optimization Framework component and Homing, Allocation and
1253 Placement mechanism can be used to retrieve instances of vf-modules of anchor points and destination points with
1254 corresponding policies.
1255
1256 This command is executed using an Ansible playbook or Chef cookbook.
1257
1258 Request Structure:
1259
1260 +--------------------------+--------------------------------------------------------------+
1261 | **Target URL**           | /restconf/operations/appc-provider-lcm:distribute-traffic    |
1262 +--------------------------+--------------------------------------------------------------+
1263 | **Action**               | DistributeTraffic                                            |
1264 +--------------------------+--------------------------------------------------------------+
1265 | **Action-identifiers**   | vnf-id, vserver-id, vnfc-name                                |
1266 +--------------------------+--------------------------------------------------------------+
1267 | **Payload Parameters**   | See below                                                    |
1268 +--------------------------+--------------------------------------------------------------+
1269 | **Revision History**     | New in Casablanca                                            |
1270 +--------------------------+--------------------------------------------------------------+
1271
1272 Request Payload Parameters:
1273
1274 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+------------------------------------------------------------------------------+
1275 | **Parameter**                   |     **Description**                                                                                                                                              |     **Required?**   |     **Example**                                                              |
1276 +=================================+==================================================================================================================================================================+=====================+==============================================================================+
1277 |     configuration-parameters    |     A set of instance specific configuration parameters should be specified. If provided, APP-C replaces variables in the configuration template with the        |     No              | "payload": "{\"configuration-parameters\": {\"file_parameter_content\":      |
1278 |                                 |     values supplied. The parameters are associated with request template defined with CDT                                                                        |                     | \"{\\\"destinations\\\": [{\\\"locationType\\\": \\\"att_aic\\\",            |
1279 |                                 |                                                                                                                                                                  |                     | \\\"isRehome\\\": \\\"false\\\", \\\"aic_version\\\": \\\"1\\\",             |
1280 |                                 |                                                                                                                                                                  |                     | \\\"ipv4-oam-address\\\": \\\"\\\", \\\"nf-name\\\":                         |
1281 |                                 |                                                                                                                                                                  |                     | \\\"Ete_vFWDTvFWSNK_ccc04407_1\\\", \\\"cloudOwner\\\":                      |
1282 |                                 |                                                                                                                                                                  |                     | \\\"CloudOwner\\\", \\\"service_instance_id\\\":                             |
1283 |                                 |                                                                                                                                                                  |                     | \\\"319e60ef-08b1-47aa-ae92-51b97f05e1bc\\\",                                |
1284 |                                 |                                                                                                                                                                  |                     | \\\"vf-module-id\\\": \\\"0dce0e61-9309-449a-8e3e-f001635aaab1\\\",          |
1285 |                                 |                                                                                                                                                                  |                     | \\\"cloudClli\\\": \\\"clli1\\\", \\\"ipv6-oam-address\\\": \\\"\\\",        |
1286 |                                 |                                                                                                                                                                  |                     | \\\"vf-module-name\\\": \\\"Vfmodule_Ete_vFWDTvFWSNK_ccc04407_1\\\",         |
1287 |                                 |                                                                                                                                                                  |                     | \\\"vnfHostName\\\": \\\"Ete_vFWDTvFWSNK_ccc04407_1\\\", \\\"nf-id\\\":      |
1288 |                                 |                                                                                                                                                                  |                     | (...)                                                                        |
1289 |                                 |                                                                                                                                                                  |                     | \\\"Vfmodule_Ete_vFWDTvFWSNK_ccc04407_1-vfw_private_1_port-6yfzndtyjzfz\\\", |
1290 |                                 |                                                                                                                                                                  |                     | \\\"ipv4-addresses\\\": [\\\"192.168.20.100\\\"], \\\"interface-id\\\":      |
1291 |                                 |                                                                                                                                                                  |                     | \\\"0a1d0300-de02-46e8-99f6-e786f1ba407a\\\", \\\"network-name\\\":          |
1292 |                                 |                                                                                                                                                                  |                     | \\\"\\\", \\\"ipv6-addresses\\\": []}]}], \\\"nf-type\\\": \\\"vnf\\\"}]}\", |
1293 |                                 |                                                                                                                                                                  |                     | \"fixed_ip_address\": \"10.0.210.103\", \"book_name\":                       |
1294 |                                 |                                                                                                                                                                  |                     | \"vpgn/latest/ansible/distributetraffic/site.yml\",                          |
1295 |                                 |                                                                                                                                                                  |                     | \"ne_id\": \"vofwl01pgn4407\"}}",                                            |
1296 |                                 |                                                                                                                                                                  |                     |                                                                              |
1297 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+------------------------------------------------------------------------------+
1298
1299 Exemplary CDT template for Ansible protocol::
1300
1301     {
1302         "InventoryNames": "VM",
1303         "PlaybookName": "${()=(book_name)}",
1304         "NodeList": [{
1305             "vm-info": [{
1306                 "ne_id": "${()=(ne_id)}",
1307                 "fixed_ip_address": "${()=(fixed_ip_address)}"
1308             }],
1309             "site": "site",
1310             "vnfc-type": "some-vnfc"
1311         }],
1312         "EnvParameters": {
1313             "ConfigFileName": "../traffic_distribution_config.json",
1314             "vnf_instance": "instance",
1315         },
1316         "FileParameters": {
1317             "traffic_distribution_config.json": "${()=(file_parameter_content)}"
1318         },
1319         "Timeout": 3600
1320     }
1321
1322 EnvParameters includes protocol specific parameters, here with name of configuration file having additional parameters for Ansible playbook or Chef cookbook.
1323 Distribute Traffic config file can have such parameters like traffic destinations, distribution weights or rollback strategy.
1324
1325 DistributeTraffic Response
1326 ^^^^^^^^^^^^^^^^^^^^^^^^^^
1327
1328 The response does not include any payload parameters.
1329
1330 **Success:** A successful distribute returns a success status code 400 after all traffic has been distributed.
1331
1332 **Failure:** A failed distribute returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
1333
1334
1335 DistributeTrafficCheck
1336 ----------------------
1337
1338 The Distribute Traffic Check LCM action complements Distribute Traffic LCM action with capabilities to test if destination point
1339 is ready to handle traffic or if anchor point accepts the configuration of destinations for traffic distribution. Finally,
1340 this action can be used to check if destination points handle traffic accordingly with the configuration.
1341
1342 This command is executed using an Ansible playbook or Chef cookbook.
1343
1344 Request Structure:
1345
1346 +--------------------------+--------------------------------------------------------------------+
1347 | **Target URL**           | /restconf/operations/appc-provider-lcm:distribute-traffic-check    |
1348 +--------------------------+--------------------------------------------------------------------+
1349 | **Action**               | DistributeTrafficCheck                                             |
1350 +--------------------------+--------------------------------------------------------------------+
1351 | **Action-identifiers**   | vnf-id, vserver-id, vnfc-name                                      |
1352 +--------------------------+--------------------------------------------------------------------+
1353 | **Payload Parameters**   | See below                                                          |
1354 +--------------------------+--------------------------------------------------------------------+
1355 | **Revision History**     | New in Dublin                                                      |
1356 +--------------------------+--------------------------------------------------------------------+
1357
1358 Request Payload Parameters:
1359
1360 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------------------------------+
1361 | **Parameter**                   |     **Description**                                                                                                                                              |     **Required?**   |     **Example**                                               |
1362 +=================================+==================================================================================================================================================================+=====================+===============================================================+
1363 |     configuration-parameters    |     A set of instance specific configuration parameters should be specified. If provided, APP-C replaces variables in the configuration template with the        |     No              |  "payload": "{\"configuration-parameters\":                   |
1364 |                                 |     values supplied. The parameters are associated with request template defined with CDT                                                                        |                     |  {\"file_parameter_content\": \"{\\\"destinations\\\":        |
1365 |                                 |                                                                                                                                                                  |                     |  [                                                            |
1366 |                                 |                                                                                                                                                                  |                     |  {\\\"locationType\\\": \\\"att_aic\\\",                      |
1367 |                                 |                                                                                                                                                                  |                     |  \\\"isRehome\\\": \\\"false\\\",                             |
1368 |                                 |                                                                                                                                                                  |                     |  \\\"aic_version\\\": \\\"1\\\",                              |
1369 |                                 |                                                                                                                                                                  |                     |  \\\"ipv4-oam-address\\\": \\\"\\\",                          |
1370 |                                 |                                                                                                                                                                  |                     |  \\\"nf-name\\\": \\\"Ete_vFWDTvFWSNK_ccc04407_1\\\",         |
1371 |                                 |                                                                                                                                                                  |                     |  \\\"cloudOwner\\\": \\\"CloudOwner\\\",                      |
1372 |                                 |                                                                                                                                                                  |                     |  \\\"service_instance_id\\\":                                 |
1373 |                                 |                                                                                                                                                                  |                     |  \\\"319e60ef-08b1-47aa-ae92-51b97f05e1bc\\\",                |
1374 |                                 |                                                                                                                                                                  |                     |  \\\"vf-module-id\\\":                                        |
1375 |                                 |                                                                                                                                                                  |                     |  \\\"0dce0e61-9309-449a-8e3e-f001635aaab1\\\",                |
1376 |                                 |                                                                                                                                                                  |                     |  \\\"cloudClli\\\": \\\"clli1\\\",                            |
1377 |                                 |                                                                                                                                                                  |                     |  \\\"ipv6-oam-address\\\": \\\"\\\",                          |
1378 |                                 |                                                                                                                                                                  |                     |  \\\"vf-module-name\\\":                                      |
1379 |                                 |                                                                                                                                                                  |                     |  \\\"Vfmodule_Ete_vFWDTvFWSNK_ccc04407_1\\\",                 |
1380 |                                 |                                                                                                                                                                  |                     |  \\\"vnfHostName\\\":                                         |
1381 |                                 |                                                                                                                                                                  |                     |  \\\"Ete_vFWDTvFWSNK_ccc04407_1\\\",                          |
1382 |                                 |                                                                                                                                                                  |                     |  \\\"nf-id\\\": \\\"909d396b-4d99-4c6a-a59b-abe948873303\\\", |
1383 |                                 |                                                                                                                                                                  |                     |  (...)                                                        |
1384 |                                 |                                                                                                                                                                  |                     |  \\\"trafficPresence\\\": true}\",                            |
1385 |                                 |                                                                                                                                                                  |                     |  \"fixed_ip_address\": \"10.0.110.1\", \"book_name\":         |
1386 |                                 |                                                                                                                                                                  |                     |  \"vfw-sink/latest/ansible/distributetrafficcheck/site.yml\", |
1387 |                                 |                                                                                                                                                                  |                     |  \"ne_id\": \"vofwl02vfw4407\"}}"                             |
1388 |                                 |                                                                                                                                                                  |                     |                                                               |
1389 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------------------------------+
1390
1391 Exemplary CDT template for Ansible protocol::
1392
1393     {
1394         "InventoryNames": "VM",
1395         "PlaybookName": "${()=(book_name)}",
1396         "NodeList": [{
1397             "vm-info": [{
1398                 "ne_id": "${()=(ne_id)}",
1399                 "fixed_ip_address": "${()=(fixed_ip_address)}"
1400             }],
1401             "site": "site",
1402             "vnfc-type": "some-vnfc"
1403         }],
1404         "EnvParameters": {
1405             "ConfigFileName": "../traffic_distribution_config.json",
1406             "vnf_instance": "instance",
1407         },
1408         "FileParameters": {
1409             "traffic_distribution_config.json": "${()=(file_parameter_content)}"
1410         },
1411         "Timeout": 3600
1412     }
1413
1414 EnvParameters includes protocol specific parameters, here with name of configuration file having additional parameters for Ansible playbook or Chef cookbook.
1415 Distribute Traffic config file can have similar parameters like the one Distribute Traffic action and can have some extra information like the type of check to
1416 be performed. In the payload example there is a trafficPresence parameter that emphasises if the traffic is expected on vFW instance.
1417
1418 DistributeTrafficCheck Response
1419 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1420
1421 The response does not include any payload parameters.
1422
1423 **Success:** A successful distribute traffic check returns a success status code 400 when conditions are satisfied.
1424
1425 **Failure:** A failed check returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
1426
1427
1428
1429 Evacuate
1430 --------
1431
1432 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).
1433
1434 The host on which the VM resides needs to be down.
1435
1436 If the target host 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.
1437
1438 After Evacuate, the rebuild VM can be disabled by setting the optional `rebuild-vm` parameter to false.
1439
1440 A successful Evacuate action returns a success response. A failed Evacuate action returns a failure.
1441
1442 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1443
1444 +------------------------------+-------------------------------------------------------------------------+
1445 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:evacuate                     |
1446 +------------------------------+-------------------------------------------------------------------------+
1447 |     **Action**               |     Evacuate                                                            |
1448 +------------------------------+-------------------------------------------------------------------------+
1449 |     **Action-identifiers**   |     Vnf-id, vserver-id                                                  |
1450 +------------------------------+-------------------------------------------------------------------------+
1451 |     **Payload Parameters**   |     vm-id, identity-url, tenant-id, rebuild-vm, targethost-id           |
1452 +------------------------------+-------------------------------------------------------------------------+
1453 |     **Revision History**     |     Unchanged in this release.                                          |
1454 +------------------------------+-------------------------------------------------------------------------+
1455
1456 |
1457
1458 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
1459 |     **Parameter**    |     **Description**                                                                                                                                                              |     **Required?**   |     **Example**                       |
1460 +======================+==================================================================================================================================================================================+=====================+=======================================+
1461 |     vm-id            |     The unique identifier (UUID) of the resource. For backwards- compatibility, this can be the self-link URL of the VM.                                                         |     Yes             |     "payload":                        |
1462 |                      |                                                                                                                                                                                  |                     |     "{\\"vm-id\\": \\"<VM-ID>         |
1463 |                      |                                                                                                                                                                                  |                     |     \\",                              |
1464 |                      |                                                                                                                                                                                  |                     |     \\"identity-url\\":               |
1465 |                      |                                                                                                                                                                                  |                     |     \\"<IDENTITY-URL>\\",             |
1466 |                      |                                                                                                                                                                                  |                     |     \\"tenant-id\\": \\"<TENANT-ID>   |
1467 |                      |                                                                                                                                                                                  |                     |     \\",                              |
1468 |                      |                                                                                                                                                                                  |                     |     \\"rebuild-vm\\": \\"false\\",    |
1469 |                      |                                                                                                                                                                                  |                     |     \\"targethost-id\\":              |
1470 |                      |                                                                                                                                                                                  |                     |     \\"nodeblade7\\"}"                |
1471 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+                                       |
1472 |     identity-url     |     The identity URL used to access the resource                                                                                                                                 |     Yes             |                                       |
1473 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+                                       |
1474 |     tenant-id        |     The id of the provider tenant that owns the resource                                                                                                                         |     Yes             |                                       |
1475 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+                                       |
1476 |     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              |                                       |
1477 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+                                       |
1478 |     targethost- id   |     A target hostname indicating the host the VM is evacuated to. By default, the cloud determines the target host.                                                              |     No              |                                       |
1479 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
1480
1481 Evacuate Response:
1482 ^^^^^^^^^^^^^^^^^^
1483 **Success:** A successful Evacuate returns a success status code 400.
1484 **Failure:** A failed Evacuate returns a failure code 401 and the failure message.
1485
1486
1487 GetConfig
1488 ---------
1489
1490 GetConfig LCM action for the MVM VNF types using the GetConfig playbook
1491 to retrieve the current config. This is limited to Ansible.
1492
1493 A successful GetConfig request returns a success response.
1494
1495 A failed GetConfig action returns a failure response code and the
1496 specific failure message in the response block.
1497
1498
1499 ====================== =================================================
1500 **Target URL**         /restconf/operations/appc-provider-lcm: GetConfig
1501 ====================== =================================================
1502 **Action**             GetConfig
1503 **Action-Identifiers** vnf-id
1504 **Payload Parameters** See table
1505 **Revision History**   New in Frankfurt
1506 ====================== =================================================
1507
1508 ========================= ========================================================================================================= ============= ======================================================================================================
1509 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1510 ========================= ========================================================================================================= ============= ======================================================================================================
1511 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "payload": "{\"configuration-parameters\":{\"vnf_name\":\"test\",\"operations_timeout\":\"3600\"}}" or
1512                                                                                                                                                  
1513                                                                                                                                                   "payload": "{}"
1514 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1515 ========================= ========================================================================================================= ============= ======================================================================================================
1516
1517 GetConfig Response:
1518 ~~~~~~~~~~~~~~~~~~~
1519
1520 Success: A successful GetConfig returns a success status code 400.
1521
1522 Failure: A failed GetConfig returns a failure code 401 and the failure
1523 message.
1524
1525
1526 HealthCheck
1527 -----------
1528
1529 This command runs a VNF health check and returns the result.
1530
1531 The VNF level HealthCheck is a check over the entire scope of the VNF. The VNF must be 100% healthy, ready to take requests and provide services, with all VNF required capabilities ready to provide services and with all active and standby resources fully ready with no open MINOR, MAJOR or CRITICAL alarms.
1532
1533
1534 +------------------------------+-----------------------------------------------------------+
1535 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:health-check   |
1536 +------------------------------+-----------------------------------------------------------+
1537 |     **Action**               |     HealthCheck                                           |
1538 +------------------------------+-----------------------------------------------------------+
1539 |     **Action-Identifiers**   |     Vnf-id                                                |
1540 +------------------------------+-----------------------------------------------------------+
1541 |     **Payload Parameters**   |     See below                                             |
1542 +------------------------------+-----------------------------------------------------------+
1543 |     **Revision History**     |     Unchanged in this release                             |
1544 +------------------------------+-----------------------------------------------------------+
1545
1546
1547 Request Payload Parameters:
1548
1549 +---------------------+-----------------------------------+---------------------+-------------------------------------+
1550 |     **Parameter**   |     **Description**               |     **Required?**   |     **Example**                     |
1551 +=====================+===================================+=====================+=====================================+
1552 | request-parameters  |     host-ip-address -             |     No              |  "payload":                         |
1553 |                     |     Required only if REST         |                     |  "{\\"request-parameters \\":       |
1554 |                     |     service. This is the ip       |                     |  "{\\"host-ip-address\\":           |
1555 |                     |     address associated with the   |                     |  \\"10.222.22.2\\" }"               |
1556 |                     |     VM running the REST           |                     |                                     |
1557 |                     |     service.                      |                     |                                     |
1558 +---------------------+-----------------------------------+---------------------+-------------------------------------+
1559
1560
1561 HealthCheck Response
1562 ^^^^^^^^^^^^^^^^^^^^
1563
1564 **Success:** The HealthCheck returns a 400 success message if the test completes. A JSON payload is returned indicating state (healthy, unhealthy), scope identifier, time-stamp and one or more blocks containing info and fault information.
1565
1566     Examples::
1567
1568                 {
1569                   "identifier": "scope represented", 
1570                   "state": "healthy",
1571                   "time": "01-01-1000:0000"
1572
1573                 }
1574
1575                 {
1576                    "identifier": "scope represented", 
1577                    "state": "unhealthy",
1578                         {[
1579                    "info": "System threshold exceeded details", 
1580                    "fault":
1581                          {
1582                            "cpuOverall": 0.80,
1583                            "cpuThreshold": 0.45
1584                          }
1585                         ]},
1586                    "time": "01-01-1000:0000"
1587                 }
1588
1589 **Failure:** If the VNF is unable to run the HealthCheck. APP-C returns the error code 401 and the http error message.
1590
1591 LicenseManagement
1592 -----------------
1593
1594 For LicenseManagement LCM action, invoke the LicenseManagement playbook.
1595 This is limited to Ansible.
1596
1597 A successful LicenseManagement request returns a success response.
1598
1599 A failed LicenseManagement action returns a failure response code and
1600 the specific failure message in the response block.
1601
1602
1603 ====================== ========================================================
1604 **Target URL**         /restconf/operations/appc-provider-lcm:LicenseManagement
1605 ====================== ========================================================
1606 **Action**             LicenseManagement
1607 **Action-Identifiers** vnf-id
1608 **Payload Parameters** See below
1609 **Revision History**   New in Frankfurt
1610 ====================== ========================================================
1611
1612 ========================= ========================================================================================================= ============= ======================================================================================================================
1613 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1614 ========================= ========================================================================================================= ============= ======================================================================================================================
1615 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "action": "LicenseManagement",
1616                                                                                                                                                  
1617                                                                                                                                                   "action-identifiers": {
1618                                                                                                                                                  
1619                                                                                                                                                   "vnf-id": "rarf9901v"
1620                                                                                                                                                  
1621                                                                                                                                                   },
1622                                                                                                                                                  
1623                                                                                                                                                   "payload": "{\"configuration-parameters\":{\"vnf_name\":\"rarf9901v\",\"license_action\":\"update\"}}" ---
1624                                                                                                                                                  
1625                                                                                                                                                   license_action can have any of these values ={ upload \| add \| install \| update \| renew \| delete \| revoke \| … }:
1626 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1627 ========================= ========================================================================================================= ============= ======================================================================================================================
1628
1629 LicenseManagement Response\ **:** 
1630 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1631
1632 Success: A successful LicenseManagement returns a success status code
1633 400.
1634
1635 Failure: A failed LicenseManagement returns a failure code 401 and the
1636 failure message.
1637
1638
1639
1640
1641 Lock
1642 ----
1643
1644 Use the Lock command to ensure exclusive access during a series of critical LCM commands.
1645
1646 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.
1647
1648 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.
1649
1650 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.
1651
1652 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.
1653
1654 The lock automatically clears after 900 seconds (15 minutes). This 900 second value can be adjusted in the properties file
1655
1656 +------------------------------+---------------------------------------------------+
1657 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:lock   |
1658 +------------------------------+---------------------------------------------------+
1659 |     **Action**               |     Lock                                          |
1660 +------------------------------+---------------------------------------------------+
1661 |     **Action-Identifier**    |     Vnf-id                                        |
1662 +------------------------------+---------------------------------------------------+
1663 |     **Payload Parameters**   |     None                                          |
1664 +------------------------------+---------------------------------------------------+
1665 |     **Revision History**     |     Unchanged in this release.                    |
1666 +------------------------------+---------------------------------------------------+
1667
1668 Lock Response
1669 ^^^^^^^^^^^^^
1670
1671 The Lock returns a 400 Success response if the Lock is successfully applied.
1672
1673 The Lock returns a 401 Failure response with the failure message if the Lock is not successful.
1674
1675
1676 Migrate
1677 -------
1678
1679 Migrates a running target VM from its current host to another.
1680
1681 A destination node will be selected by relying on internal rules to migrate. Migrate calls a command in order to perform the operation.
1682
1683 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.
1684
1685 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.
1686
1687
1688 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1689
1690
1691 +--------------------------------+-----------------------------------------------------------------------------------------------+
1692 | **Input Block**                | api-ver should be set to 2.00 for current version of Migrate                                  |
1693 +--------------------------------+-----------------------------------------------------------------------------------------------+
1694 |     **Target URL**             |     /restconf/operations/appc-provider-lcm:migrate                                            |
1695 +--------------------------------+-----------------------------------------------------------------------------------------------+
1696 |     **Action**                 |     Migrate                                                                                   |
1697 +--------------------------------+-----------------------------------------------------------------------------------------------+
1698 |     **Action-Identifiers**     |     Vnf-id, vserver-id                                                                        |
1699 +--------------------------------+-----------------------------------------------------------------------------------------------+
1700 |     **Payload Parameters**     |     vm-id, identity-url, tenant-id                                                            |
1701 +--------------------------------+-----------------------------------------------------------------------------------------------+
1702 |     **Revision History**       |     Unchanged in this release.                                                                |
1703 +--------------------------------+-----------------------------------------------------------------------------------------------+
1704
1705 Payload Parameters
1706
1707 +---------------------+-------------------------------------------------------------------------+---------------------+-----------------------------------------------+
1708 | **Parameter**       |     **Description**                                                     |     **Required?**   |     **Example**                               |
1709 +=====================+=========================================================================+=====================+===============================================+
1710 |     vm-id           |     The unique identifier (UUID) of                                     |     Yes             |                                               |
1711 |                     |     the resource. For backwards- compatibility, this can be the self-   |                     |                                               |
1712 |                     |     link URL of the VM.                                                 |                     |     "payload":                                |
1713 |                     |                                                                         |                     |     "{\\"vm-id\\": \\"<VM-ID>\\",             |
1714 |                     |                                                                         |                     |     \\"identity-url\\":                       |
1715 |                     |                                                                         |                     |     \\"<IDENTITY-URL>\\",                     |
1716 +---------------------+-------------------------------------------------------------------------+---------------------+     \\"tenant-id\\": \\"<TENANT-ID>\\"}"      |
1717 |     identity- url   |     The identity url used to access the resource                        |     Yes             |                                               |
1718 |                     |                                                                         |                     |                                               |
1719 +---------------------+-------------------------------------------------------------------------+---------------------+                                               |
1720 |     tenant-id       |     The id of the provider tenant that owns the resource                |     Yes             |                                               |
1721 +---------------------+-------------------------------------------------------------------------+---------------------+-----------------------------------------------+
1722
1723
1724 Migrate Response
1725 ^^^^^^^^^^^^^^^^
1726
1727 **Success:** A successful Migrate returns a success status code 400.
1728
1729 **Failure:** A failed Migrate returns a failure code 401 and the failure message.
1730
1731
1732 PostEvacuate 
1733 -------------
1734
1735 PostEvacuate LCM action using the PostEvacuate playbook. This is limited
1736 to Ansible.
1737
1738 A successful PostEvacuate request returns a success response.
1739
1740 A failed PostEvacuate action returns a failure response code and the
1741 specific failure message in the response block.
1742
1743 ====================== ====================================================
1744 **Target URL**         /restconf/operations/appc-provider-lcm: PostEvacuate
1745 ====================== ====================================================
1746 **Action**             PostEvacuate
1747 **Action-Identifiers** vnf-id
1748 **Payload Parameters** See table
1749 **Revision History**   New in Frankfurt
1750 ====================== ====================================================
1751
1752 ========================= ========================================================================================================= ============= =====================================================================================================
1753 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1754 ========================= ========================================================================================================= ============= =====================================================================================================
1755 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "payload" : "{\"configuration-parameters\":{\"vnf_name\":\"xxxxxx\",\"vm_name\":\"135.21.178.100\"}}"
1756 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1757 ========================= ========================================================================================================= ============= =====================================================================================================
1758
1759 PostEvacuate Response:
1760 ~~~~~~~~~~~~~~~~~~~~~~
1761
1762 Success: A successful PostEvacuate returns a success status code 400.
1763
1764 Failure: A failed PostEvacuate returns a failure code 401 and the
1765 failure message.
1766
1767
1768 PostMigrate
1769 -----------
1770
1771 PostMigrate LCM action using the PostMigrate playbook. This is limited
1772 to Ansible.
1773
1774 A successful PostMigrate request returns a success response.
1775
1776 A failed PostMigrate action returns a failure response code and the
1777 specific failure message in the response block.
1778
1779
1780 ====================== ===================================================
1781 **Target URL**         /restconf/operations/appc-provider-lcm: PostMigrate
1782 ====================== ===================================================
1783 **Action**             PostMigrate
1784 **Action-Identifiers** vnf-id
1785 **Payload Parameters** See below
1786 **Revision History**   New in Frankfurt
1787 ====================== ===================================================
1788
1789 ========================= ========================================================================================================= ============= =====================================================================================================
1790 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1791 ========================= ========================================================================================================= ============= =====================================================================================================
1792 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "payload" : "{\"configuration-parameters\":{\"vnf_name\":\"xxxxxx\",\"vm_name\":\"135.21.178.100\"}}"
1793 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1794 ========================= ========================================================================================================= ============= =====================================================================================================
1795
1796 PostMigrate Response:
1797 ~~~~~~~~~~~~~~~~~~~~~
1798
1799 Success: A successful PostMigrate returns a success status code 400.
1800
1801 Failure: A failed PostMigrate returns a failure code 401 and the failure
1802 message.
1803
1804
1805
1806 PostRebuild
1807 -----------
1808
1809 PostRebuild LCM action using the PostRebuild playbook. This is limited
1810 to Ansible.
1811
1812 A successful PostRebuild request returns a success response.
1813
1814 A failed PostRebuild action returns a failure response code and the
1815 specific failure message in the response block.
1816
1817 ====================== ===================================================
1818 **Target URL**         /restconf/operations/appc-provider-lcm: PostRebuild
1819 ====================== ===================================================
1820 **Action**             PostRebuild
1821 **Action-Identifiers** vnf-id
1822 **Payload Parameters** See table
1823 **Revision History**   New in Frankfurt
1824 ====================== ===================================================
1825
1826 ========================= ========================================================================================================= ============= =====================================================================================================
1827 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1828 ========================= ========================================================================================================= ============= =====================================================================================================
1829 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "payload" : "{\"configuration-parameters\":{\"vnf_name\":\"xxxxxx\",\"vm_name\":\"135.21.178.100\"}}"
1830 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1831 ========================= ========================================================================================================= ============= =====================================================================================================
1832
1833 PostRebuild Response:
1834 ~~~~~~~~~~~~~~~~~~~~~
1835
1836 Success: A successful PostRebuild returns a success status code 400.
1837
1838 Failure: A failed PostRebuild returns a failure code 401 and the failure
1839 message.
1840
1841
1842 PreConfig
1843 ---------
1844
1845 PreConfig LCM action for the MVM VNF types using the PreConfigure
1846 playbook. This is limited to Ansible.
1847
1848 A successful PreConfig request returns a success response.
1849
1850 A failed PreConfig action returns a failure response code and the
1851 specific failure message in the response block.
1852
1853
1854 ====================== =================================================
1855 **Target URL**         /restconf/operations/appc-provider-lcm: PreConfig
1856 ====================== =================================================
1857 **Action**             PreConfig
1858 **Action-Identifiers** vnf-id
1859 **Payload Parameters** See table
1860 **Revision History**   New in Frankfurt
1861 ====================== =================================================
1862
1863 ========================= ========================================================================================================= ============= ======================================================================================================
1864 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1865 ========================= ========================================================================================================= ============= ======================================================================================================
1866 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "payload": "{\"configuration-parameters\":{\"vnf_name\":\"test\",\"operations_timeout\":\"3600\"}}" or
1867                                                                                                                                                  
1868                                                                                                                                                   "payload": "{}"
1869 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1870 ========================= ========================================================================================================= ============= ======================================================================================================
1871
1872 PreConfig Response:
1873 -------------------
1874
1875 Success: A successful PreConfig returns a success status code 400.
1876
1877 Failure: A failed PreConfig returns a failure code 401 and the failure
1878 message.
1879
1880 PreEvacuate 
1881 ------------
1882
1883 PreEvacuate LCM action using the PreEvacuate playbook. This is limited
1884 to Ansible.
1885
1886 A successful PreEvacuate request returns a success response.
1887
1888 A failed PreEvacuate action returns a failure response code and the
1889 specific failure message in the response block.
1890
1891
1892 ====================== ===================================================
1893 **Target URL**         /restconf/operations/appc-provider-lcm: PreEvacuate
1894 ====================== ===================================================
1895 **Action**             PreEvacuate
1896 **Action-Identifiers** vnf-id
1897 **Payload Parameters** See table
1898 **Revision History**   New in Frankfurt
1899 ====================== ===================================================
1900
1901 ========================= ========================================================================================================= ============= =====================================================================================================
1902 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1903 ========================= ========================================================================================================= ============= =====================================================================================================
1904 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "payload" : "{\"configuration-parameters\":{\"vnf_name\":\"xxxxxx\",\"vm_name\":\"135.21.178.100\"}}"
1905 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1906 ========================= ========================================================================================================= ============= =====================================================================================================
1907
1908 PreEvacuate Response:
1909 ~~~~~~~~~~~~~~~~~~~~~
1910
1911 Success: A successful PreEvacuate returns a success status code 400.
1912
1913 Failure: A failed PreEvacuate returns a failure code 401 and the failure
1914 message.
1915
1916 PreMigrate
1917 ----------
1918
1919 PreMigrate LCM action using the PreMigrate playbook. This is limited to
1920 Ansible.
1921
1922 A successful PreMigrate request returns a success response.
1923
1924 A failed PreMigrate action returns a failure response code and the
1925 specific failure message in the response block.
1926
1927 ====================== ==================================================
1928 **Target URL**         /restconf/operations/appc-provider-lcm: PreMigrate
1929 ====================== ==================================================
1930 **Action**             PreMigrate
1931 **Action-Identifiers** vnf-id
1932 **Payload Parameters** See table
1933 **Revision History**   New in Frankfurt
1934 ====================== ==================================================
1935
1936 ========================= ========================================================================================================= ============= =====================================================================================================
1937 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1938 ========================= ========================================================================================================= ============= =====================================================================================================
1939 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "payload" : "{\"configuration-parameters\":{\"vnf_name\":\"xxxxxx\",\"vm_name\":\"135.21.178.100\"}}"
1940 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1941 ========================= ========================================================================================================= ============= =====================================================================================================
1942
1943 PreMigrate Response:
1944 ~~~~~~~~~~~~~~~~~~~~
1945
1946 Success: A successful PreMigrate returns a success status code 400.
1947
1948 Failure: A failed PreMigrate returns a failure code 401 and the failure
1949 message.
1950
1951
1952 PreRebuild
1953 ----------
1954
1955 PreRebuild LCM action using the PreRebuild playbook. This is limited to
1956 Ansible.
1957
1958 A successful PreRebuild request returns a success response.
1959
1960 A failed PreRebuild action returns a failure response code and the
1961 specific failure message in the response block.
1962
1963
1964 ====================== ==================================================
1965 **Target URL**         /restconf/operations/appc-provider-lcm: PreRebuild
1966 ====================== ==================================================
1967 **Action**             PreRebuild
1968 **Action-Identifiers** vnf-id
1969 **Payload Parameters** See table
1970 **Revision History**   New in Frankfurt
1971 ====================== ==================================================
1972
1973 ========================= ========================================================================================================= ============= =====================================================================================================
1974 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
1975 ========================= ========================================================================================================= ============= =====================================================================================================
1976 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "payload" : "{\"configuration-parameters\":{\"vnf_name\":\"xxxxxx\",\"vm_name\":\"135.21.178.100\"}}"
1977 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
1978 ========================= ========================================================================================================= ============= =====================================================================================================
1979
1980 PreRebuild Response:
1981 ~~~~~~~~~~~~~~~~~~~~
1982
1983 Success: A successful PreRebuild returns a success status code 400.
1984
1985 Failure: A failed PreRebuild returns a failure code 401 and the failure
1986 message.
1987
1988
1989 Provisioning
1990 ------------
1991
1992 For Provisioning LCM action, invoke the Provisioning playbook. This is
1993 limited to Ansible.
1994
1995 A successful Provisioning request returns a success response.
1996
1997 A failed Provisioning action returns a failure response code and the
1998 specific failure message in the response block.
1999
2000
2001 ====================== ===================================================
2002 **Target URL**         /restconf/operations/appc-provider-lcm:Provisioning
2003 ====================== ===================================================
2004 **Action**             Provisioning
2005 **Action-Identifiers** vnf-id
2006 **Payload Parameters** See table
2007 **Revision History**   New in Frankfurt
2008 ====================== ===================================================
2009
2010 ========================= ========================================================================================================= ============= =========================
2011 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
2012 ========================= ========================================================================================================= ============= =========================
2013 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "action": "Provisioning",
2014                                                                                                                                                  
2015                                                                                                                                                   "action-identifiers": {
2016                                                                                                                                                  
2017                                                                                                                                                   "vnf-id": "rarf9901v"
2018                                                                                                                                                  
2019                                                                                                                                                   },
2020                                                                                                                                                  
2021                                                                                                                                                   "payload": "{}"
2022 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
2023 ========================= ========================================================================================================= ============= =========================
2024
2025 Provisioning Response\ **:** 
2026 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2027
2028 Success: A successful Provisioning returns a success status code 400.
2029
2030 Failure: A failed Provisioning returns a failure code 401 and the
2031 failure message.
2032
2033
2034
2035 QuiesceTraffic
2036 --------------
2037
2038 The QuiesceTraffic LCM action gracefully stops the traffic on the VNF (i.e., no service interruption for traffic in progress). All application processes are assumed to be running but no traffic is being processed.
2039
2040 This command is executed using an Ansible playbook or Chef cookbook.
2041     
2042 Request Structure:
2043
2044 +--------------------------+----------------------------------------------------------+
2045 | **Target URL**           | /restconf/operations/appc-provider-lcm:quiesce-traffic   |
2046 +--------------------------+----------------------------------------------------------+
2047 | **Action**               | QuiesceTraffic                                           |
2048 +--------------------------+----------------------------------------------------------+
2049 | **Action-identifiers**   | vnf-id                                                   |
2050 +--------------------------+----------------------------------------------------------+
2051 | **Payload Parameters**   | operations-timeout                                       |
2052 +--------------------------+----------------------------------------------------------+
2053 | **Revision History**     | New in Beijing                                           |
2054 +--------------------------+----------------------------------------------------------+
2055
2056 Request Payload Parameters:
2057
2058 +-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+------------------------------------------------+
2059 | **Parameter**         |     **Description**                                                                                                                                                                                  |     **Required?**   |     **Example**                                |
2060 +=======================+======================================================================================================================================================================================================+=====================+================================================+
2061 | operations-timeout    |     This is the maximum time in seconds that the command will run before APPC returns a timeout error. If the APPC template has a lower timeout value, the APPC template timeout value is applied.   |     Yes             |     "payload":                                 |
2062 |                       |                                                                                                                                                                                                      |                     |     "{\\"operations-timeout\\": \\"3600\\"}”   |
2063 +-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+------------------------------------------------+
2064
2065 QuiesceTraffic Response
2066 ^^^^^^^^^^^^^^^^^^^^^^^
2067
2068 The response does not include any payload parameters.
2069
2070 **Success:** A successful quiesce returns a success status code 400 after all traffic has been quiesced.
2071
2072    If a quiesce command is executed and the traffic has been previously quiesced, it should return a success status.
2073
2074 **Failure:** A failed quiesce returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2075
2076     A specific error message is returned if there is a timeout error.
2077
2078 Reboot
2079 -------
2080
2081 The Reboot is used to reboot a VM.
2082
2083  
2084 There are two types supported: HARD and SOFT. A SOFT reboot attempts a graceful shutdown and restart of the server. A HARD reboot attempts a forced shutdown and restart of the server. The HARD reboot corresponds to the power cycles of the server.
2085
2086 **NOTE:** The command implementation is based on OpenStack functionality.  For further details, see http://developer.openstack.org/api-ref/compute/.
2087
2088 +------------------------------+-----------------------------------------------------------------------------------------------+
2089 | **Input Block**              | api-ver should be set to 2.00 for current version of Reboot                                   |
2090 +------------------------------+-----------------------------------------------------------------------------------------------+
2091 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:reboot                                             |
2092 +------------------------------+-----------------------------------------------------------------------------------------------+
2093 |     **Action**               |     Reboot                                                                                    |
2094 +------------------------------+-----------------------------------------------------------------------------------------------+
2095 |     **Action-identifiers**   |     Vnf-id, vserver-id                                                                        |
2096 +------------------------------+-----------------------------------------------------------------------------------------------+
2097 |     **Payload Parameters**   |     See table below                                                                           |
2098 +------------------------------+-----------------------------------------------------------------------------------------------+
2099 |     **Revision History**     |     New in R3 release.                                                                        |
2100 +------------------------------+-----------------------------------------------------------------------------------------------+
2101
2102 Payload Parameters
2103
2104 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2105 | **Parameter**   |     **Description**                           | **Required?**   | **Example**                             |
2106 +=================+===============================================+=================+=========================================+
2107 | type            |     The type of reboot.  Values are           | No              |                                         |
2108 |                 |     HARD and SOFT.  If not                    |                 |                                         |
2109 |                 |     specified, SOFT reboot is                 |                 | "payload":                              |
2110 |                 |     performed.                                |                 | "{\\"type\\": \\"HARD\\",               |
2111 |                 |                                               |                 |   \\"vm-id\\": \\"<VM-ID>\\",           |
2112 |                 |                                               |                 | \\"identity-url\\":                     |
2113 |                 |                                               |                 | \\"<IDENTITY-URL>\\"                    |
2114 |                 |                                               |                 | }"                                      | 
2115 +-----------------+-----------------------------------------------+-----------------+                                         |
2116 | vm-id           |     The unique identifier (UUID) of           | Yes             |                                         |
2117 |                 |     the resource. For backwards-              |                 |                                         |
2118 |                 |     compatibility, this can be the self-      |                 |                                         |
2119 |                 |     link URL of the VM.                       |                 |                                         |
2120 |                 |                                               |                 |                                         |
2121 |                 |                                               |                 |                                         |
2122 |                 |                                               |                 |                                         |
2123 |                 |                                               |                 |                                         |
2124 +-----------------+-----------------------------------------------+-----------------+                                         |
2125 | identity-url    |     The identity url used to access the       | Yes             |                                         |
2126 |                 |     resource.                                 |                 |                                         |
2127 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2128
2129 Reboot Response
2130 ^^^^^^^^^^^^^^^
2131
2132 **Success:** A successful Rebuild returns a success status code 400.  
2133
2134 **Failure:** A failed Rebuild returns a failure code 401 and the failure message.
2135
2136 Rebuild
2137 -------
2138
2139 Recreates a target VM instance to a known, stable state.
2140
2141 Rebuild calls an OpenStack command immediately and therefore does not expect any prerequisite operations to be performed, such as shutting off a VM.
2142
2143 Rebuild VM uses the snapshot provided by the snapshot-id (if provided).  If not provided, the latest snapshot is used.  If there are no snapshots, it uses the (original) Glance image.
2144
2145 APPC rejects a rebuild request if it determines the VM boots from a Cinder Volume
2146
2147
2148 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
2149
2150
2151 +------------------------------+-----------------------------------------------------------------------------------------------+
2152 | **Input Block**              | api-ver should be set to 2.00 for current version of Rebuild                                  |
2153 +------------------------------+-----------------------------------------------------------------------------------------------+
2154 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:rebuild                                            |
2155 +------------------------------+-----------------------------------------------------------------------------------------------+
2156 |     **Action**               |     Rebuild                                                                                   |
2157 +------------------------------+-----------------------------------------------------------------------------------------------+
2158 |     **Action-identifiers**   |     Vnf-id, vserver-id                                                                        |
2159 +------------------------------+-----------------------------------------------------------------------------------------------+
2160 |     **Payload Parameters**   |     See table below                                                                           |
2161 +------------------------------+-----------------------------------------------------------------------------------------------+
2162 |     **Revision History**     |     Unchanged in this release.                                                                |
2163 +------------------------------+-----------------------------------------------------------------------------------------------+
2164
2165
2166 Payload Parameters
2167
2168 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2169 | **Parameter**   |     **Description**                           | **Required?**   | **Example**                             |
2170 +=================+===============================================+=================+=========================================+
2171 | vm-id           |     The unique identifier (UUID) of           | Yes             |                                         |
2172 |                 |     the resource. For backwards-              |                 |                                         |
2173 |                 |     compatibility, this can be the self-      |                 | "payload":                              |
2174 |                 |     link URL of the VM.                       |                 | "{\\"vm-id\\": \\"<VM-ID>               |
2175 |                 |                                               |                 | \\",                                    |
2176 |                 |                                               |                 | \\"identity-url\\":                     |
2177 |                 |                                               |                 | \\"<IDENTITY-URL>\\",                   |
2178 |                 |                                               |                 | \\"tenant-id\\": \\"<TENANT- ID>\\"}"   |
2179 +-----------------+-----------------------------------------------+-----------------+ \\"snapshot-id\\": \\"<SNAPSHOT- ID>\\" |
2180 | identity- url   |     The identity url used to access the       | Yes             | }"                                      |
2181 |                 |     resource.                                 |                 |                                         |
2182 +-----------------+-----------------------------------------------+-----------------+                                         |
2183 | tenant-id       |     The id of the provider tenant that owns   | Yes             |                                         |
2184 |                 |     the resource.                             |                 |                                         |
2185 +-----------------+-----------------------------------------------+-----------------+                                         |
2186 | snapshot-id     |  The snapshot-id of a previously saved image. | No              |                                         |       
2187 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2188
2189 Rebuild Response
2190 ^^^^^^^^^^^^^^^^
2191
2192 **Success:** A successful Rebuild returns a success status code 400.  
2193
2194 **Failure:** A failed Rebuild returns a failure code 401 and the failure message.
2195
2196 Restart
2197 -------
2198
2199 Use the Restart command to restart a VM.    
2200
2201 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
2202 |     **Input Block**          |     api-ver should be set to 2.00 for current version of Restart                                                |
2203 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
2204 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:restart                                                              |
2205 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
2206 |     **Action**               |     Restart                                                                                                     |
2207 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
2208 |     **Action-identifiers**   |     vnf-id and vserver-id are required                                                                          |
2209 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
2210 |     **Payload Parameters**   |     See table below                                                                                             |
2211 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
2212 |     **Revision History**     |     Unchanged in this release                                                                                   |
2213 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
2214
2215 Payload Parameters for **VM Restart**
2216
2217 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
2218 | **Parameter**       |     **Description**                                                     |     **Required?**   |     **Example**                    |
2219 +=====================+=========================================================================+=====================+====================================+
2220 |     vm-id           |     The unique identifier (UUID) of                                     |     Yes             |                                    |
2221 |                     |     the resource. For backwards- compatibility, this can be the self-   |                     |                                    |
2222 |                     |     link URL of the VM                                                  |                     |     "payload":                     |
2223 |                     |                                                                         |                     |     "{\\"vm-id\\": \\"<VM-ID>\\",  |
2224 |                     |                                                                         |                     |     \\"identity-url\\":            |
2225 +---------------------+-------------------------------------------------------------------------+---------------------+     \\"<IDENTITY-URL>\\",          |
2226 |     identity- url   |     The identity url used to access the resource                        |     No              |     \\"tenant-id\\": \\"<TENANT-   |
2227 |                     |                                                                         |                     |     ID>\\"}"                       |
2228 +---------------------+-------------------------------------------------------------------------+---------------------+                                    |
2229 |     tenant-id       |     The id of the provider tenant that owns the resource                |     No              |                                    |
2230 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
2231
2232 ResumeTraffic
2233 -------------
2234
2235 The ResumeTraffic LCM action resumes processing traffic on a VNF that has been previously quiesced.
2236
2237 This command is executed using an Ansible playbook or Chef cookbook.
2238
2239 Request Structure: The payload does not have any parameters.
2240
2241 +--------------------------+---------------------------------------------------------+
2242 | **Target URL**           | /restconf/operations/appc-provider-lcm:resume-traffic   |
2243 +--------------------------+---------------------------------------------------------+
2244 | **Action**               | ResumeTraffic                                           |
2245 +--------------------------+---------------------------------------------------------+
2246 | **Action-identifiers**   | vnf-id                                                  |
2247 +--------------------------+---------------------------------------------------------+
2248 | **Payload Parameters**   |                                                         |
2249 +--------------------------+---------------------------------------------------------+
2250 | **Revision History**     | New in Beijing                                          |
2251 +--------------------------+---------------------------------------------------------+
2252
2253 ResumeTraffic Response
2254 ^^^^^^^^^^^^^^^^^^^^^^
2255
2256 **Success:** A successful ResumeTraffic returns a success status code 400 after traffic has been resumed.
2257
2258 If a ResumeTraffic command is executed and the traffic is currently being processed, it should return a success status
2259
2260 **Failure:** A failed ResumeTraffic returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2261
2262
2263 Snapshot
2264 --------
2265
2266 Creates a snapshot of a VM.
2267
2268 The Snapshot command returns a customized response containing a reference to the newly created snapshot instance if the action is successful.
2269
2270 This command can be applied to a VM in any VNF type. The only restriction is that the particular VNF should be built based on the generic heat stack.
2271
2272 Note: Snapshot is not reliable unless the VM is in a stopped, paused, or quiesced (no traffic being processed) status. It is up to the caller to ensure that the VM is in one of these states.
2273
2274 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
2275
2276 +------------------------------+-----------------------------------------------------------------------------------------------------+
2277 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:snapshot                                                 |
2278 +------------------------------+-----------------------------------------------------------------------------------------------------+
2279 |     **Action**               |     Snapshot                                                                                        |
2280 +------------------------------+-----------------------------------------------------------------------------------------------------+
2281 |     **Action-identifiers**   |     vnf-id, vserver-id                                                                              |
2282 +------------------------------+-----------------------------------------------------------------------------------------------------+
2283 |     **Payload Parameters**   |     vm-id, identity-url, tenant-id                                                                  |
2284 +------------------------------+-----------------------------------------------------------------------------------------------------+
2285 |     **Revision History**     |     Unchanged in this release.                                                                      |
2286 +------------------------------+-----------------------------------------------------------------------------------------------------+
2287
2288 Payload Parameters
2289
2290 +---------------------+-------------------------------------------------------------------------+---------------------+----------------------------------------+
2291 | **Parameter**       |     **Description**                                                     |     **Required?**   |     **Example**                        |
2292 +=====================+=========================================================================+=====================+========================================+
2293 |     vm-id           |     The self-link URL of the VM                                         |     Yes             |                                        |
2294 |                     |                                                                         |                     |     "payload":                         |
2295 |                     |                                                                         |                     |     "{\\"vm-id\\": \\"<VM-ID>\\",      |
2296 |                     |                                                                         |                     |     \\"identity-url\\":                |
2297 |                     |                                                                         |                     |     \\"<IDENTITY-URL>\\",              |
2298 |                     |                                                                         |                     |     \\"tenant-id\\":\\"<TENANT-ID>\\"}"|
2299 +---------------------+-------------------------------------------------------------------------+---------------------+                                        |
2300 |     identity- url   |     The identity url used to access the resource                        |     No              |                                        |
2301 |                     |                                                                         |                     |                                        |
2302 +---------------------+-------------------------------------------------------------------------+---------------------+                                        |
2303 |     tenant-id       |     The id of the provider tenant that owns the resource                |     No              |                                        |
2304 +---------------------+-------------------------------------------------------------------------+---------------------+----------------------------------------+
2305
2306 Snapshot Response
2307 ^^^^^^^^^^^^^^^^^
2308
2309 The Snapshot command returns an extended version of the LCM response.
2310
2311 The Snapshot response conforms to the standard response format.
2312
2313
2314 Start
2315 -----
2316
2317 Use the Start command to start a VM that is stopped.
2318
2319 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
2320
2321 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2322 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:start                                                                               |
2323 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2324 |     **Action**               |     Start                                                                                                                      |
2325 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2326 |     **Action-identifiers**   |     vnf-id and vserver-id are required                                                                                         |
2327 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2328 |     **Payload Parameters**   |     See table below                                                                                                            |
2329 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2330 |     **Revision History**     |     Unchanged in this release                                                                                                  |
2331 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2332
2333 Payload Parameters
2334
2335 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2336 | **Parameter**   |     **Description**                           | **Required?**   | **Example**                             |
2337 +=================+===============================================+=================+=========================================+
2338 | vm-id           |     The unique identifier (UUID) of           | Yes             |                                         |
2339 |                 |     the resource. For backwards-              |                 | "payload":                              |
2340 |                 |     compatibility, this can be the self-      |                 | "{\\"vm-id\\": \\"<VM-ID>               |
2341 |                 |     link URL of the VM.                       |                 | \\",                                    |
2342 |                 |                                               |                 | \\"identity-url\\":                     |
2343 |                 |                                               |                 | \\"<IDENTITY-URL>\\",                   |
2344 |                 |                                               |                 | \\"tenant-id\\": \\"<TENANT- ID>\\"}"   |
2345 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2346 | identity- url   |     The identity url used to access the       | No              |                                         |
2347 |                 |     resource                                  |                 |                                         |
2348 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2349 | tenant-id       |     The id of the provider tenant that owns   | No              |                                         |
2350 |                 |     the resource                              |                 |                                         |
2351 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2352
2353
2354 StartApplication
2355 ----------------
2356
2357 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.
2358
2359 A successful StartApplication request returns a success response.
2360
2361 A failed StartApplication action returns a failure response code and the specific failure message in the response block.
2362
2363 +------------------------------+---------------------------------------------------------------+
2364 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:start-application  |
2365 +------------------------------+---------------------------------------------------------------+
2366 |     **Action**               |     StartApplication                                          |
2367 +------------------------------+---------------------------------------------------------------+
2368 |     **Action-Identifiers**   |     Vnf-id                                                    |
2369 +------------------------------+---------------------------------------------------------------+
2370 |     **Payload Parameters**   |     See table below                                           |
2371 +------------------------------+---------------------------------------------------------------+
2372 |     **Revision History**     |     Unchanged in this release.                                |
2373 +------------------------------+---------------------------------------------------------------+
2374
2375 |
2376
2377 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
2378 |     **Payload Parameter**       |     **Description**                                                                                                                                                                |     **Required?**   |     **Example**                                                 |
2379 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
2380 |                                 |                                                                                                                                                                                    |                     |  "payload":                                                     |
2381 |     configuration- parameters   |     A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook.                                                 |     No              |  "{\\"configuration- parameters\\": {\\"<CONFIG- PARAMS>\\"}    |
2382 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
2383
2384 StartApplication Response
2385 ^^^^^^^^^^^^^^^^^^^^^^^^^
2386
2387 The StartApplication response returns an indication of success or failure of the request.
2388
2389 StartTraffic
2390 ------------
2391
2392 For StartTraffic LCM action, invoke the StartTraffic playbook. This is
2393 limited to Ansible.
2394
2395 A successful StartTraffic request returns a success response.
2396
2397 A failed StartTraffic action returns a failure response code and the
2398 specific failure message in the response block.
2399
2400
2401 ====================== ===================================================
2402 **Target URL**         /restconf/operations/appc-provider-lcm:StartTraffic
2403 ====================== ===================================================
2404 **Action**             StartTraffic
2405 **Action-Identifiers** vnf-id
2406 **Payload Parameters** See table
2407 **Revision History**   New in Frankfurt
2408 ====================== ===================================================
2409
2410 ========================= ========================================================================================================= ============= =========================
2411 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
2412 ========================= ========================================================================================================= ============= =========================
2413 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "action": "StartTraffic",
2414                                                                                                                                                  
2415                                                                                                                                                   "action-identifiers": {
2416                                                                                                                                                  
2417                                                                                                                                                   "vnf-id": "rarf9901v"
2418                                                                                                                                                  
2419                                                                                                                                                   },
2420                                                                                                                                                  
2421                                                                                                                                                   "payload": "{}"
2422 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
2423 ========================= ========================================================================================================= ============= =========================
2424
2425 StartTraffic Response\ **:** 
2426 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2427
2428 Success: A successful StartTraffic returns a success status code 400.
2429
2430 Failure: A failed StartTraffic returns a failure code 401 and the
2431 failure message.
2432
2433
2434
2435 StatusTraffic
2436 -------------
2437
2438 For StatusTraffic LCM action, invoke the StatusTraffic playbook. This is
2439 limited to Ansible.
2440
2441 A successful StatusTraffic request returns a success response.
2442
2443 A failed StatusTraffic action returns a failure response code and the
2444 specific failure message in the response block.
2445
2446 ====================== ====================================================
2447 **Target URL**         /restconf/operations/appc-provider-lcm:StatusTraffic
2448 ====================== ====================================================
2449 **Action**             StatusTraffic
2450 **Action-Identifiers** vnf-id
2451 **Payload Parameters** See table
2452 **Revision History**   New in Frankfurt
2453 ====================== ====================================================
2454
2455 ========================= ========================================================================================================= ============= ==========================
2456 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
2457 ========================= ========================================================================================================= ============= ==========================
2458 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "action": "StatusTraffic",
2459                                                                                                                                                  
2460                                                                                                                                                   "action-identifiers": {
2461                                                                                                                                                  
2462                                                                                                                                                   "vnf-id": "rarf9901v"
2463                                                                                                                                                  
2464                                                                                                                                                   },
2465                                                                                                                                                  
2466                                                                                                                                                   "payload": "{}"
2467 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
2468 ========================= ========================================================================================================= ============= ==========================
2469
2470 StatusTraffic Response\ **:** 
2471 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2472
2473 Success: A successful StatusTraffic returns a success status code 400.
2474
2475 Failure: A failed StatusTraffic returns a failure code 401 and the
2476 failure message.
2477
2478
2479 Stop
2480 ----
2481
2482 Use the Stop command to stop a VM that was running.
2483
2484 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
2485
2486 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2487 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:stop                                                                                |
2488 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2489 |     **Action**               |     Stop                                                                                                                       |
2490 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2491 |     **Action-identifiers**   |     vnf-id and vserver-id are required.                                                                                        |
2492 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2493 |     **Payload Parameters**   |     See table below                                                                                                            |
2494 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2495 |     **Revision History**     |     Unchanged in this release                                                                                                  |
2496 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
2497
2498 Payload Parameters
2499
2500 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2501 | **Parameter**   |     **Description**                           | **Required?**   | **Example**                             |
2502 +=================+===============================================+=================+=========================================+
2503 | vm-id           |     The unique identifier (UUID) of           | Yes             |                                         |
2504 |                 |     the resource. For backwards-              |                 | "payload":                              |
2505 |                 |     compatibility, this can be the self-      |                 | "{\\"vm-id\\": \\"<VM-ID>               |
2506 |                 |     link URL of the VM.                       |                 | \\",                                    |
2507 |                 |                                               |                 | \\"identity-url\\":                     |
2508 |                 |                                               |                 | \\"<IDENTITY-URL>\\",                   |
2509 |                 |                                               |                 | \\"tenant-id\\": \\"<TENANT- ID>\\"}"   |
2510 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2511 | identity- url   |     The identity url used to access the       | No              |                                         |
2512 |                 |     resource                                  |                 |                                         |
2513 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2514 | tenant-id       |     The id of the provider tenant that owns   | No              |                                         |
2515 |                 |     the resource                              |                 |                                         |
2516 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
2517
2518
2519 StopApplication
2520 ---------------
2521
2522 Stops the VNF application gracefully (not lost traffic), if needed, prior to a Stop command. Supported using Chef cookbook or Ansible playbook only.
2523
2524 A successful StopApplication request returns a success response.
2525
2526 A failed StopApplication action returns a failure response code and the specific failure message in the response block.
2527
2528 +------------------------------+--------------------------------------------------------------+
2529 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:stop-application  |
2530 +------------------------------+--------------------------------------------------------------+
2531 |     **Action**               |     StopApplication                                          |
2532 +------------------------------+--------------------------------------------------------------+
2533 |     **Action-Identifiers**   |     Vnf-id                                                   |
2534 +------------------------------+--------------------------------------------------------------+
2535 |     **Payload Parameters**   |     See table below                                          |
2536 +------------------------------+--------------------------------------------------------------+
2537 |     **Revision History**     |     Unchanged in this release                                |
2538 +------------------------------+--------------------------------------------------------------+
2539
2540 |
2541
2542 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
2543 |     **Payload Parameter**       |     **Description**                                                                                                                                                                |     **Required?**   |     **Example**                                                 |
2544 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
2545 |     configuration- parameters   |     A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook.                                                 |     No              |     "payload":                                                  |
2546 |                                 |                                                                                                                                                                                    |                     |     \\"configuration- parameters\\": {\\"<CONFIG- PARAMS>\\"}   |
2547 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
2548
2549
2550 StopApplication Response
2551 ^^^^^^^^^^^^^^^^^^^^^^^^
2552
2553 The StopApplication response returns an indication of success or failure of the request.
2554
2555 StopTraffic
2556 -----------
2557
2558 For StopTraffic LCM action, invoke the StopTraffic playbook. This is
2559 limited to Ansible.
2560
2561 A successful StopTraffic request returns a success response.
2562
2563 A failed StopTraffic action returns a failure response code and the
2564 specific failure message in the response block.
2565
2566
2567 ====================== ==================================================
2568 **Target URL**         /restconf/operations/appc-provider-lcm:StopTraffic
2569 ====================== ==================================================
2570 **Action**             Provisioning
2571 **Action-Identifiers** vnf-id
2572 **Payload Parameters** See table
2573 **Revision History**   New in Frankfurt
2574 ====================== ==================================================
2575
2576 ========================= ========================================================================================================= ============= ========================================================================
2577 **Payload Parameter**     **Description**                                                                                           **Required?** **Example**
2578 ========================= ========================================================================================================= ============= ========================================================================
2579 request- parameters       Not used. This request is limited to Ansible only.                                                        No            "action": "StopTraffic",
2580                                                                                                                                                  
2581                                                                                                                                                   "action-identifiers": {
2582                                                                                                                                                  
2583                                                                                                                                                   "vnf-id": "rarf9901v"
2584                                                                                                                                                  
2585                                                                                                                                                   },
2586                                                                                                                                                  
2587                                                                                                                                                   "payload": "{\"configuration-parameters\":{\"vnf_name\":\"rarf9901v\"}}"
2588 configuration- parameters A set of instance specific configuration parameters should be specified, as required by Ansible playbook. No           
2589 ========================= ========================================================================================================= ============= ========================================================================
2590
2591 StopTraffic Response\ **:** 
2592 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2593
2594 Success: A successful StopTraffic returns a success status code 400.
2595
2596 Failure: A failed StopTraffic returns a failure code 401 and the failure
2597 message.
2598
2599
2600 Sync
2601 ----
2602
2603 The Sync action updates the current configuration in the APPC store with the running configuration from the device.
2604
2605 A successful Sync returns a success status.
2606
2607 A failed Sync returns a failure response status and failure messages in the response payload block.
2608
2609 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).
2610
2611 +------------------------------+---------------------------------------------------+
2612 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:sync   |
2613 +------------------------------+---------------------------------------------------+
2614 |     **Action**               |     Sync                                          |
2615 +------------------------------+---------------------------------------------------+
2616 |     **Action-identifiers**   |     Vnf-id                                        |
2617 +------------------------------+---------------------------------------------------+
2618 |     **Payload Parameters**   |     See below                                     |
2619 +------------------------------+---------------------------------------------------+
2620 |     **Revision History**     |     Unchanged in this release.                    |
2621 +------------------------------+---------------------------------------------------+
2622
2623 +----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+----------------------------------+
2624 |     **Parameter**    |     **Description**                                                                                                                                       |     **Required?**   |     **Example**                  |
2625 +======================+===========================================================================================================================================================+=====================+==================================+
2626 |     publish-config   |     \* If the publish\-config field is set to Y in the payload, then always write the running configuration to file                                       |     Yes             |     "publish-config": "<Y\|N>"   |
2627 |                      |                                                                                                                                                           |                     |                                  |
2628 |                      |     \* If the publish\-config field is set to N in the payload, then running configuration is not written to the file                                     |                     |                                  |
2629 |                      |                                                                                                                                                           |                     |                                  |
2630 +----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+----------------------------------+
2631
2632
2633 Unlock
2634 ------
2635
2636 Run the Unlock command to release the lock on a VNF and allow other clients to perform LCM commands on that VNF.
2637
2638 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.
2639
2640 The Unlock command will result in success if the VNF successfully unlocked or if it was already unlocked, otherwise commands will be rejected.
2641
2642 The Unlock command will only return success if the VNF was locked with same request-id.
2643
2644 The Unlock command returns only one final response with the status of the request processing.
2645
2646 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.
2647
2648 +------------------------------+-----------------------------------------------------+
2649 |     **Target URL**           |     /restconf/operations/appc-provider-lcm:unlock   |
2650 +------------------------------+-----------------------------------------------------+
2651 |     **Action**               |     Unlock                                          |
2652 +------------------------------+-----------------------------------------------------+
2653 |     **Action-identifiers**   |     Vnf-id                                          |
2654 +------------------------------+-----------------------------------------------------+
2655 |     **Payload Parameters**   |     see table below                                 |
2656 +------------------------------+-----------------------------------------------------+
2657 |     **Revision History**     |     Unchanged in this release.                      |
2658 +------------------------------+-----------------------------------------------------+
2659
2660 |
2661
2662 +---------------------------------+-------------------------------------------------------------------------+---------------------+----------------------------------+
2663 |     **Payload Parameter**       |     **Description**                                                     |     **Required?**   |     **Example**                  |
2664 +=================================+=========================================================================+=====================+==================================+
2665 |     request-id                  |     Request id from the previously submitted request                    |     Yes             |    "request-id": "123456789"     |
2666 +---------------------------------+-------------------------------------------------------------------------+---------------------+----------------------------------+
2667
2668
2669 UpgradeBackout
2670 --------------
2671
2672 The UpgradeBackout LCM action does a backout after an UpgradeSoftware is completed (either successfully or unsuccessfully).
2673
2674 This command is executed using an Ansible playbook or Chef cookbook.
2675
2676 Request Structure: The request payload includes an upgrade identifier.
2677
2678 +--------------------------+----------------------------------------------------------+
2679 | **Target URL**           | /restconf/operations/appc-provider-lcm:upgrade-backout   |
2680 +--------------------------+----------------------------------------------------------+
2681 | **Action**               | UpgradeBackout                                           |
2682 +--------------------------+----------------------------------------------------------+
2683 | **Action-identifiers**   | vnf-id                                                   |
2684 +--------------------------+----------------------------------------------------------+
2685 | **Payload Parameters**   | existing-software-version, new-software-version          |
2686 +--------------------------+----------------------------------------------------------+
2687 | **Revision History**     | New in Beijing                                           |
2688 +--------------------------+----------------------------------------------------------+
2689
2690 Request Payload Parameters:
2691
2692 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2693 | **Parameter**         |     **Description**                 |     **Required?**   |     **Example**                                                                               |
2694 +=======================+=====================================+=====================+===============================================================================================+
2695 | existing-software-    |     The existing software version   |     Yes             |     "payload":                                                                                |
2696 | version               |     prior to the upgrade            |                     |     "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}”   |
2697 +-----------------------+-------------------------------------+---------------------+                                                                                               |
2698 | new-software-         |     The new software                |     Yes             |                                                                                               |
2699 | version               |     version after the               |                     |                                                                                               |
2700 |                       |     upgrade                         |                     |                                                                                               |
2701 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2702
2703 UpgradeBackout Response
2704 ^^^^^^^^^^^^^^^^^^^^^^^
2705
2706 **Success:** A successful backout returns a success status code 400.
2707
2708 **Failure:** A failed backout returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2709
2710 UpgradeBackup
2711 -------------
2712
2713 The UpgradeBackup LCM action does a full backup of the VNF data prior to an upgrade. The backup is done on the Ansible or Chef server in a location that is specified in the playbook or cookbook. If there is an existing backup, it is overwritten by the new backup.
2714
2715 This command is executed using an Ansible playbook or Chef cookbook.
2716   
2717 Request Structure: The payload does not have any parameters required.
2718
2719 +--------------------------+---------------------------------------------------------+
2720 | **Target URL**           | /restconf/operations/appc-provider-lcm:upgrade-backup   |
2721 +--------------------------+---------------------------------------------------------+
2722 | **Action**               | UpgradeBackup                                           |
2723 +--------------------------+---------------------------------------------------------+
2724 | **Action-identifiers**   | vnf-id                                                  |
2725 +--------------------------+---------------------------------------------------------+
2726 | **Payload Parameters**   | existing-software-version, new-software-version         |
2727 +--------------------------+---------------------------------------------------------+
2728 | **Revision History**     | New in Beijing.                                         |
2729 +--------------------------+---------------------------------------------------------+
2730
2731 Request Payload Parameters:
2732
2733 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2734 | **Parameter**         |     **Description**                 |     **Required?**   |     **Example**                                                                               |
2735 +=======================+=====================================+=====================+===============================================================================================+
2736 | existing-software-    |     The existing software version   |     Yes             |     "payload":                                                                                |
2737 | version               |     prior to the upgrade            |                     |     "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}”   |
2738 +-----------------------+-------------------------------------+---------------------+                                                                                               |
2739 | new-software-         |     The new software                |     Yes             |                                                                                               |
2740 | version               |     version after the               |                     |                                                                                               |
2741 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2742
2743 UpgradeBackup Response
2744 ^^^^^^^^^^^^^^^^^^^^^^
2745
2746 **Success:** A successful backup returns a success status code 400.
2747
2748 **Failure:** A failed backup returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2749
2750 UpgradePostCheck
2751 ----------------
2752
2753 The UpgradePostCheck LCM action checks that the VNF upgrade has been successful completed and all processes are running properly.
2754
2755 This command is executed using an Ansible playbook or Chef cookbook.
2756
2757 Request Structure:
2758
2759 +--------------------------+-------------------------------------------------------------+
2760 | **Target URL**           | /restconf/operations/appc-provider-lcm:upgrade-post-check   |
2761 +--------------------------+-------------------------------------------------------------+
2762 | **Action**               | UpgradePostCheck                                            |
2763 +--------------------------+-------------------------------------------------------------+
2764 | **Action-identifiers**   | vnf-id                                                      |
2765 +--------------------------+-------------------------------------------------------------+
2766 | **Payload Parameters**   | existing-software-version, new-software-version             |
2767 +--------------------------+-------------------------------------------------------------+
2768 | **Revision History**     | New in Beijing                                              |
2769 +--------------------------+-------------------------------------------------------------+
2770
2771 Request Payload Parameters:
2772
2773 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2774 | **Parameter**         |     **Description**                 |     **Required?**   |     **Example**                                                                               |
2775 +=======================+=====================================+=====================+===============================================================================================+
2776 | existing- software-   |     The existing software version   |     Yes             |     "payload":                                                                                |
2777 |  version              |     prior to the upgrade            |                     |     "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}”   |
2778 +-----------------------+-------------------------------------+---------------------+                                                                                               |
2779 | new-software-         |     The new software                |     Yes             |                                                                                               |
2780 | version               |     version after the               |                     |                                                                                               |
2781 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2782
2783 UpgradePostCheck Response
2784 ^^^^^^^^^^^^^^^^^^^^^^^^^
2785
2786 **Success:** If the UpgradePostCheck run successfully, it returns a success status code 400. The response payload contains the results of the check (Completed or Failed).
2787
2788 Response Payload Parameters:
2789
2790 +---------------+-----------------------------+-------------+------------------------------------------------------------------------------+
2791 | **Parameter** |     **Description**         |**Required?**|     **Example**                                                              |
2792 +===============+=============================+=============+==============================================================================+
2793 | Upgrade-      |     Returns the status      |     Yes     |                                                                              |
2794 | Status        |     of the upgradw          |             |     "payload":                                                               |
2795 |               |     post-check. Indicates   |             |     "{\\"upgrade-status\\": \\"Completed\\"}”                                |
2796 |               |     Completed or Failed     |             |     "payload": "{\\"upgrade-status\\":                                       |
2797 |               |                             |             |     \\"Failed\\",\\"message\\": \\"Version 3.2 is not running properly\\" }” |
2798 +---------------+-----------------------------+-------------+                                                                              |
2799 | Message       |     If Not Available,       |             |                                                                              |
2800 |               |     message contains        |             |                                                                              |
2801 |               |     explanation.            |             |                                                                              |
2802 +---------------+-----------------------------+-------------+------------------------------------------------------------------------------+
2803
2804 **Failure:** If the UpgradePostCheck could not be run, it returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2805
2806 UpgradePreCheck
2807 ---------------
2808
2809 The UpgradePreCheck LCM action checks that the VNF has the correct software version needed for a software upgrade. This command can be executed on a running VNF (i.e. processing traffic).
2810
2811 This command is executed using an Ansible playbook or Chef cookbook.
2812
2813 Request Structure:
2814
2815 +--------------------------+------------------------------------------------------------+
2816 | **Target URL**           | /restconf/operations/appc-provider-lcm:upgrade-pre-check   |
2817 +--------------------------+------------------------------------------------------------+
2818 | **Action**               | UpgradePreCheck                                            |
2819 +--------------------------+------------------------------------------------------------+
2820 | **Action-identifiers**   | vnf-id                                                     |
2821 +--------------------------+------------------------------------------------------------+
2822 | **Payload Parameters**   | existing-software-version, new-software-version            |
2823 +--------------------------+------------------------------------------------------------+
2824 | **Revision History**     | New in Beijing                                             |
2825 +--------------------------+------------------------------------------------------------+
2826
2827 Request Payload Parameters:
2828
2829 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2830 | **Parameter**         |     **Description**                 |     **Required?**   |     **Example**                                                                               |
2831 +=======================+=====================================+=====================+===============================================================================================+
2832 | existing-software-    |     The existing software version   |     Yes             |     "payload":                                                                                |
2833 | version               |     prior to the upgrade            |                     |     "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}”   |
2834 +-----------------------+-------------------------------------+---------------------+                                                                                               |
2835 | new-software-         |     The new software                |     Yes             |                                                                                               |
2836 | version               |     version after the               |                     |                                                                                               |
2837 |                       |     upgrade                         |                     |                                                                                               |
2838 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2839
2840 UpgradePreCheck Response
2841 ^^^^^^^^^^^^^^^^^^^^^^^^
2842
2843 **Success:** If the UpgradePreCheck runs successfully, it returns a success status code 400. The response payload contains the results of the check (Available or Not Available for upgrade).
2844
2845 Response Payload Parameters:
2846
2847 +-----------------+---------------------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------+
2848 | **Parameter**   |     **Description**       |     **Required?**   |     **Example**                                                                                                                  |
2849 +=================+===========================+=====================+==================================================================================================================================+
2850 | upgrade-status  |     Returns the status    |     Yes             |                                                                                                                                  |
2851 |                 |     of the upgrade pre-   |                     |     "payload":                                                                                                                   |
2852 |                 |     check. Indicates      |                     |     "{\\"upgrade-status\\": \\"Available\\"}”                                                                                    |
2853 |                 |     Available or Not      |                     |                                                                                                                                  |
2854 |                 |     Available             |                     |     "payload":                                                                                                                   |
2855 |                 |                           |                     |     "{\\"upgrade-status\\": \\"Not Available\\",\\"message\\": \\"Current software version 2.9 cannot be upgraded to 3.1\\" }”   |
2856 +-----------------+---------------------------+---------------------+                                                                                                                                  |
2857 |     message     |     If Not Available,     |                     |                                                                                                                                  |
2858 |                 |     message contains      |                     |                                                                                                                                  |
2859 |                 |     explanation.          |                     |                                                                                                                                  |
2860 +-----------------+---------------------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------+
2861
2862 **Failure:** If an UpgradePreCheck fails to run, it returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2863
2864 UpgradeSoftware
2865 ---------------
2866
2867 The UpgradeSoftware LCM action upgrades the target VNF to a new version. It is expected that the VNF is in a quiesced status (not processing traffic).
2868
2869 This command is executed using an Ansible playbook or Chef cookbook.
2870   
2871 Request Structure: The request payload includes the new-software-version.
2872
2873 +--------------------------+-----------------------------------------------------------+
2874 | **Target URL**           | /restconf/operations/appc-provider-lcm:upgrade-software   |
2875 +--------------------------+-----------------------------------------------------------+
2876 | **Action**               | UpgradeSoftware                                           |
2877 +--------------------------+-----------------------------------------------------------+
2878 | **Action-identifiers**   | vnf-id                                                    |
2879 +--------------------------+-----------------------------------------------------------+
2880 | **Payload Parameters**   | existing-software-version, new-software-version           |
2881 +--------------------------+-----------------------------------------------------------+
2882 | **Revision History**     | New in Beijing                                            |
2883 +--------------------------+-----------------------------------------------------------+
2884
2885  Request Payload Parameters:
2886
2887 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2888 | **Parameter**         |     **Description**                 |     **Required?**   |     **Example**                                                                               |
2889 +=======================+=====================================+=====================+===============================================================================================+
2890 | existing- software-   |     The existing software version   |     Yes             |     "payload":                                                                                |
2891 | version               |      prior to the upgrade           |                     |     "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}”   |
2892 +-----------------------+-------------------------------------+---------------------+                                                                                               |
2893 | new-software          |     The new software                |     Yes             |                                                                                               |
2894 | version               |     version after the               |                     |                                                                                               |
2895 |                       |     upgrade                         |                     |                                                                                               |
2896 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2897
2898 UpgradeSoftware Response
2899 ^^^^^^^^^^^^^^^^^^^^^^^^
2900
2901 **Success:** A successful upgrade returns a success status code 400.
2902
2903 If an UpgradeSoftware command is executed and the software has been previously upgraded to this version, it should return a success status.
2904
2905 **Failure:** A failed upgrade returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block. A failure does not assume that the software upgrade has been rolled back.
2906
2907 Notes regarding the Upgrade commands
2908 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2909 Ansible playbooks / Chef cookbooks:
2910
2911 -  All Ansible playbooks/cookbooks for the Upgrade commands will be
2912    stored in the same directory on the server. The directory name will
2913    be of the format: 
2914    
2915         {existing-software-version_new-software-version}. 
2916                 
2917                 The path to the directory is the same for all upgrades (for example: vnf-type/softwareupgrade).
2918
2919 -  The playbooks for upgrades should use a standard naming convention
2920    (for example: SoftwareUpgrade_{existing-software-version_new-software-version}).
2921
2922 APPC template: The APPC templates for the Upgrade commands can be common across upgrades for the vnf-type if the path and filenames are standardized.
2923
2924 -  The template will contain the directory path/playbook name which
2925    would be parameterized.
2926
2927     {vnf-type}/UpgradeSoftware/${existing_software_version}_${new-software-version}/
2928     SoftwareUpgrade_{existing-software-version_new-software-version}.
2929
2930