action

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package action is the client.Object.LogForwardingProfileMatchListAction namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	ActionTypeTagging     = "tagging"
	ActionTypeIntegration = "integration"
)

Valid values for ActionType.

View Source
const (
	ActionAddTag    = "add-tag"
	ActionRemoveTag = "remove-tag"
	ActionAzure     = "Azure-Security-Center-Integration"
)

Valid values for Action.

View Source
const (
	TargetSource      = "source-address"
	TargetDestination = "destination-address"
)

Valid values for Target.

View Source
const (
	RegistrationLocal    = "localhost"
	RegistrationRemote   = "remote"
	RegistrationPanorama = "panorama"
)

Valid values for Registration.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name         string
	ActionType   string
	Action       string
	Target       string
	Registration string
	HttpProfile  string
	Tags         []string // ordered
	Timeout      int
}

Entry is a normalized, version independent representation of a log forwarding profile match list action.

PAN-OS 8.0+.

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 FwAction

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

FwAction is the client.Objects.LogForwardingProfileMatchListAction namespace.

func (*FwAction) Delete

func (c *FwAction) Delete(vsys, logfwd, matchlist string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwAction) Edit

func (c *FwAction) Edit(vsys, logfwd, matchlist string, e Entry) error

Edit performs EDIT to create / update one object.

func (*FwAction) Get

func (c *FwAction) Get(vsys, logfwd, matchlist, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwAction) GetList

func (c *FwAction) GetList(vsys, logfwd, matchlist string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwAction) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwAction) Set

func (c *FwAction) Set(vsys, logfwd, matchlist string, e ...Entry) error

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

func (*FwAction) Show

func (c *FwAction) Show(vsys, logfwd, matchlist, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*FwAction) ShowList

func (c *FwAction) ShowList(vsys, logfwd, matchlist string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoAction

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

PanoAction is the client.Objects.LogForwardingProfileMatchListAction namespace.

func (*PanoAction) Delete

func (c *PanoAction) Delete(dg, logfwd, matchlist string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoAction) Edit

func (c *PanoAction) Edit(dg, logfwd, matchlist string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoAction) Get

func (c *PanoAction) Get(dg, logfwd, matchlist, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoAction) GetList

func (c *PanoAction) GetList(dg, logfwd, matchlist string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoAction) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoAction) Set

func (c *PanoAction) Set(dg, logfwd, matchlist string, e ...Entry) error

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

func (*PanoAction) Show

func (c *PanoAction) Show(dg, logfwd, matchlist, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*PanoAction) ShowList

func (c *PanoAction) ShowList(dg, logfwd, matchlist 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