Documentation ¶
Overview ¶
Package dg is the client.Panorama.DeviceGroup namespace.
Normalized object: Entry
Index ¶
- type Dg
- func (c *Dg) Delete(e ...interface{}) error
- func (c *Dg) DeleteDeviceVsys(g interface{}, d string, vsys []string) error
- func (c *Dg) Edit(e Entry) error
- func (c *Dg) EditDeviceVsys(g interface{}, d string, vsys []string) error
- func (c *Dg) Get(name string) (Entry, error)
- func (c *Dg) GetList() ([]string, error)
- func (c *Dg) Initialize(con util.XapiClient)
- func (c *Dg) Set(e ...Entry) error
- func (c *Dg) SetDeviceVsys(g interface{}, d string, vsys []string) error
- func (c *Dg) Show(name string) (Entry, error)
- func (c *Dg) ShowList() ([]string, error)
- type Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dg ¶
type Dg struct {
// contains filtered or unexported fields
}
Dg is the client.Panorama.DeviceGroup namespace.
func (*Dg) Delete ¶
Delete removes the given device groups from the firewall.
Device groups can be a string or an Entry object.
func (*Dg) DeleteDeviceVsys ¶
DeleteDeviceVsys performs a DELETE to remove specific vsys from device d from device group g.
If you want all vsys to be removed, or the device is a virtual firewall, then leave the vsys list empty.
The device group can be either a string or an Entry object.
func (*Dg) EditDeviceVsys ¶
EditDeviceVsys performs an EDIT to add specific vsys from a device to device group g.
If you want all vsys to be included, or the device is a virtual firewall, then leave the vsys list empty.
The device group can be either a string or an Entry object.
func (*Dg) Initialize ¶
func (c *Dg) Initialize(con util.XapiClient)
Initialize is invoked by client.Initialize().
func (*Dg) SetDeviceVsys ¶
SetDeviceVsys performs a SET to add specific vsys from a device to device group g.
If you want all vsys to be included, or the device is a virtual firewall, then leave the vsys list empty.
The device group can be either a string or an Entry object.
type Entry ¶
type Entry struct { Name string Description string Devices map[string][]string // contains filtered or unexported fields }
Entry is a normalized, version independent representation of a device group.
Devices is a map where the key is the serial number of the target device and the value is a list of specific vsys on that device. The list of vsys is nil if all vsys on that device should be included or if the device is a virtual firewall (and thus only has vsys1).