...
NOTE: Seems this is a reverse hierarchy of the PAP PDP Groups listing:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
http:{url}:{port}/api/v1/models GET models: - model: onap.Monitoring description: A base policy type for all policies that govern monitoring provision pdp_groups: - name: DCAE policy group description: DCAE mS Configuration Policies pdp_types: - XACML - model: onap.controlloop.Operational description: Operational Policy for Control Loops pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - Drools - Apex - model: onap.policy.controlloop.guard.frequencylimiter description: Supports limiting the frequency of actions being taken by a Actor. pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - XACML - model: onap.policy.controlloop.guard.blacklist description: Supports blacklist of VNF's from performing control loop actions on. pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - XACML - model: onap.policy.controlloop.guard.minmax description: Supports Min/Max number of VF Modules pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - XACML - model: onap.controlloop.Coordination.TBD description: CLC description TBD pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - XACML |
...
Once this call is made, now the models query will display the following available models for policy creation, notice the new "onap.policy.monitoring.cdap.tca.hi.lo.app" domain listed.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
http:{url}:{port}/api/v1/models GET models: - model: onap.Monitoring description: A base policy type for all policies that govern monitoring provision pdp_groups: - name: DCAE policy group description: DCAE mS Configuration Policies pdp_types: - XACML - model: onap.policy.monitoring.cdap.tca.hi.lo.app description: pdp_groups: - name: DCAE policy group description: DCAE mS Configuration Policies pdp_types: - XACML - model: onap.controlloop.Operational description: Operational Policy for Control Loops pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - Drools - Apex - model: onap.policy.controlloop.guard.frequencylimiter description: Supports limiting the frequency of actions being taken by a Actor. pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - XACML - model: onap.policy.controlloop.guard.blacklist description: Supports blacklist of VNF's from performing control loop actions on. pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - XACML - model: onap.policy.controlloop.guard.minmax description: Supports Min/Max number of VF Modules pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - XACML - model: onap.controlloop.Coordination.TBD description: CLC description TBD pdp_groups: - name: Control Loop runtime group description: ONAP Control Loop Operational and Guard policies pdp_types: - XACML |
...
Code Block |
---|
http:{url}:{port}/api/v1/models?model=onap.policy.monitoring.cdap.tca.hi.lo.app&id=dublin.tca PUT Content-Type: application/json (??) Return payload: PolicyId: UniqueId_1 PolicyVersion: 1 Should be able to GET http:{url}:{port}/api/v1/domains/onap.policy.monitoring.cdap.tca.hi.lo.app/dublin.tca?PolicyId=UniqueId_1&PolicyVersion=1 |
...