pango
pango copied to clipboard
Ending api session
When running the following code:
package main
import (
"log"
"github.com/PaloAltoNetworks/pango"
)
func main() {
var err error
c := &pango.Firewall{Client: pango.Client{
Hostname: "127.0.0.1",
Username: "svcnetbox",
Password: "password",
Logging: pango.LogAction | pango.LogOp,
}}
if err = c.Initialize(); err != nil {
log.Printf("Failed to initialize client: %s", err)
return
}
log.Printf("Initialize ok")
}
I see that when the program ends, the session is not automatically terminated and is in idle state:
I can't find a way to terminate the session via sdk, am I missing something?