Versions Compared

Key

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

...

Code Block
After the PDPs have registered with the PAP:


http:{url}:{port}/pap/v1/pdps GET


{
	"pdps": [
		{
			"type": "xacml",
			"url": "http:{url}:{port}/decision/v1/",
			"domains": [
				{
					"domain": "onap.monitoring",
					"id": "dublin.monitoring.base",
					"description": "This is the base domain that is used to help generate monitoring domains for specific DCAE microservice models.\n",
					"version": 1
				},
				{
					"domain": "onap.policy.monitoring.cdap.tca.hi.lo.app",
					"id": "dublin.tca",
					"description": null,
					"version": 1
				}
			]
		},
		{
			"type": "xacml",
			"url": "http:{url}:{port}/decision/v1/",
			"domains": [
				{
					"domain": "onap.controlloop.guard",
					"id": "dublin.guard",
					"description": "This is the XACML based guard policy domain that supports frequency limiter, blacklist/whitelist and min/max guard policies.\n",
					"version": 1
				},
				{
					"domain": "onap.controlloop.coordination",
					"id": "dublin.coordination",
					"description": "This is the XACML based guard policy domain that supports frequency limiter, blacklist/whitelist and min/max guard policies.\n",
					"version": 1
				}
			]
		},
		{
			"type": "drools",
			"url": null,
			"domains": [
				{
					"domain": "onap.controlloop.operational",
					"id": "dublin.operational.drools",
					"description": "This is the operational policy domain that support action policies for control loops that are supported by the Drools PDP engine.\n",
					"version": 1
				}
			]
		},
		{
			"type": "apex",
			"url": null,
			"domains": [
				{
					"domain": "onap.controlloop.operational",
					"id": "dublin.operational.apex",
					"description": "This is the operational policy domain that support action policies for control loops that are supported by the Apex PDP engine.\n",
					"version": 1
				}
			]
		}
	]
}


...

#
# PAP - how it lists existing PDP Groups and Sub Groups and the models loaded
#
pdp_groups:
    -
        name: Control Loop runtime group
        description: ONAP Control Loop Operational and Guard policies
        subgroups:
            -
                pdp_type: drools
                instances:
                    -
                        instance: drools_1 # K8S identifier? IP??
                        models:
                            - onap.controlloop.operational
                    -
                        instance: drools_2
                        models:
                            - onap.controlloop.operational
                    -
                        instance: drools-3
                        models:
                            - onap.controlloop.operational
            -
                pdp_type: apex
                instances:
                    -
                        instance: apex_1
                        models:
                            - onap.controlloop.operational
                    -
                        instance: apex_2
                        models:
                            - onap.controlloop.operational
                    -
                        instance: apex_3
                        models:
                            - onap.controlloop.operational
            -
                pdp_type: xacml
                instances:
                    -
                        instance: xacml_1
                        models:
                            - onap.controlloop.guard
                            - onap.controlloop.coordination
                    -
                        instance: xacml_2
                        models:
                            - onap.controlloop.guard
                            - onap.controlloop.coordination

    -
        name: DCAE policy group
        subgroups:
            -
                pdp_type: xacml
                instances:
                -
                    instance: xacml_1
                    models:
                        - onap.controlloop.monitoring
                -
                    instance: xacml_2
                    models:
                        - onap.controlloop.monitoring



Policy Lifecycle API - Model query

The Policy Lifecycle API will utilize the SQL database to make GET available to applications (eg CLAMP, Integration) for determining all the available domains models for policy creation:

Code Block
http:{url}:{port}/api/v1/domainsmodels GET


{
	"policy_domains": [
		{
			"domain": "onap.monitoring",
			"id": "dublin.monitoring.base",
			"description": "This is the base domain that is used to help generate monitoring\ndomains for specific DCAE microservice models.\n",
			"pdp_types": [
				"xacml"
			],
			"version": 1
		},
		{
			"domain": "onap.controlloop.operational",
			"id": "dublin.operational.drools",
			"description": "This is the operational policy domain that support action policies for\ncontrol loops that are supported by the Drools PDP engine.\n",
			"pdp_types": [
				"drools"
			],
			"version": 1
		},
		{
			"domain": "onap.controlloop.operational",
			"id": "dublin.operational.apex",
			"description": "This is the operational policy domain that support action policies for\ncontrol loops that are supported by the Apex PDP engine.\n",
			"pdp_types": [
				"apex"
			],
			"version": 1
		},
		{
			"domain": "onap.controlloop.guard",
			"id": "dublin.guard",
			"description": "This is the XACML based guard policy domain that supports frequency limiter, blacklist/whitelist and min/max guard policies.\n",
			"pdp_types": [
				"xacml"
			],
			"version": 1
		},
		{
			"domain": "onap.controlloop.coordination",
			"id": "dublin.coordination",
			"description": "This is the XACML based guard policy domain that supports frequency limiter, blacklist/whitelist and min/max guard policies.\n",
			"pdp_types": [
				"xacml"
			],
			"version": 1
		}
	]
}

...