4d607f306f5370b394f37784cd20df235a7932c4
[cli.git] /
1 # Copyright 2019 Intel Corporation.
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-list-outdated
17 description: List policies
18
19 info:
20   product: onap-elalto
21   service: policy
22   author: ONAP HPA Team onap-discuss@lists.onap.org
23
24 parameters:
25   - name: policy-name
26     description: ONAP policy name
27     type: string
28     long_option: policy-name
29     short_option: x
30     is_optional: false
31     default_value: .*
32   - name: config-attributes
33     description: Configuration Attributes
34     type: json
35     long_option: config-attributes
36     short_option: A
37     is_optional: true
38     default_value: {}
39
40 results:
41   direction: landscape
42   attributes:
43     - name: name
44       description: Policy Name
45       scope: short
46       type: string
47     - name: type
48       description: Policy type
49       scope: short
50       type: string
51     - name: config
52       description: Policy configuration
53       scope: short
54       type: json
55     - name: version
56       description: Policy version
57       scope: long
58       type: string
59     - name: rules
60       description: Policy rules
61       scope: long
62       type: json
63 http:
64   service:
65     name: policy
66     version: v1.0
67     auth: basic
68     mode: direct
69   request:
70     uri: /pdp/api/getConfig
71     method: POST
72     body: '{"configAttributes": "${config-attributes}", "policyName": "${policy-name}"}'
73     headers:
74       Accept: application/json
75       ClientAuth: cHl0aG9uOnRlc3Q=
76       Environment: TEST
77
78
79   success_codes:
80     - 200
81
82   result_map:
83     name: $b{$.[*].policyName}
84     type: $b{$.[*].policyType}
85     version: $b{$.[*].policyVersion}
86     config: $b{$.[*].config}
87     rules: $b{$.[*].matchingConditions}
88