filteringrules

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirewallFilteringRules

type FirewallFilteringRules struct {
	ID                  int                       `json:"id,omitempty"`
	Name                string                    `json:"name,omitempty"`
	Order               int                       `json:"order"`
	Rank                int                       `json:"rank"`
	AccessControl       string                    `json:"accessControl,omitempty"`
	EnableFullLogging   bool                      `json:"enableFullLogging"`
	Action              string                    `json:"action,omitempty"`
	State               string                    `json:"state,omitempty"`
	Description         string                    `json:"description,omitempty"`
	LastModifiedTime    int                       `json:"lastModifiedTime,omitempty"`
	LastModifiedBy      *common.IDNameExtensions  `json:"lastModifiedBy,omitempty"`
	SrcIps              []string                  `json:"srcIps,omitempty"`
	DestAddresses       []string                  `json:"destAddresses,omitempty"`
	DestIpCategories    []string                  `json:"destIpCategories,omitempty"`
	DestCountries       []string                  `json:"destCountries,omitempty"`
	NwApplications      []string                  `json:"nwApplications,omitempty"`
	DefaultRule         bool                      `json:"defaultRule"`
	Predefined          bool                      `json:"predefined"`
	Locations           []common.IDNameExtensions `json:"locations,omitempty"`
	LocationsGroups     []common.IDNameExtensions `json:"locationGroups,omitempty"`      // The location groups to which the Firewall Filtering policy rule applies
	Departments         []common.IDNameExtensions `json:"departments,omitempty"`         // The departments to which the Firewall Filtering policy rule applies
	Groups              []common.IDNameExtensions `json:"groups,omitempty"`              // The groups to which the Firewall Filtering policy rule applies
	Users               []common.IDNameExtensions `json:"users,omitempty"`               // The users to which the Firewall Filtering policy rule applies
	TimeWindows         []common.IDNameExtensions `json:"timeWindows,omitempty"`         // The time interval in which the Firewall Filtering policy rule applies
	NwApplicationGroups []common.IDNameExtensions `json:"nwApplicationGroups,omitempty"` // User-defined network service application group on which the rule is applied. If not set, the rule is not restricted to a specific network service application group.
	AppServices         []common.IDNameExtensions `json:"appServices,omitempty"`         // Application services on which this rule is applied
	AppServiceGroups    []common.IDNameExtensions `json:"appServiceGroups,omitempty"`    // Application service groups on which this rule is applied
	Labels              []common.IDNameExtensions `json:"labels,omitempty"`              // Labels that are applicable to the rule.
	DestIpGroups        []common.IDNameExtensions `json:"destIpGroups,omitempty"`        // User-defined destination IP address groups on which the rule is applied. If not set, the rule is not restricted to a specific destination IP address group.
	NwServices          []common.IDNameExtensions `json:"nwServices,omitempty"`
	NwServiceGroups     []common.IDNameExtensions `json:"nwServiceGroups,omitempty"` // User-defined network service applications on which the rule is applied. If not set, the rule is not restricted to a specific network service application.
	SrcIpGroups         []common.IDNameExtensions `json:"srcIpGroups,omitempty"`     // User-defined source IP address groups for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address group.
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) Create

func (service *Service) Create(rule *FirewallFilteringRules) (*FirewallFilteringRules, error)

func (*Service) Delete

func (service *Service) Delete(ruleID int) (*http.Response, error)

func (*Service) Get

func (service *Service) Get(ruleID int) (*FirewallFilteringRules, error)

func (*Service) GetAll added in v0.0.4

func (service *Service) GetAll() ([]FirewallFilteringRules, error)

func (*Service) GetByName

func (service *Service) GetByName(ruleName string) (*FirewallFilteringRules, error)

func (*Service) Update

func (service *Service) Update(ruleID int, rules *FirewallFilteringRules) (*FirewallFilteringRules, error)

Jump to

Keyboard shortcuts

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