pango: github.com/PaloAltoNetworks/pango/dev/profile/syslog/server Index | Files

package server

import "github.com/PaloAltoNetworks/pango/dev/profile/syslog/server"

Package server is the client.Object.SyslogServer namespace.

For Panorama, there are two possibilities: managing this object on Panorama itself or inside of a Template.

To manage objects save on Panorama, leave "tmpl" and "ts" params empty and set "dg" to "shared" (which is also the default).

To manage objects in a template, specify the template name and the vsys (if unspecified, defaults to "shared").

Normalized object: Entry

Index

Package Files

const.go doc.go entry.go fw.go pano.go

Constants

const (
    TransportUdp = "UDP"
    TransportTcp = "TCP"
    TransportSsl = "SSL"
)

Valid values for Transport.

const (
    SyslogFormatBsd  = "BSD"
    SyslogFormatIetf = "IETF"
)

Valid values for SyslogFormat.

const (
    FacilityUser   = "LOG_USER"
    FacilityLocal0 = "LOG_LOCAL0"
    FacilityLocal1 = "LOG_LOCAL1"
    FacilityLocal2 = "LOG_LOCAL2"
    FacilityLocal3 = "LOG_LOCAL3"
    FacilityLocal4 = "LOG_LOCAL4"
    FacilityLocal5 = "LOG_LOCAL5"
    FacilityLocal6 = "LOG_LOCAL6"
    FacilityLocal7 = "LOG_LOCAL7"
)

Valid facilities.

type Entry Uses

type Entry struct {
    Name         string
    Server       string
    Transport    string
    Port         int
    SyslogFormat string
    Facility     string
}

Entry is a normalized, version independent representation of an syslog server.

PAN-OS 7.1+.

func (*Entry) Copy Uses

func (o *Entry) Copy(s Entry)

Copy copies the information from source Entry `s` to this object. As the Name field relates to the XPATH of this object, this field is not copied.

type FwServer Uses

type FwServer struct {
    // contains filtered or unexported fields
}

FwServer is the client.Network.SyslogServer namespace.

func (*FwServer) Delete Uses

func (c *FwServer) Delete(vsys, profile string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwServer) Edit Uses

func (c *FwServer) Edit(vsys, profile string, e Entry) error

Edit performs EDIT to create / update one object.

func (*FwServer) Get Uses

func (c *FwServer) Get(vsys, profile, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwServer) GetList Uses

func (c *FwServer) GetList(vsys, profile string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwServer) Initialize Uses

func (c *FwServer) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*FwServer) Set Uses

func (c *FwServer) Set(vsys, profile string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*FwServer) Show Uses

func (c *FwServer) Show(vsys, profile, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*FwServer) ShowList Uses

func (c *FwServer) ShowList(vsys, profile string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoServer Uses

type PanoServer struct {
    // contains filtered or unexported fields
}

PanoServer is the client.Network.SyslogServer namespace.

func (*PanoServer) Delete Uses

func (c *PanoServer) Delete(tmpl, ts, vsys, dg, profile string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoServer) Edit Uses

func (c *PanoServer) Edit(tmpl, ts, vsys, dg, profile string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoServer) Get Uses

func (c *PanoServer) Get(tmpl, ts, vsys, dg, profile, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoServer) GetList Uses

func (c *PanoServer) GetList(tmpl, ts, vsys, dg, profile string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoServer) Initialize Uses

func (c *PanoServer) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*PanoServer) Set Uses

func (c *PanoServer) Set(tmpl, ts, vsys, dg, profile string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*PanoServer) Show Uses

func (c *PanoServer) Show(tmpl, ts, vsys, dg, profile, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*PanoServer) ShowList Uses

func (c *PanoServer) ShowList(tmpl, ts, vsys, dg, profile string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

Package server imports 3 packages (graph) and is imported by 1 packages. Updated 2019-08-05. Refresh now. Tools for package owners.