Merge "Fix guard application doc"
authorJim Hahn <jrh3@att.com>
Fri, 19 Jun 2020 22:11:05 +0000 (22:11 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 19 Jun 2020 22:11:05 +0000 (22:11 +0000)
docs/xacml/decision.guard.json
docs/xacml/tutorial/decision.guard.response.json [new file with mode: 0644]
docs/xacml/xacml.rst

index ef1b5f6..9051c57 100644 (file)
@@ -7,7 +7,7 @@
   "resource": {
       "guard": {
           "actor": "SO",
-          "recipe": "VF Module Create",
+          "operation": "VF Module Create",
           "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
           "target": "vLoadBalancer-00",
           "vfCount": "1"
diff --git a/docs/xacml/tutorial/decision.guard.response.json b/docs/xacml/tutorial/decision.guard.response.json
new file mode 100644 (file)
index 0000000..24cc0d1
--- /dev/null
@@ -0,0 +1 @@
+{"status":"Permit"}
\ No newline at end of file
index f129a01..4100e80 100644 (file)
@@ -110,6 +110,11 @@ This is an example Decision API payload made to retrieve a decision for a Guard
 .. literalinclude:: decision.guard.json
   :language: JSON
 
+The return decision simply has "permit" or "deny" in the response to tell the calling application whether they are allowed to perform the operation.
+
+.. literalinclude:: decision.guard.response.json
+  :language: JSON
+
 .. _xacml-optimization-label:
 
 Optimization Policy Types