File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ import (
44 "fmt"
55 "github.com/AtlasInsideCorp/UTMStackConfigurationClient"
66 "github.com/AtlasInsideCorp/UTMStackConfigurationClient/enum"
7+ "os"
78)
89
910func main () {
10- client := UTMStackConfigurationClient .NewUTMClient ("EliHR1ZjPsaVdwg4CNI0X7c5QmCLOaJR" , "192.168.1.59" )
11- config , err := client .GetUTMConfig (enum .O365 )
11+ confKey := os .Getenv ("INTERNAL_KEY" )
12+ utmPanel := os .Getenv ("BACKEND_HOST" )
13+ client := UTMStackConfigurationClient .NewUTMClient (confKey , utmPanel )
14+ config , err := client .GetUTMConfig (enum .BITDEFENDER )
1215 if err != nil {
1316 fmt .Sprintf ("Error s%" , err .Error ())
1417 }
Original file line number Diff line number Diff line change 11package util
22
3- const UTMInternalKeyHeaderName = "internal-key "
3+ const UTMInternalKeyHeaderName = "Utm-Internal-Key "
44const RegisterConfigURL string = "https://%s/api/utm-modules/registerConfiguration"
5- const GetConfigURL string = "https://%s/api/utm-modules/moduleDetails ?nameShort=%s"
5+ const GetConfigURL string = "https://%s/api/utm-modules/module-details-decrypted ?nameShort=%s&serverId=1 "
You can’t perform that action at this time.
0 commit comments