From 5eeeeddd1833e67ad9c285032abc3fb3bbde0b2d Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Wed, 11 Dec 2019 16:25:56 -0500 Subject: Document new PAP REST APIs Includes the Pdp Group create/update API and the Deployment API. Issue-ID: POLICY-2281 Signed-off-by: Jim Hahn Change-Id: Ifde0491b029eb377c4f3083c784663df968b9d1b --- docs/pap/request/deployment-batch-pap-req.json | 19 +++++++++++++ docs/pap/request/group-pap-req.json | 39 -------------------------- docs/pap/request/groups-batch-pap-req.json | 34 ++++++++++++++++++++++ 3 files changed, 53 insertions(+), 39 deletions(-) create mode 100644 docs/pap/request/deployment-batch-pap-req.json delete mode 100644 docs/pap/request/group-pap-req.json create mode 100644 docs/pap/request/groups-batch-pap-req.json (limited to 'docs/pap/request') diff --git a/docs/pap/request/deployment-batch-pap-req.json b/docs/pap/request/deployment-batch-pap-req.json new file mode 100644 index 00000000..6577bed7 --- /dev/null +++ b/docs/pap/request/deployment-batch-pap-req.json @@ -0,0 +1,19 @@ +{ + "groups": [ + { + "name": "SampleGroup", + "deploymentSubgroups": [ + { + "pdpType": "apex", + "action": "POST", + "policies": [ + { + "name": "onap.controllloop.operational.apex.bbs.EastRegion", + "version": "1.0.0" + } + ] + } + ] + } + ] +} diff --git a/docs/pap/request/group-pap-req.json b/docs/pap/request/group-pap-req.json deleted file mode 100644 index ebe38b92..00000000 --- a/docs/pap/request/group-pap-req.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "groups": [ - { - "name": "SampleGroup", - "pdpGroupState": "PASSIVE", - "pdpSubgroups": [ - { - "pdpType": "apex", - "desiredInstanceCount": 2, - "properties": {}, - "supportedPolicyTypes": [ - { - "name": "onap.controllloop.operational.apex.bbs", - "version": "1.0.0" - } - ], - "policies": [ - { - "name": "onap.controllloop.operational.apex.bbs.EastRegion", - "version": "1.0.0" - } - ] - }, - { - "pdpType": "xacml", - "desiredInstanceCount": 1, - "properties": {}, - "supportedPolicyTypes": [ - { - "name": "onap.policies.monitoring.cdap.tca.hi.lo.app", - "version": "1.0.0" - } - ], - "policies": [] - } - ] - } - ] -} diff --git a/docs/pap/request/groups-batch-pap-req.json b/docs/pap/request/groups-batch-pap-req.json new file mode 100644 index 00000000..2f909413 --- /dev/null +++ b/docs/pap/request/groups-batch-pap-req.json @@ -0,0 +1,34 @@ +{ + "groups": [ + { + "name": "SampleGroup", + "pdpGroupState": "PASSIVE", + "pdpSubgroups": [ + { + "pdpType": "apex", + "desiredInstanceCount": 2, + "properties": {}, + "supportedPolicyTypes": [ + { + "name": "onap.controllloop.operational.apex.bbs", + "version": "1.0.0" + } + ], + "policies": [] + }, + { + "pdpType": "xacml", + "desiredInstanceCount": 1, + "properties": {}, + "supportedPolicyTypes": [ + { + "name": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "version": "1.0.0" + } + ], + "policies": [] + } + ] + } + ] +} -- cgit 1.2.3-korg