6bcf1339d50d49bc1f52c9df6b1998efa4edcc80
[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-entitlement-pool-create
17 description: Create Entitlement 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: Entitlement Pool 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 Entitlement Pool
46     type: string
47     short_option: z
48     long_option: description
49     is_optional: false
50   - name: manufacture-reference-number
51     description: Manufature Reference Number
52     type: string
53     short_option: k
54     long_option: manufacture-reference-number
55     is_optional: false
56   - name: startDate
57     description: License start date (MM/DD/YYYY)
58     type: string
59     short_option: l
60     long_option: startDate
61     is_optional: false
62   - name: expiryDate
63     description: License end date (MM/DD/YYYY)
64     type: string
65     short_option: g
66     long_option: expiryDate
67     is_optional: false    
68
69 results:
70   direction: portrait
71   attributes:
72     - name: ID
73       description: Entitlement Pool 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}/entitlement-pools
84     method: POST
85     body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${startDate}","expiryDate":"${expiryDate}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
86   success_codes:
87     - 200
88   result_map:
89     ID: $b{$.value}