9b1ef0377b641529bdf422fa06fa4db4e927f8be
[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: vlm-create
17 description: Create License Model
18
19 info:
20   product: onap-elalto
21   service: sdc.onboarding
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: vendor-name
27     description: vendor name
28     type: string
29     short_option: x
30     long_option: vendor-name
31     is_optional: false
32   - name: description
33     description: Description for License Model
34     type: string
35     short_option: y
36     long_option: description
37     is_optional: true
38 results:
39   direction: portrait
40   attributes:
41     - name: id
42       description: License Model ID
43       scope: short
44       type: uuid
45     - name: version
46       description: License Model version
47       scope: short
48       type: uuid
49 http:
50   service:
51     name: sdc
52     version: v1.0
53     auth: basic
54     mode: direct
55   request:
56     uri: /onboarding-api/v1.0/vendor-license-models
57     method: POST
58     body: '{"vendorName": "${vendor-name}", "description": "${description}",  "iconRef": "icon"}'
59   success_codes:
60     - 200
61   result_map:
62     id: $b{$.itemId}
63     version: $b{$.version.id}