pango icon indicating copy to clipboard operation
pango copied to clipboard

Ending api session

Open bl4ko opened this issue 3 months ago • 0 comments

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:

image

I can't find a way to terminate the session via sdk, am I missing something?

bl4ko avatar Apr 12 '24 11:04 bl4ko