diff options
Diffstat (limited to 'config/pe/push-policies.sh')
-rw-r--r-- | config/pe/push-policies.sh | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/config/pe/push-policies.sh b/config/pe/push-policies.sh index bd841f15..02d1f254 100644 --- a/config/pe/push-policies.sh +++ b/config/pe/push-policies.sh @@ -43,7 +43,28 @@ curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Acce sleep 2 -echo "pushPolicy : DELETE : com.BRMSParamvFWDemoPolicy.1.xml" +echo "deletePolicy : DELETE : com.vFirewall" +curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ +"pdpGroup": "default", +"policyComponent": "PDP", +"policyName": "com.vFirewall", +"policyType": "MicroService" +}' 'http://pdp:8081/pdp/api/deletePolicy' + + +sleep 2 + +echo "deletePolicy : DELETE : com.vLoadBalancer" +curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ +"pdpGroup": "default", +"policyComponent": "PDP", +"policyName": "com.vLoadBalancer", +"policyType": "MicroService" +}' 'http://pdp:8081/pdp/api/deletePolicy' + +sleep 2 + +echo "deletePolicy : DELETE : com.BRMSParamvFWDemoPolicy" curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ "pdpGroup": "default", "policyComponent": "PDP", @@ -54,7 +75,7 @@ curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'A sleep 2 -echo "pushPolicy : DELETE : com.BRMSParamvLBDemoPolicy.1.xml" +echo "deletePolicy : DELETE : com.BRMSParamvLBDemoPolicy" curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ "pdpGroup": "default", "policyComponent": "PDP", @@ -64,6 +85,24 @@ curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'A sleep 2 +echo "pushPolicy : PUT : com.vFirewall" +curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ + "pdpGroup": "default", + "policyName": "com.vFirewall", + "policyType": "MicroService" +}' 'http://pdp:8081/pdp/api/pushPolicy' + +sleep 2 + +echo "pushPolicy : PUT : com.vLoadBalancer" +curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ + "pdpGroup": "default", + "policyName": "com.vLoadBalancer", + "policyType": "MicroService" +}' 'http://pdp:8081/pdp/api/pushPolicy' + +sleep 2 + echo "pushPolicy : PUT : com.BRMSParamvLBDemoPolicy" curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ "pdpGroup": "default", |