...
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.
Field | Required | XACML equivalent | Description |
---|---|---|---|
ONAPName | True | subject | The name of the ONAP project making the call |
ONAPComponent | True | subject | The name of the ONAP sub component making the call |
ONAPInstance | False | subject | An optional instance ID for that sub component |
targets | True | resource | The targets to check |
policy | True | resource | The policy to use for the target check |
context | False | resource | Extra 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.
Component | Module | Effort | Description of Work |
---|---|---|---|
policy-models | models-tosca | S | Add parsing and Database persistence for targets |
policy-models | models-pap | XS | Add modelling for targets |
policy-pap | pap-main | L | Add support for deployment of target policies |
policy-models? | targets-common | XL | Implementation of common target handling on event reception |
policy-xacml-pdp | applications.targets | L | Add support for target policies |
policy-xacml-pdp | xacml-main | M | Add Target REST API |
policy-apex-pdp | services-onappf | S | Add check for targets on event reception |
policy-drools | S | Add check for targets on event reception |