721d26042522e745afe752bdb1d48b501d2353d3
[cli.git] /
1 open_cli_schema_version: 1.0
2 name: ep-create
3 description: Create Entitlement Pool
4
5 info:
6   product: onap-amsterdam
7   service: sdc
8   author: ONAP CLI Team onap-discuss@lists.onap.org
9
10
11 parameters:
12   - name: ep-name
13     description: Entitlement Pool name
14     type: string
15     short_option: x
16     long_option: ep-name
17     is_optional: false
18   - name: license-model-id
19     description: License Model ID
20     type: string
21     short_option: y
22     long_option: license-model-id
23     is_optional: false
24   - name: ep-description
25     description: Description for Entitlement Pool
26     type: string
27     short_option: z
28     long_option: ep-description
29     is_optional: false
30   - name: threshold-value
31     description: threshold
32     type: string
33     short_option: q
34     long_option: threshold-value
35     is_optional: false
36   - name: threshold-unit
37     description: threshold
38     type: string
39     short_option: b
40     long_option: threshold-unit
41     is_optional: false
42   - name: entitlement-metric
43     description: Entitlement Metric
44     type: string
45     short_option: c
46     long_option: entitlement-metric
47     is_optional: false
48   - name: aggregation-function
49     description: Aggregation Function
50     type: string
51     short_option: e
52     long_option: aggregation-function
53     is_optional: false
54   - name: operational-scope
55     description: Operational Scope
56     type: string
57     short_option: g
58     long_option: operational-scope
59     is_optional: false
60   - name: reference-number
61     description: Reference Number
62     type: string
63     short_option: k
64     long_option: reference-number
65     is_optional: false
66
67
68 results:
69   direction: portrait
70   attributes:
71     - name: ID
72       description: Entitlement Pool ID
73       scope: short
74       type: string
75 http:
76   service:
77     name: sdc
78     version: v1.0
79     auth: basic
80     mode: direct
81   request:
82     uri: /onboarding-api/v1.0/vendor-license-models/${license-model-id}/entitlement-pools
83     method: POST
84     body: '{"name": "${ep-name}", "description": "${ep-description}",  "thresholdValue": "${threshold-value}", "thresholdUnits": "${threshold-unit}", "entitlementMetric":{"choice": "${entitlement-metric}","other": ""}, "increments": "robot", "aggregationFunction":{"choice": "${aggregation-function}","other": ""}, "operationalScope":{"choices":["${operational-scope}"], "other":""},"time":{"choice": "Hour", "other":""}, "manufacturerReferenceNumber":"${reference-number}"}'
85   success_codes:
86     - 200
87   result_map:
88     ID: $b{$.value}
89   sample_response:
90     body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'