urlcategories

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteURLCategories

func DeleteURLCategories(ctx context.Context, service *zscaler.Service, categoryID string) (*http.Response, error)

func UpdateURLReview

func UpdateURLReview(ctx context.Context, service *zscaler.Service, reviews []URLReview) error

Types

type DomainMatch

type DomainMatch struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Scopes

type Scopes struct {
	// Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change.
	ScopeGroupMemberEntities []common.IDNameExtensions `json:"scopeGroupMemberEntities,omitempty"`

	// The admin scope type. The attribute name is subject to change.
	Type string `json:"Type,omitempty"`

	// Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups. The attribute name is subject to change.
	ScopeEntities []common.IDNameExtensions `json:"ScopeEntities,omitempty"`
}

type URLCategory

type URLCategory struct {
	// URL category
	ID string `json:"id,omitempty"`

	// Name of the URL category. This is only required for custom URL categories.
	ConfiguredName string `json:"configuredName,omitempty"`

	// Custom keywords associated to a URL category. Up to 2048 custom keywords can be added per organization across all categories (including bandwidth classes).
	Keywords []string `json:"keywords"`

	// Retained custom keywords from the parent URL category that is associated to a URL category. Up to 2048 retained parent keywords can be added per organization across all categories (including bandwidth classes).
	KeywordsRetainingParentCategory []string `json:"keywordsRetainingParentCategory"`

	// Custom URLs to add to a URL category. Up to 25,000 custom URLs can be added per organization across all categories (including bandwidth classes).
	Urls []string `json:"urls"`

	// URLs added to a custom URL category are also retained under the original parent URL category (i.e., the predefined category the URL previously belonged to). The URLs entered are covered by policies that reference the original parent URL category as well as those that reference the custom URL category. For example, if you add www.amazon.com, this URL is covered by policies that reference the custom URL category as well as policies that reference its parent URL category of "Online Shopping".
	DBCategorizedUrls []string `json:"dbCategorizedUrls"`

	//
	CustomCategory bool `json:"customCategory"`

	// Scope of the custom categories.
	Scopes []Scopes `json:"scopes,omitempty"`

	// Value is set to false for custom URL category when due to scope user does not have edit permission
	Editable bool `json:"editable"`

	// Description of the URL category. Contains tag name and needs to be localized on client side in case of predefined category (customCategory=null or =false), else it contains the user-entered description which does not have localization support.
	Description string `json:"description,omitempty"`

	// Type of the custom categories.
	Type string `json:"type,omitempty"`

	// URL and keyword counts for the URL category.
	URLKeywordCounts *URLKeywordCounts `json:"urlKeywordCounts,omitempty"`
	Val              int               `json:"val,omitempty"`

	// The number of custom URLs associated to the URL category.
	CustomUrlsCount int `json:"customUrlsCount,omitempty"`

	// Super Category of the URL category. This field is required when creating custom URL categories.
	SuperCategory string `json:"superCategory,omitempty"`

	// The number of custom URLs associated to the URL category, that also need to be retained under the original parent category.
	UrlsRetainingParentCategoryCount int `json:"urlsRetainingParentCategoryCount"`

	// Custom IP address ranges associated to a URL category. Up to 2000 custom IP address ranges and retaining parent custom IP address ranges can be added, per organization, across all categories.
	IPRanges []string `json:"ipRanges"`

	// The retaining parent custom IP address ranges associated to a URL category. Up to 2000 custom IP ranges and retaining parent custom IP address ranges can be added, per organization, across all categories.
	IPRangesRetainingParentCategory []string `json:"ipRangesRetainingParentCategory"`

	// The number of custom IP address ranges associated to the URL category.
	CustomIpRangesCount int `json:"customIpRangesCount"`

	// The number of custom IP address ranges associated to the URL category, that also need to be retained under the original parent category.
	IPRangesRetainingParentCategoryCount int `json:"ipRangesRetainingParentCategoryCount"`
}

func CreateURLCategories

func CreateURLCategories(ctx context.Context, service *zscaler.Service, category *URLCategory) (*URLCategory, error)

func Get

func Get(ctx context.Context, service *zscaler.Service, categoryID string) (*URLCategory, error)

func GetAll

func GetAll(ctx context.Context, service *zscaler.Service) ([]URLCategory, error)

func GetAllLite

func GetAllLite(ctx context.Context, service *zscaler.Service) ([]URLCategory, error)

func GetCustomURLCategories

func GetCustomURLCategories(ctx context.Context, service *zscaler.Service, customName string, includeOnlyUrlKeywordCounts, customOnly bool) (*URLCategory, error)

func UpdateURLCategories

func UpdateURLCategories(ctx context.Context, service *zscaler.Service, categoryID string, category *URLCategory) (*URLCategory, *http.Response, error)

type URLClassification

type URLClassification struct {
	URL                                 string   `json:"url,omitempty"`
	URLClassifications                  []string `json:"urlClassifications,omitempty"`
	URLClassificationsWithSecurityAlert []string `json:"urlClassificationsWithSecurityAlert,omitempty"`
	Application                         string   `json:"application,omitempty"`
}

func GetURLLookup

func GetURLLookup(ctx context.Context, service *zscaler.Service, urls []string) ([]URLClassification, error)

type URLKeywordCounts

type URLKeywordCounts struct {
	// Custom URL count for the category.
	TotalURLCount int `json:"totalUrlCount,omitempty"`

	// Count of URLs with retain parent category.
	RetainParentURLCount int `json:"retainParentUrlCount,omitempty"`

	// Total keyword count for the category.
	TotalKeywordCount int `json:"totalKeywordCount,omitempty"`

	// Count of total keywords with retain parent category.
	RetainParentKeywordCount int `json:"retainParentKeywordCount,omitempty"`
}

type URLQuota

type URLQuota struct {
	UniqueUrlsProvisioned int `json:"uniqueUrlsProvisioned,omitempty"`
	RemainingUrlsQuota    int `json:"remainingUrlsQuota,omitempty"`
}

func GetURLQuota

func GetURLQuota(ctx context.Context, service *zscaler.Service) (*URLQuota, error)

type URLReview

type URLReview struct {
	URL        string        `json:"url"`
	DomainType string        `json:"domainType"`
	Matches    []DomainMatch `json:"matches"`
}

func CreateURLReview

func CreateURLReview(ctx context.Context, service *zscaler.Service, domains []string) ([]URLReview, error)

Jump to

Keyboard shortcuts

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