db0af2b652f5243ec2b9376854e50bbf80be54b3
[cli.git] /
1 open_cli_schema_version: 1.0
2 name: ep-create
3 description: Create Entitlement Pool
4 version: onap-1.0
5 service:
6   name: sdc
7   version: v1.0
8   auth: basic
9   mode: direct
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   request:
77     uri: /onboarding-api/v1.0/vendor-license-models/${license-model-id}/entitlement-pools
78     method: POST
79     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}"}'
80   success_codes:
81     - 200
82   result_map:
83     ID: $b{$.value}
84   sample_response:
85     body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'