b4559d2783f3842843247c2d36b1426132e13a77
[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-feature-group-create
17 description: Create feature group Pool
18
19 info:
20   product: onap-dublin
21   service: sdc
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: name
27     description: Feature group name
28     type: string
29     short_option: x
30     long_option: name
31     is_optional: false
32   - name: vlm-id
33     description: License Model ID
34     type: string
35     short_option: y
36     long_option: vlm-id
37     is_optional: false
38   - name: vlm-version
39     description: License Model version
40     type: string
41     short_option: e
42     long_option: vlm-version
43     is_optional: false
44   - name: description
45     description: Description for feature group
46     type: string
47     short_option: z
48     long_option: description
49     is_optional: false
50   - name: vlm-key-group-id
51     description: VLM keygroup
52     type: string
53     short_option: g
54     long_option: vlm-key-group-id
55     is_optional: false
56   - name: vlm-entitle-pool-id
57     description: VLM Entitlement pool
58     type: string
59     short_option: b
60     long_option: vlm-entitle-pool-id
61     is_optional: false
62   - name: part-number
63     description: Part number
64     type: string
65     short_option: c
66     long_option: part-number
67     is_optional: false
68
69 results:
70   direction: portrait
71   attributes:
72     - name: ID
73       description: Feature group ID
74       scope: short
75       type: string
76 http:
77   service:
78     name: sdc
79     version: v1.0
80     auth: basic
81     mode: direct
82   request:
83     uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/feature-groups
84     method: POST
85     body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}", "description": "${description}"}'
86   success_codes:
87     - 200
88   result_map:
89     ID: $b{$.value}
90   sample_response:
91     body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'