summaryrefslogtreecommitdiffstats
path: root/lib/remote/apiuser.ti
blob: 0b49a1dd34e73d7959b727d7b98b3df9275048ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

#include "base/configobject.hpp"
#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);
	[config] array(Value) permissions;
};

validator ApiUser {
	Array permissions {
		String "*";
		Dictionary "*" {
			required permission;
			String permission;
			Function filter;
		};
	};
};

}