]> granicus.if.org Git - icinga2/blob - lib/cli/apisetuputility.hpp
Merge pull request #7145 from Icinga/feature/dotnet-4.6
[icinga2] / lib / cli / apisetuputility.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef APISETUPUTILITY_H
4 #define APISETUPUTILITY_H
5
6 #include "base/i2-base.hpp"
7 #include "cli/i2-cli.hpp"
8 #include "base/dictionary.hpp"
9 #include "base/array.hpp"
10 #include "base/value.hpp"
11 #include "base/string.hpp"
12 #include <vector>
13
14 namespace icinga
15 {
16
17 /**
18  * @ingroup cli
19  */
20 class ApiSetupUtility
21 {
22 public:
23         static bool SetupMaster(const String& cn, bool prompt_restart = false);
24
25         static bool SetupMasterCertificates(const String& cn);
26         static bool SetupMasterApiUser();
27         static bool SetupMasterEnableApi();
28         static bool SetupMasterUpdateConstants(const String& cn);
29
30         static String GetConfdPath();
31         static String GetApiUsersConfPath();
32
33 private:
34         ApiSetupUtility();
35 };
36
37 }
38
39 #endif /* APISETUPUTILITY_H */