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.

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

L
Documentation

M