Note
This package is auto-generated via pan-os-codegen
Package pango is a golang cross version mechanism for interacting with Palo Alto Networks devices (including physical and virtualized Next-generation Firewalls and Panorama). Versioning support is in place for PANOS 10.1 and above.
Please refer to the godoc reference documentation above to get started.
To start, create a client connection with the desired parameters and then initialize the connection:
package main
import (
"log"
"github.com/PaloAltoNetworks/pango"
)
func main() {
var err error
con = &sdk.Client{
Hostname: "127.0.0.1",
Username: "admin",
Password: "admin",
}
if err := con.Setup(); err != nil {
log.Printf("Failed to setup client: %s", err)
return
}
if err := con.Initialize(ctx); err != nil {
log.Printf("Failed to initialize client: %s", err)
return
}
log.Printf("Initialize ok")
}