57b12c254a5cb49d94af5a65d810dd966984f70a
[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: policy-type-list-with-version
17 description: Retrieve one particular version of a policy type
18
19 info:
20   product: onap-dublin
21   service: policy
22   author: ONAP HPA Team onap-discuss@lists.onap.org
23
24 parameters:
25   - name: policy-type-id
26     description: Policy type ID
27     type: string
28     long-option: policy-type-id
29     short-option: x
30     is_optional: false
31   - name: version-id
32     description: Policy type version ID
33     type: string
34     long-option: version-id
35     short-option: y
36     is_optional: false
37
38 results:
39   direction: landscape
40   attributes:
41     - name: Type properties
42       description: Policy type properties
43       scope: short
44       type: json
45
46 http:
47   service:
48     name: policy
49     version: v1.0
50     auth: basic
51     mode: direct
52   request:
53     uri: /policy/api/v1/policytypes/${policy-type-id}/versions/${version-id}
54     method: GET
55     headers:
56       Accept: application/json
57       ClientAuth: cHl0aG9uOnRlc3Q=
58       Environment: TEST
59
60
61   success_codes:
62     - 200
63
64   result_map:
65     Type properties: $b{$.[*]}