5276e521f387c3cb4e9049c1030225fea8b0295d
[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-aggreement-create
17 description: Create license aggreement
18
19 info:
20   product: onap-elalto
21   service: sdc.onboarding
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24 parameters:
25   - name: name
26     description: aggreement name
27     type: string
28     short_option: x
29     long_option: name
30     is_optional: false
31   - name: vlm-id
32     description: License Model ID
33     type: string
34     short_option: y
35     long_option: vlm-id
36     is_optional: false
37   - name: vlm-version
38     description: License Model version
39     type: string
40     short_option: e
41     long_option: vlm-version
42     is_optional: false
43   - name: vlm-feature-group-id
44     description: VLM feature group
45     type: string
46     short_option: g
47     long_option: vlm-feature-group-id
48     is_optional: false
49
50 results:
51   direction: portrait
52   attributes:
53     - name: id
54       description: aggreement ID
55       scope: short
56       type: string
57 http:
58   service:
59     name: sdc
60     version: v1.0
61     auth: basic
62     mode: direct
63   request:
64     uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-agreements
65     method: POST
66     body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}'
67   success_codes:
68     - 200
69   result_map:
70     id: $b{$.value}