Description: | Retrieves the complete policy of a single realm from the Qeo administrator It returns the policy per user of the realm. |
URL Structure: | https://my.qeo.org/qeo-rest-service/v1/realms/{id}/policy |
HTTP Method: | GET |
Parameter: |
HTTP Authorization Path parameter: Request Example https://my.qeo.org/qeo-rest-service/v1/realms/103/policy |
Response: |
HTTP 200 OK Body: Contains a list of users with their list of policy rules and associated access rights in JSON format: The returned parameters on user level: Response Example { "users":[{ "user":1444, "type":"user", "policy":[{ "name":"org::qeo::QNote::topic1::*", "type":"policy_rule", "users":[1444], "realm":103, "read_access":{ "users":[1444,255,66548] }, "write_access":{ "users":[1444,255,66548] } },{ "name":"org::qeo::QNote::topic6::*", "type":"policy_rule", "users":[1444], "realm":103, "read_access":{ "users":[] }, "write_access":null }] },{ "user":255, "type":"user", "policy":[{ "name":"my::hello::world::topic5::*", "type":"policy_rule", "users":[255] "realm":103, "read_access":null, "write_access":{ "users":null } },{ "name":"org::qeo::QNote::topic9::*", "type":"policy_rule", "users":[255], "realm":103, "read_access":null, "write_access":null }] },{ "user":66548, "type":"user", "policy":[{ "name":"my::hello::world::topic2::*", "type":"policy_rule", "users":[66548], "realm":103, "read_access":{ "users":[66548,255] }, "write_access":{ "users":[255] } },{ "name":"org::qeo::QNote::topic4::*", "type":"policy_rule", "users":[66548], "realm":103, "read_access":{ "users":null }, "write_access":{ "users":[] } }] }] } |