Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Target REST API is a specific REST API for targets, provided the XACML PDP. It executes a single target policy with each invocation, so it may be called multiple times by the targetsCommon component on a single checkTargets call. The Target REST API is similar in structure and design to the Policy Decision API.

FieldRequiredXACML equivalentDescription
ONAPNameTruesubjectThe name of the ONAP project making the call
ONAPComponentTruesubjectThe name of the ONAP sub component making the call
ONAPInstanceFalsesubjectAn optional instance ID for that sub component
targetsTrueresourceThe targets to check
policyTrueresourceThe policy to use for the target check
contextFalseresourceExtra context to be considered in the target check

The XACML PDP executes the logic and rules of requested target policy on the given targets using the given context. and returns a boolean result of true or false.

...

At deployment, PolicyAdministration (the PAP) checks the policy being deployed to see if it uses targets. if so, the PAP reads the target policies from the policy database and deploys them to the XACML PDPs in the PDP group. It then deploys the policy that uses targets to the PDPs in the PDP group.

Development Effort

The table below gives a rough preliminary calculation of the effort required to develop this feature.

ComponentModuleEffortDescription of Work
policy-modelsmodels-toscaSAdd parsing and Database persistence for targets
policy-modelsmodels-papXSAdd modelling for targets
policy-pappap-mainLAdd support for deployment of target policies
policy-models?targets-commonXLImplementation of common target handling on event reception
policy-xacml-pdpapplications.targetsLAdd support for target policies
policy-xacml-pdpxacml-mainMAdd Target REST API
policy-apex-pdpservices-onappfSAdd check for targets on event reception
policy-drools
SAdd check for targets on event reception