Added command to get policy with latest version
[cli.git] / products / onap-elalto / features / policy / src / main / resources / open-cli-schema / policy / policy-type-list-with-latest-version-schema-elalto.yaml
1 # Copyright 2019 Huawei Technologies Co., Ltd.
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-latest-version
17 description: Returns latest version for the specified policy type
18
19 info:
20   product: onap-elalto
21   service: policy
22   author: ONAP CLI 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
32 results:
33   direction: landscape
34   attributes:
35     - name: Type properties
36       description: Policy type properties
37       scope: short
38       type: json
39
40 http:
41   service:
42     name: policy
43     version: v1.0
44     auth: basic
45     mode: direct
46   request:
47     uri: /policy/api/v1/policytypes/${policy-type-id}/versions/latest
48     method: GET
49     headers:
50       Accept: application/json
51       Environment: TEST
52
53   success_codes:
54     - 200
55
56   result_map:
57     Type properties: $b{$.[*]}