added password store option for api-key
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
from cmk.gui.i18n import _
|
||||
from cmk.gui.plugins.wato import (
|
||||
CheckParameterRulespecWithItem,
|
||||
rulespec_registry,
|
||||
)
|
||||
|
||||
from cmk.gui.plugins.wato.special_agents.common import (
|
||||
RulespecGroupDatasourceProgramsApps,
|
||||
@@ -12,29 +8,36 @@ from cmk.gui.plugins.wato.special_agents.common import (
|
||||
RulespecGroupDatasourceProgramsTesting,
|
||||
)
|
||||
|
||||
from cmk.gui.plugins.wato.utils import (
|
||||
IndividualOrStoredPassword,
|
||||
rulespec_registry,
|
||||
CheckParameterRulespecWithItem,
|
||||
CheckParameterRulespecWithoutItem,
|
||||
HostRulespec,
|
||||
Rulespec,
|
||||
)
|
||||
|
||||
from cmk.gui.valuespec import (
|
||||
Dictionary,
|
||||
ListChoice,
|
||||
Checkbox,
|
||||
TextAscii,
|
||||
Password,
|
||||
NetworkPort,
|
||||
Integer,
|
||||
)
|
||||
|
||||
from cmk.gui.plugins.wato import (
|
||||
HostRulespec,
|
||||
)
|
||||
|
||||
from cmk.gui.plugins.wato.datasource_programs import RulespecGroupDatasourceProgramsCustom
|
||||
|
||||
def _valuespec_special_agent_mailcow():
|
||||
return Dictionary(
|
||||
title=_("Mailcow Server Information"),
|
||||
help = _("Checking Mailcow instances via API"),
|
||||
elements=[
|
||||
("hostname", TextAscii(title=_("Hostname"),
|
||||
size=32,
|
||||
allow_empty=False,
|
||||
help=_("Hostname of Mailcow server (bare FQDN or IP), mandatory"))),
|
||||
("apikey", TextAscii(title=_("API Key"),
|
||||
("apikey", IndividualOrStoredPassword(title=_("API Key"),
|
||||
size=32,
|
||||
allow_empty=False,
|
||||
help=_("API Key, mandatory"))),
|
||||
("port", TextAscii(title=_("Port"),
|
||||
|
||||
Reference in New Issue
Block a user