lssconfigcontroller

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conditions

type Conditions struct {
	CreationTime string      `json:"creationTime,omitempty"`
	ID           string      `json:"id,omitempty"`
	ModifiedBy   string      `json:"modifiedBy,omitempty"`
	ModifiedTime string      `json:"modifiedTime,omitempty"`
	Negated      bool        `json:"negated"`
	Operands     *[]Operands `json:"operands,omitempty"`
	Operator     string      `json:"operator,omitempty"`
}

type ConnectorGroups

type ConnectorGroups struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type LSSClientTypes

type LSSClientTypes struct {
	// ID                         string `json:"id"`
	ZPNClientTypeExporter      string `json:"zpn_client_type_exporter"`
	ZPNClientTypeMachineTunnel string `json:"zpn_client_type_machine_tunnel"`
	ZPNClientTypeIPAnchoring   string `json:"zpn_client_type_ip_anchoring"`
	ZPNClientTypeEdgeConnector string `json:"zpn_client_type_edge_connector"`
	ZPNClientTypeZAPP          string `json:"zpn_client_type_zapp"`
	ZPNClientTypeSlogger       string `json:"zpn_client_type_slogger,omitempty"`
}

type LSSConfig

type LSSConfig struct {
	AuditMessage  string   `json:"auditMessage,omitempty"`
	CreationTime  string   `json:"creationTime,omitempty"`
	Description   string   `json:"description,omitempty"`
	Enabled       bool     `json:"enabled,omitempty"`
	Filter        []string `json:"filter,omitempty"`
	Format        string   `json:"format,omitempty"`
	ID            string   `json:"id,omitempty"`
	ModifiedBy    string   `json:"modifiedBy,omitempty"`
	ModifiedTime  string   `json:"modifiedTime,omitempty"`
	Name          string   `json:"name,omitempty"`
	LSSHost       string   `json:"lssHost,omitempty"`
	LSSPort       string   `json:"lssPort,omitempty"`
	SourceLogType string   `json:"sourceLogType,omitempty"`
	UseTLS        bool     `json:"useTls,omitempty"`
}

type LSSFormats

type LSSFormats struct {
	Csv  string `json:"csv"`
	Tsv  string `json:"tsv"`
	Json string `json:"json"`
}

type LSSResource

type LSSResource struct {
	LSSConfig          *LSSConfig          `json:"config"`
	ID                 string              `json:"id"`
	ConnectorGroups    []ConnectorGroups   `json:"connectorGroups,omitempty"`
	PolicyRule         *PolicyRule         `json:"policyRule,omitempty"`
	PolicyRuleResource *PolicyRuleResource `json:"policyRuleResource,omitempty"`
}

type LSSStatusCodes

type LSSStatusCodes struct {
	ZPNAuthLog    map[string]interface{} `json:"zpn_auth_log"`
	ZPNAstAuthLog map[string]interface{} `json:"zpn_ast_auth_log"`
	ZPNTransLog   map[string]interface{} `json:"zpn_trans_log"`
	ZPNSysAuthLog map[string]interface{} `json:"zpn_sys_auth_log"`
}

type Operands

type Operands struct {
	CreationTime string `json:"creationTime,omitempty"`
	ID           string `json:"id,omitempty"`
	IdpID        string `json:"idpId,omitempty"`
	LHS          string `json:"lhs,omitempty"`
	ModifiedBy   string `json:"modifiedBy,omitempty"`
	ModifiedTime string `json:"modifiedTime,omitempty"`
	Name         string `json:"name,omitempty"`
	ObjectType   string `json:"objectType,omitempty"`
	RHS          string `json:"rhs,omitempty"`
}

type PolicyRule

type PolicyRule struct {
	Action                   string       `json:"action,omitempty"`
	ActionID                 string       `json:"actionId,omitempty"`
	BypassDefaultRule        bool         `json:"bypassDefaultRule,omitempty"`
	CreationTime             string       `json:"creationTime,omitempty"`
	CustomMsg                string       `json:"customMsg,omitempty"`
	DefaultRule              bool         `json:"defaultRule,omitempty"`
	Description              string       `json:"description,omitempty"`
	ID                       string       `json:"id,omitempty"`
	IsolationDefaultRule     bool         `json:"isolationDefaultRule,omitempty"`
	ModifiedBy               string       `json:"modifiedBy,omitempty"`
	ModifiedTime             string       `json:"modifiedTime,omitempty"`
	Name                     string       `json:"name,omitempty"`
	Operator                 string       `json:"operator,omitempty"`
	PolicySetID              string       `json:"policySetId,omitempty"`
	PolicyType               string       `json:"policyType,omitempty"`
	Priority                 string       `json:"priority,omitempty"`
	ReauthDefaultRule        bool         `json:"reauthDefaultRule,omitempty"`
	ReauthIdleTimeout        string       `json:"reauthIdleTimeout,omitempty"`
	ReauthTimeout            string       `json:"reauthTimeout,omitempty"`
	RuleOrder                string       `json:"ruleOrder,omitempty"`
	LssDefaultRule           bool         `json:"lssDefaultRule,omitempty"`
	ZpnCbiProfileID          string       `json:"zpnCbiProfileId,omitempty"`
	ZpnInspectionProfileID   string       `json:"zpnInspectionProfileId,omitempty"`
	ZpnInspectionProfileName string       `json:"zpnInspectionProfileName,omitempty"`
	Conditions               []Conditions `json:"conditions,omitempty"`
}

