summaryrefslogtreecommitdiffstats
path: root/docs/api/api.rst
diff options
context:
space:
mode:
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>2020-07-27 12:09:40 +0100
committerputhuparambil.aditya <aditya.puthuparambil@bell.ca>2020-07-27 14:44:01 +0100
commita6c09a2f247323d92a64cdf5793442da9a13e05c (patch)
tree9ecb6628426ef2aae59982f177706524afd4dde8 /docs/api/api.rst
parent1ea659a07c611ea89a80aa1d85b8390b6799c36f (diff)
Documentation for 'Fetch and Delete policy API with PolicyName and PolicyVersion'
Issue-ID: POLICY-2585 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I76c41dd139b3d41e1cadc61108682ff4bdc6f6a0
Diffstat (limited to 'docs/api/api.rst')
-rw-r--r--docs/api/api.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/api/api.rst b/docs/api/api.rst
index c65e35e8..990ac9e7 100644
--- a/docs/api/api.rst
+++ b/docs/api/api.rst
@@ -288,3 +288,12 @@ Get vFirewall Operational Policy::
Delete vFirewall Operational Policy::
curl --user 'healthcheck:zb!XztG34' -X DELETE "http://{ip}:{port}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0" -H "Accept: application/json" -H "Content-Type: application/json"
+
+Get all available policies::
+ curl --user 'healthcheck:zb!XztG34' -X GET "http://{ip}:{port}/policy/api/v1/policies" -H "Accept: application/json" -H "Content-Type: application/json"
+
+Get version 1.0.0 of vFirewall Monitoring Policy::
+ curl --user 'healthcheck:zb!XztG34' -X GET "http://{ip}:{port}/policy/api/v1/policies/onap.vfirewall.tca/versions/1.0.0" -H "Accept: application/json" -H "Content-Type: application/json"
+
+Delete version 1.0.0 of vFirewall Monitoring Policy::
+ curl --user 'healthcheck:zb!XztG34' -X DELETE "http://{ip}:{port}/policy/api/v1/policies/onap.vfirewall.tca/versions/1.0.0" -H "Accept: application/json" -H "Content-Type: application/json"