d320848fb0be2148b3c9ac1c81c7fa75daf04acc
[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-dublin
21   service: sdc
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: description
44     description: Description for aggreement
45     type: string
46     short_option: z
47     long_option: description
48     is_optional: false
49   - name: vlm-feature-group-id
50     description: VLM feature group
51     type: string
52     short_option: g
53     long_option: vlm-feature-group-id
54     is_optional: false
55
56 results:
57   direction: portrait
58   attributes:
59     - name: ID
60       description: aggreement ID
61       scope: short
62       type: string
63 http:
64   service:
65     name: sdc
66     version: v1.0
67     auth: basic
68     mode: direct
69   request:
70     uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-agreements
71     method: POST
72     body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "description": "${description}", "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}'
73   success_codes:
74     - 200
75   result_map:
76     ID: $b{$.value}
77   sample_response:
78     body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'