3117262713f4cdef4f869a23ae45c90bad8996fb
[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-elalto
21   service: sdc.onboarding
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: manufacture-reference-number
45     description: Manufature Reference Number
46     type: string
47     short_option: k
48     long_option: manufacture-reference-number
49     is_optional: false
50   - name: start-date
51     description: License start date (MM/DD/YYYY)
52     type: string
53     short_option: l
54     long_option: start-date
55     is_optional: false
56   - name: expiry-date
57     description: License end date (MM/DD/YYYY)
58     type: string
59     short_option: g
60     long_option: expiry-date
61     is_optional: false
62
63 results:
64   direction: portrait
65   attributes:
66     - name: id
67       description: Entitlement Pool ID
68       scope: short
69       type: string
70 http:
71   service:
72     name: sdc
73     version: v1.0
74     auth: basic
75     mode: direct
76   request:
77     uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools
78     method: POST
79     body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${start-date}","expiryDate":"${expiry-date}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
80   success_codes:
81     - 200
82   result_map:
83     id: $b{$.value}