Documentation
¶
Index ¶
- type Service
- func (service *Service) Create(ruleID *WebDLPRules) (*WebDLPRules, *http.Response, error)
- func (service *Service) Delete(ruleID int) (*http.Response, error)
- func (service *Service) Get(ruleID int) (*WebDLPRules, error)
- func (service *Service) GetAll() ([]WebDLPRules, error)
- func (service *Service) GetByName(ruleName string) (*WebDLPRules, error)
- func (service *Service) Update(ruleID int, webDlpRules *WebDLPRules) (*WebDLPRules, *http.Response, error)
- type WebDLPRules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func (*Service) Create ¶
func (service *Service) Create(ruleID *WebDLPRules) (*WebDLPRules, *http.Response, error)
func (*Service) GetAll ¶ added in v0.0.4
func (service *Service) GetAll() ([]WebDLPRules, error)
func (*Service) GetByName ¶
func (service *Service) GetByName(ruleName string) (*WebDLPRules, error)
func (*Service) Update ¶
func (service *Service) Update(ruleID int, webDlpRules *WebDLPRules) (*WebDLPRules, *http.Response, error)
type WebDLPRules ¶
type WebDLPRules struct { // The unique identifier for the DLP policy rule. ID int `json:"id,omitempty"` // The rule order of execution for the DLP policy rule with respect to other rules. Order int `json:"order,omitempty"` // The access privilege for this DLP policy rule based on the admin's state. AccessControl string `json:"accessControl,omitempty"` // The protocol criteria specified for the DLP policy rule. Protocols []string `json:"protocols,omitempty"` // The admin rank of the admin who created the DLP policy rule. Rank int `json:"rank,omitempty"` // The DLP policy rule name. Name string `json:"name,omitempty"` // The description of the DLP policy rule. Description string `json:"description,omitempty"` // The list of file types to which the DLP policy rule must be applied. FileTypes []string `json:"fileTypes,omitempty"` // The list of cloud applications to which the DLP policy rule must be applied. CloudApplications []string `json:"cloudApplications,omitempty"` // The minimum file size (in KB) used for evaluation of the DLP policy rule. MinSize int `json:"minSize,omitempty"` // The action taken when traffic matches the DLP policy rule criteria. Action string `json:"action,omitempty"` // Enables or disables the DLP policy rule. State string `json:"state,omitempty"` // The match only criteria for DLP engines. MatchOnly bool `json:"matchOnly,omitempty"` // Timestamp when the DLP policy rule was last modified. LastModifiedTime int `json:"lastModifiedTime,omitempty"` // Indicates a DLP policy rule without content inspection, when the value is set to true. WithoutContentInspection bool `json:"withoutContentInspection,omitempty"` // Enables or disables image file scanning. OcrEnabled bool `json:"ocrEnabled,omitempty"` DLPDownloadScanEnabled bool `json:"dlpDownloadScanEnabled,omitempty"` ZCCNotificationsEnabled bool `json:"zccNotificationsEnabled,omitempty"` // Indicates whether a Zscaler Incident Receiver is associated to the DLP policy rule. // https://jira.corp.zscaler.com/browse/BUG-135519. Attribute is misspelled upstream ZscalerIncidentReciever bool `json:"zscalerIncidentReciever,omitempty"` // The email address of an external auditor to whom DLP email notifications are sent. ExternalAuditorEmail string `json:"externalAuditorEmail,omitempty"` // The auditor to which the DLP policy rule must be applied. Auditor *common.IDNameExtensions `json:"auditor,omitempty"` // The admin that modified the DLP policy rule last. LastModifiedBy *common.IDNameExtensions `json:"lastModifiedBy,omitempty"` // The template used for DLP notification emails. NotificationTemplate *common.IDNameExtensions `json:"notificationTemplate,omitempty"` // The DLP server, using ICAP, to which the transaction content is forwarded. IcapServer *common.IDNameExtensions `json:"icapServer,omitempty"` // The Name-ID pairs of locations to which the DLP policy rule must be applied. Locations []common.IDNameExtensions `json:"locations,omitempty"` // The Name-ID pairs of locations groups to which the DLP policy rule must be applied. LocationGroups []common.IDNameExtensions `json:"locationGroups,omitempty"` // The Name-ID pairs of groups to which the DLP policy rule must be applied. Groups []common.IDNameExtensions `json:"groups,omitempty"` // The Name-ID pairs of departments to which the DLP policy rule must be applied. Departments []common.IDNameExtensions `json:"departments,omitempty"` // The Name-ID pairs of users to which the DLP policy rule must be applied. Users []common.IDNameExtensions `json:"users,omitempty"` // The list of URL categories to which the DLP policy rule must be applied. URLCategories []common.IDNameExtensions `json:"urlCategories,omitempty"` // The list of DLP engines to which the DLP policy rule must be applied. DLPEngines []common.IDNameExtensions `json:"dlpEngines,omitempty"` // The Name-ID pairs of time windows to which the DLP policy rule must be applied. TimeWindows []common.IDNameExtensions `json:"timeWindows,omitempty"` // The Name-ID pairs of rule labels associated to the DLP policy rule. Labels []common.IDNameExtensions `json:"labels,omitempty"` // The name-ID pairs of the groups that are excluded from the DLP policy rule. ExcludedGroups []common.IDNameExtensions `json:"excludedGroups,omitempty"` // The name-ID pairs of the departments that are excluded from the DLP policy rule. ExcludedDepartments []common.IDNameExtensions `json:"excludedDepartments,omitempty"` // The name-ID pairs of the users that are excluded from the DLP policy rule. ExcludedUsers []common.IDNameExtensions `json:"excludedUsers,omitempty"` }
Click to show internal directories.
Click to hide internal directories.