5f266ac4cc9a0d637307ce3ab8fba4dd405e584b
[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-key-group-create
17 description: Create License Key Group
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: vlm-id
27     description: License Model Id
28     type: string
29     short_option: c
30     long_option: vlm-id
31     is_optional: false
32   - name: vlm-version
33     description: License Model version
34     type: string
35     short_option: e
36     long_option: vlm-version
37     is_optional: false
38   - name: name
39     description: name
40     type: string
41     short_option: x
42     long_option: name
43     is_optional: false
44   - name: type
45     description: type of group (Universal, unique, one-time)
46     type: string
47     short_option: y
48     long_option: type
49     is_optional: false
50     default_value: Universal
51
52 results:
53   direction: portrait
54   attributes:
55     - name: id
56       description: License Model ID
57       scope: short
58       type: string
59 http:
60   service:
61     name: sdc
62     version: v1.0
63     auth: basic
64     mode: direct
65   request:
66     uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-key-groups
67     method: POST
68     body: '{"name": "${name}", "type": "${type}"}'
69   success_codes:
70     - 200
71   result_map:
72     id: $b{$.value}