0577d30f43014cc50168bb3d75910770a827a689
[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-create
17 description: vfc nslcm create 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-csar-uuid
26     description: ns's uuid of csar file
27     type: string
28     short_option: c
29     long_option: ns-csar-uuid
30     is_optional: false
31   - name: ns-csar-name
32     description: ns's name of csar
33     type: string
34     short_option: n
35     long_option: ns-csar-name
36     is_optional: false
37
38 results:
39   direction: landscape
40   attributes:
41     - name: ns-instance-id
42       description: ns-instance-id
43       scope: short
44       type: string
45
46 http:
47   service:
48     auth: none
49     mode: direct
50   request:
51     uri: /api/nslcm/v1/ns
52     method: POST
53     context:
54       remove_empty_node: true
55     body: '{"csarId": "${ns-csar-uuid}", "nsName": "${ns-csar-name}"}'
56     headers:
57       Content-Type: application/json
58       Accept: application/json
59   success_codes:
60     - 201
61   result_map:
62     ns-instance-id: $b{$.nsInstanceId}