Description: | Replaces the current policy of the complete realm of a Qeo administrator. |
URL Structure: | https://my.qeo.org/qeo-rest-service/v1/realms/{id}/policy |
HTTP Method: | PUT |
Parameters: |
HTTP Authorization Path parameter: Body: Contains a list of users with their list of policy rules and associated access rights in JSON format: - All policy rules of every user in the realm will be replaced with the provided policy content. Parameters on user level: Parameters on policy level: Request Example https://my.qeo.org/qeo-rest-service/v1/realms/103/policy [{ "user":5, "policy":[{ "name":"my::hello::world::topic3::*", "read_access":{ "users":[4,5,6] }, "write_access":{ "users":[6] } }]}, { "user":6, "policy":[{ "name":"my::hello::world::topic2::*", "read_access":{ "users":[4,5] }, "write_access":{ "users":[6] } }]}, { "user":4, "policy":[{ "name":"my::hello::world::topic5::*", "read_access":null, "write_access":{ "users":[6] } }] }] |
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":5 "type":"user", "policy":[{ "name":"my::hello::world::topic3::*", "users":[5], "realm":103, "type":"policy_rule" "read_access":{ "users":[4,5,6] }, "write_access":{ "users":[6] } }]}, { "user":6, "type":"user", "policy":[{ "name":"my::hello::world::topic2::*", "users":[6], "realm":103, "type":"policy_rule" "read_access":{ "users":[4,6] }, "write_access":{ "users":[6] } }]}, { "user":4, "type":"user", "policy":[{ "name":"my::hello::world::topic5::*", "users":[4], "realm":103, "type":"policy_rule" "read_access":null, "write_access":{ "users":[6] } }] }] } |