icinga2/lib/remote/apiuser.ti

32 lines
534 B
Plaintext
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#include "base/configobject.hpp"
2015-09-28 08:57:25 +02:00
#include "base/function.hpp"
library remote;
namespace icinga
{
class ApiUser : ConfigObject
{
/* No show config */
[config, no_user_view] String password;
[deprecated, config, no_user_view] String password_hash;
[config] String client_cn (ClientCN);
2015-09-28 08:57:25 +02:00
[config] array(Value) permissions;
};
validator ApiUser {
Array permissions {
String "*";
Dictionary "*" {
required permission;
String permission;
Function filter;
};
};
};
}