Documentation ¶
Index ¶
- Constants
- func GetAllPagesGeneric[T any](ctx context.Context, client *zscaler.Client, relativeURL, searchQuery string) ([]T, *http.Response, error)
- func GetAllPagesGenericWithCustomFilters[T any](ctx context.Context, client *zscaler.Client, relativeURL string, ...) ([]T, *http.Response, error)
- func InList(list []string, item string) bool
- func RemoveCloudSuffix(str string) string
- type AssociatedProfileNames
- type CommonConfigDetails
- type Conditions
- type CustomCommonControls
- type DeleteApplicationQueryParams
- type Filter
- type NetworkPorts
- type Pagination
- type Rules
- type ZPNSubModuleUpgrade
Constants ¶
View Source
const (
DefaultPageSize = 500
)
Variables ¶
This section is empty.
Functions ¶
func GetAllPagesGeneric ¶
func GetAllPagesGeneric[T any](ctx context.Context, client *zscaler.Client, relativeURL, searchQuery string) ([]T, *http.Response, error)
GetAllPagesGeneric fetches all resources instead of just one single page
func GetAllPagesGenericWithCustomFilters ¶
func GetAllPagesGenericWithCustomFilters[T any](ctx context.Context, client *zscaler.Client, relativeURL string, filters Filter) ([]T, *http.Response, error)
GetAllPagesGenericWithCustomFilters fetches all resources instead of just one single page
func RemoveCloudSuffix ¶
RemoveCloudSuffix removes appended cloud name (zscalerthree.net) i.e "CrowdStrike_ZPA_Pre-ZTA (zscalerthree.net)"
Types ¶
type AssociatedProfileNames ¶
type CommonConfigDetails ¶
type CommonConfigDetails struct { Name string `json:"name,omitempty"` Reason string `json:"reason,omitempty"` }
ZPA Common Structs to Avoid Repetion
type Conditions ¶
type CustomCommonControls ¶ added in v3.0.1
type CustomCommonControls struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Action string `json:"action,omitempty"` ActionValue string `json:"actionValue,omitempty"` AssociatedInspectionProfileNames []AssociatedProfileNames `json:"associatedInspectionProfileNames,omitempty"` Attachment string `json:"attachment,omitempty"` ControlGroup string `json:"controlGroup,omitempty"` ControlNumber string `json:"controlNumber,omitempty"` ControlType string `json:"controlType,omitempty"` CreationTime string `json:"creationTime,omitempty"` DefaultAction string `json:"defaultAction,omitempty"` DefaultActionValue string `json:"defaultActionValue,omitempty"` Description string `json:"description,omitempty"` ModifiedBy string `json:"modifiedBy,omitempty"` ModifiedTime string `json:"modifiedTime,omitempty"` ParanoiaLevel string `json:"paranoiaLevel,omitempty"` ProtocolType string `json:"protocolType,omitempty"` Severity string `json:"severity,omitempty"` Version string `json:"version,omitempty"` }
type Filter ¶
type Filter struct { Search string `url:"search,omitempty"` MicroTenantID *string `url:"microtenantId,omitempty"` MicroTenantName *string `url:"-,omitempty"` SortBy string `url:"sortBy,omitempty"` // New field for sorting by attribute SortOrder string `url:"sortOrder,omitempty"` // New field for the sort order (ASC or DESC) ApplicationType string `url:"applicationType,omitempty"` // New field for filtering by application type ExpandAll bool `url:"expandAll,omitempty"` // New field for deciding whether to expand all attributes }
type NetworkPorts ¶
type Pagination ¶
type Pagination struct { PageSize int `json:"pagesize,omitempty" url:"pagesize,omitempty"` Page int `json:"page,omitempty" url:"page,omitempty"` Search string `json:"-" url:"-"` Search2 string `json:"search,omitempty" url:"search,omitempty"` MicroTenantID *string `url:"microtenantId,omitempty"` MicroTenantName *string `url:"-,omitempty"` SortBy string `json:"sortBy,omitempty" url:"sortBy,omitempty"` // New field for sorting by attribute SortOrder string `json:"sortOrder,omitempty" url:"sortOrder,omitempty"` // New field for the sort order (ASC or DESC) }
type Rules ¶
type Rules struct { Conditions []Conditions `json:"conditions,omitempty"` Names string `json:"names,omitempty"` Type string `json:"type,omitempty"` Version string `json:"version,omitempty"` }
ZPA Inspection Rules
type ZPNSubModuleUpgrade ¶ added in v3.0.1
type ZPNSubModuleUpgrade struct { ID string `json:"id,omitempty"` CreationTime string `json:"creationTime,omitempty"` CurrentVersion string `json:"currentVersion,omitempty"` EntityGid string `json:"entityGid,omitempty"` EntityType string `json:"entityType,omitempty"` ExpectedVersion string `json:"expectedVersion,omitempty"` ModifiedBy string `json:"modifiedBy,omitempty"` ModifiedTime string `json:"modifiedTime,omitempty"` PreviousVersion string `json:"previousVersion,omitempty"` Role string `json:"role,omitempty"` UpgradeStatus string `json:"upgradeStatus,omitempty"` UpgradeTime string `json:"upgradeTime,omitempty"` }
Click to show internal directories.
Click to hide internal directories.