1 # Copyright © Intel Corporation 2019
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 open_cli_schema_version: 1.0
16 name: policy-update-outdated
17 description: Update a policy in PAP
22 author: ONAP CLI Team onap-discuss@lists.onap.org
26 description: Onap policy Name
29 long_option: policy-name
31 - name: policy-config-type
32 description: Policy config type
34 long_option: policy--config-type
38 description: Policy scope
40 long_option: policy-scope
44 description: Onap name
46 long_option: onap-name
49 - name: policy-config-body
50 description: Policy config body
52 long_option: policy-config-body
63 uri: /pdp/api/updatePolicy
66 remove_empty_node: true
67 body: '{"policyName": "${policy-name}",
68 "policyConfigType": "${policy-config-type}",
69 "policyScope": "${policy-scope}",
70 "onapName": "${onap-name}",
71 "configBody": "${policy-config-body}"}'
73 Content-Type: application/json
76 ClientAuth: cHl0aG9uOnRlc3Q=