type PolicyRuleResource

type PolicyRuleResource struct {
	Action                   string                         `json:"action,omitempty"`
	ActionID                 string                         `json:"actionId,omitempty"`
	BypassDefaultRule        bool                           `json:"bypassDefaultRule,omitempty"`
	CreationTime             string                         `json:"creationTime,omitempty"`
	CustomMsg                string                         `json:"customMsg,omitempty"`
	DefaultRule              bool                           `json:"defaultRule,omitempty"`
	Description              string                         `json:"description,omitempty"`
	ID                       string                         `json:"id,omitempty"`
	IsolationDefaultRule     bool                           `json:"isolationDefaultRule,omitempty"`
	ModifiedBy               string                         `json:"modifiedBy,omitempty"`
	ModifiedTime             string                         `json:"modifiedTime,omitempty"`
	Name                     string                         `json:"name,omitempty"`
	Operator                 string                         `json:"operator,omitempty"`
	PolicySetID              string                         `json:"policySetId,omitempty"`
	PolicyType               string                         `json:"policyType,omitempty"`
	Priority                 string                         `json:"priority,omitempty"`
	ReauthDefaultRule        bool                           `json:"reauthDefaultRule,omitempty"`
	ReauthIdleTimeout        string                         `json:"reauthIdleTimeout,omitempty"`
	ReauthTimeout            string                         `json:"reauthTimeout,omitempty"`
	RuleOrder                string                         `json:"ruleOrder,omitempty"`
	LssDefaultRule           bool                           `json:"lssDefaultRule,omitempty"`
	ZpnCbiProfileID          string                         `json:"zpnCbiProfileId,omitempty"`
	ZpnInspectionProfileID   string                         `json:"zpnInspectionProfileId,omitempty"`
	ZpnInspectionProfileName string                         `json:"zpnInspectionProfileName,omitempty"`
	Conditions               []PolicyRuleResourceConditions `json:"conditions,omitempty"`
}

type PolicyRuleResourceConditions

type PolicyRuleResourceConditions struct {
	CreationTime string                        `json:"creationTime,omitempty"`
	ID           string                        `json:"id,omitempty"`
	ModifiedBy   string                        `json:"modifiedBy,omitempty"`
	ModifiedTime string                        `json:"modifiedTime,omitempty"`
	Negated      bool                          `json:"negated"`
	Operands     *[]PolicyRuleResourceOperands `json:"operands,omitempty"`
	Operator     string                        `json:"operator,omitempty"`
}

type PolicyRuleResourceOperands

type PolicyRuleResourceOperands struct {
	ObjectType string   `json:"objectType,omitempty"`
	Values     []string `json:"values,omitempty"`
}

type Service

type Service struct {
	Client *zpa.Client
}

func New

func New(c *zpa.Client) *Service

func (*Service) Create

func (service *Service) Create(lssConfig *LSSResource) (*LSSResource, *http.Response, error)

func (*Service) Delete

func (service *Service) Delete(lssID string) (*http.Response, error)

func (*Service) Get

func (service *Service) Get(lssID string) (*LSSResource, *http.Response, error)

func (*Service) GetAll added in v0.0.4

func (service *Service) GetAll() ([]LSSResource, *http.Response, error)

func (*Service) GetByName

func (service *Service) GetByName(lssName string) (*LSSResource, *http.Response, error)

func (*Service) GetClientTypes

func (service *Service) GetClientTypes() (*LSSClientTypes, *http.Response, error)

func (*Service) GetFormats

func (service *Service) GetFormats(logType string) (*LSSFormats, *http.Response, error)

func (*Service) GetStatusCodes

func (service *Service) GetStatusCodes() (*LSSStatusCodes, *http.Response, error)

func (*Service) Update

func (service *Service) Update(lssID string, lssConfig *LSSResource) (*http.Response, error)

Jump to

Keyboard shortcuts

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