...
Code Block |
---|
title | Get Config |
---|
collapse | true |
---|
|
echo "Get all Config Policy example"
curl -i -v -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'ClientAuth: XYZ' -H 'Authorization: Basic XYZ -H 'Environment: TEST' -X POST -d '{
"policyName": ".*"
}' http://${PDP_IP}:8081/pdp/api/getConfig |
ADDITIONALÂ EXAMPLES
Code Block |
---|
title | Deleting a Policy from PAP |
---|
collapse | true |
---|
|
// Deleting from PAP will remove the policy from the PolicyEntity & PolicyVersion tables (UI-Editor tab).
// This means that the policy will no longer be available.
// PayLoad:
{ "policyName": "com.testpolicy", //scope.policyName
"policyType": "Base", //policy type
"policyComponent": "PAP", //component name
"deleteCondition": "ALL" //versions (ALL or CURRENT)
} |
Code Block |
---|
title | Deleting a Policy from PDP |
---|
collapse | true |
---|
|
// Deleting from PDP will delete the policy the PDP Group. The policy is still available.
// When the policy is needed again, the policy should be pushed to the PDP.
// PayLoad:
{ "policyName": "com.testpolicy", //scope.policyName
"policyType": "Base", //policy type
"policyComponent": "PDP", //component name
"pdpGroup": "Default" //group name
} |
POLICY ENGINE API DETAILS
...