1/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */ 2 3#include "base/configobject.hpp" 4#include "base/function.hpp" 5 6library remote; 7 8namespace icinga 9{ 10 11class ApiUser : ConfigObject 12{ 13 /* No show config */ 14 [config, no_user_view] String password; 15 [deprecated, config, no_user_view] String password_hash; 16 [config] String client_cn (ClientCN); 17 [config] array(Value) permissions; 18}; 19 20validator ApiUser { 21 Array permissions { 22 String "*"; 23 Dictionary "*" { 24 required permission; 25 String permission; 26 Function filter; 27 }; 28 }; 29}; 30 31} 32