Categorygithub.com/PaloAltoNetworks/pango
repositorypackage
2.0.0-rc.6+incompatible
Repository: https://github.com/paloaltonetworks/pango.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Palo Alto Networks pango

[!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.

Using pango

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")

}