19f68666310d5c1ccba117cbab069bff62249e4d
[cli.git] /
1 #  Copyright © Intel Corporation 2019
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 open_cli_schema_version: 1.0
16 name: vfc-nslcm-terminate
17 description: vfc nslcm terminate ns
18
19 info:
20   product: onap-dublin
21   service: vfc
22   author: ONAP HPA Integration Team (haibin.huang@intel.com)
23
24 parameters:
25   - name: ns-instance-id
26     description: ns's instance id
27     type: string
28     short_option: i
29     long_option: ns-instance-id
30     is_optional: false
31
32 results:
33   direction: landscape
34   attributes:
35     - name: job-id
36       description: job id
37       scope: short
38       type: string
39
40 http:
41   service:
42     auth: none
43     mode: direct
44   request:
45     uri: /api/nslcm/v1/ns/${ns-instance-id}/terminate
46     method: POST
47     context:
48       remove_empty_node: true
49     body: '{}'
50     headers:
51       Content-Type: application/json
52       Accept: application/json
53   success_codes:
54     - 202
55   result_map:
56     job-id: $b{$.jobId}