ca9d00ea8223a41edb2dc4759cbc6433d468508f
[cli.git] /
1 open_cli_schema_version: 1.0
2 name: vlm-entitlement-pool-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: name
13     description: Entitlement Pool name
14     type: string
15     short_option: x
16     long_option: name
17     is_optional: false
18   - name: vlm-id
19     description: License Model ID
20     type: string
21     short_option: y
22     long_option: vlm-id
23     is_optional: false
24   - name: vlm-version
25     description: License Model version
26     type: string
27     short_option: e
28     long_option: vlm-version
29     is_optional: false
30   - name: description
31     description: Description for Entitlement Pool
32     type: string
33     short_option: z
34     long_option: description
35     is_optional: false
36   - name: operational-scope
37     description: Operational Scope
38     type: string
39     short_option: g
40     long_option: operational-scope
41     is_optional: false
42     default_value: Availability_Zone
43   - name: manufacture-reference-number
44     description: Manufature Reference Number
45     type: string
46     short_option: k
47     long_option: manufacture-reference-number
48     is_optional: false
49
50
51 results:
52   direction: portrait
53   attributes:
54     - name: ID
55       description: Entitlement Pool ID
56       scope: short
57       type: string
58 http:
59   service:
60     name: sdc
61     version: v1.0
62     auth: basic
63     mode: direct
64   request:
65     uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools
66     method: POST
67     body: '{"aggregationFunction":{"choice":"Peak","other":""},"description":"${description}","entitlementMetric":{"choice":"CPU","other":""},"increments":"1","manufacturerReferenceNumber":"${manufacture-reference-number}","name":"${name}","operationalScope":{"choices":["${operational-scope}"],"other":""},"thresholdUnits":"Absolute","thresholdValue":"99","time":{"choice":"Hour","other":""}}'
68   success_codes:
69     - 200
70   result_map:
71     ID: $b{$.value}
72   sample_response:
73     body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'