X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2Fuser-guide.rst;h=97c57287fb5c8620c9d451efc6b1022464f640b1;hb=7c46e5941cc395448bf69b6e96c3c4c07aec425e;hp=4d438acf1cb3b46d5ef5d7fefa2397fd2561627f;hpb=e7371f4acbda967ef2f0251be01147d757e67ea6;p=aaa.git diff --git a/docs/user-guide.rst b/docs/user-guide.rst index 4d438acf1..97c57287f 100644 --- a/docs/user-guide.rst +++ b/docs/user-guide.rst @@ -1,7 +1,7 @@ .. _aaa-user-guide: -Authentication, Authorization and Accounting (AAA) Services -=========================================================== +Authentication, Authorization and Accounting (AAA) Services - User guide +======================================================================== Overview -------- @@ -816,30 +816,32 @@ This an example on how to limit access to the modules endpoint: :: HTTP Operation: - put URL: /restconf/config/aaa:http-authorization/policies - - or - - put RFC8040 URL: /rests/data/aaa:http-authorization/policies + put URL: /rests/data/aaa:http-authorization/policies headers: Content-Type: application/json Accept: application/json body: - { "aaa:policies": - { "aaa:policies": - [ { "aaa:resource": "/restconf/modules/**", - "aaa:permissions": [ { "aaa:role": "admin", - "aaa:actions": [ "get", - "post", - "put", - "patch", - "delete" - ] - } - ] - } - ] - } + { + "aaa:policies": { + "aaa:policies": [ + { + "aaa:resource": "/restconf/modules/**", + "aaa:index": 1, + "aaa:permissions": [ + { + "aaa:role": "admin", + "aaa:actions": [ + "get", + "post", + "put", + "patch", + "delete" + ] + } + ] + } + ] + } } The above example locks down access to the modules endpoint (and any URLS