security_policy_settings

package
v2.61.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddRemoveURLFromList []string = []string{
	"ADD_TO_LIST",
	"REMOVE_FROM_LIST",
}

TODO: because there isn't an endpoint to get all Urls, we need to have all action types here.

Functions

This section is empty.

Types

type ListUrls

type ListUrls struct {
	// Allowlist URLs whose contents will not be scanned. Allows up to 255 URLs. There may be trusted websites the content of which might be blocked due to anti-virus, anti-spyware, or anti-malware policies. Enter the URLs of sites you do not want scanned. The service allows users to download content from these URLs without inspecting the traffic. The allowlist applies to the Malware Protection, Advanced Threats Protection, and Sandbox policies.
	White []string `json:"whitelistUrls,omitempty"`

	// URLs on the denylist for your organization. Allow up to 25000 URLs.
	Black []string `json:"blacklistUrls,omitempty"`
}

func GetBlackListUrls added in v2.61.0

func GetBlackListUrls(service *services.Service) (*ListUrls, error)

func GetListUrls added in v2.61.0

func GetListUrls(service *services.Service) (*ListUrls, error)

func GetWhiteListUrls added in v2.61.0

func GetWhiteListUrls(service *services.Service) (*ListUrls, error)

func UpdateBlackListUrls added in v2.61.0

func UpdateBlackListUrls(service *services.Service, list ListUrls) (*ListUrls, error)

func UpdateListUrls added in v2.61.0

func UpdateListUrls(service *services.Service, listUrls ListUrls) (*ListUrls, error)

func UpdateWhiteListUrls added in v2.61.0

func UpdateWhiteListUrls(service *services.Service, list ListUrls) (*ListUrls, error)

Jump to

Keyboard shortcuts

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