server

package
v0.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2019 License: ISC Imports: 4 Imported by: 0

Documentation

Overview

Package server is the client.Object.HttpServer 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

Constants

View Source
const (
	ProtocolHttps = "HTTPS"
	ProtocolHttp  = "HTTP"
)

Valid protocols.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name               string
	Address            string
	Protocol           string
	Port               int
	HttpMethod         string
	Username           string
	Password           string // encrypted
	TlsVersion         string // 9.0+
	CertificateProfile string // 9.0+
}

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

PAN-OS 7.1+.

func (*Entry) Copy

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

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

FwServer is the client.Network.HttpServer namespace.

func (*FwServer) Delete

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

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

Edit performs EDIT to create / update one object.

func (*FwServer) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwServer) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwServer) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwServer) Set

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

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

func (*FwServer) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwServer) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoServer

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

PanoServer is the client.Network.HttpServer namespace.

func (*PanoServer) Delete

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

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

Edit performs EDIT to create / update one object.

func (*PanoServer) Get

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

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

GetList performs GET to retrieve a list of values.

func (*PanoServer) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoServer) Set

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

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

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

ShowList performs SHOW to retrieve a list of values.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL