Beispiel #1
0
        public async Task <IActionResult> LoginAsync([FromBody] dynamic parameters)
        {
            ZabbixResponse response = await _zabbixService.GetZabbixResponseAsync("user.login", parameters);

            ZabbixSettings.Token = response?.result;

            return(Ok(response.result));
        }
Beispiel #2
0
        public async Task <IActionResult> GetApplication([FromBody] dynamic parameters)
        {
            ZabbixResponse response = await _zabbixService.GetZabbixResponseAsync("application.get", parameters);

            return(Ok(response.result));
        }
        public async Task <IActionResult> GetHostInterface(dynamic parameters)
        {
            ZabbixResponse response = await _zabbixService.GetZabbixResponseAsync("hostinterface.get", parameters);

            return(Ok(response.result));
        }