New Policy Model Creation Request

Policy module allows the creation of new Optimization policies dynamically during run-time.

Below is a sample curl request to create a new optimization policy type. 

'curl -k -v --user 'healthcheck:zb!XztG34' -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d @thresholdType.json https://policy-api:6969/policy/api/v1/policytypes

threshold_type.json

Policy creation Request 

Sample request to create policy 

curl -v -k --silent --user 'healthcheck:zb!XztG34' -X POST "https://policy-api:6969/policy/api/v1/policytypes/onap.policies.optimization.resource.ThresholdPolicy/versions/1.0.0/policies" -H "Accept: application/json" -H "Content-Type: application/json" -d @threshold.json

threshold.json 


Other Sample Policies

vnf_attributes.json


  • No labels