Documentation ¶
Index ¶
- type City
- type DynamicLocationGroupCriteria
- type LastModUser
- type LocationGroup
- func GetAll(ctx context.Context, service *zscaler.Service) ([]LocationGroup, error)
- func GetGroupType(ctx context.Context, service *zscaler.Service, gType string) (*LocationGroup, error)
- func GetLocationGroup(ctx context.Context, service *zscaler.Service, groupID int) (*LocationGroup, error)
- func GetLocationGroupByName(ctx context.Context, service *zscaler.Service, locationGroupName string) (*LocationGroup, error)
- type ManagedBy
- type Name
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicLocationGroupCriteria ¶
type DynamicLocationGroupCriteria struct { // A sub-string to match location name. Valid operators are contains, starts with, and ends with", Name *Name `json:"name,omitempty"` // One or more countries from a predefined set Countries []string `json:"countries,omitempty"` // A sub-string to match city. Valid operators are starts with, ends with, contains, and exact match operators. City *City `json:"city,omitempty"` // One or more values from a predefined set of SD-WAN partner list to display partner names. ManagedBy []ManagedBy `json:"managedBy,omitempty"` // Enforce Authentication. Required when ports are enabled, IP Surrogate is enabled, or Kerberos Authentication is enabled. EnforceAuthentication bool `json:"enforceAuthentication"` // Enable AUP. When set to true, AUP is enabled for the location. EnforceAup bool `json:"enforceAup"` // Enable Firewall. When set to true, Firewall is enabled for the location. EnforceFirewallControl bool `json:"enforceFirewallControl"` // Enable XFF Forwarding. When set to true, traffic is passed to Zscaler Cloud via the X-Forwarded-For (XFF) header. EnableXffForwarding bool `json:"enableXffForwarding"` // Enable Caution. When set to true, a caution notifcation is enabled for the location. EnableCaution bool `json:"enableCaution"` // Enable Bandwidth Control. When set to true, Bandwidth Control is enabled for the location. EnableBandwidthControl bool `json:"enableBandwidthControl"` // One or more location profiles from a predefined set Profiles []string `json:"profiles"` }
type LastModUser ¶
type LocationGroup ¶
type LocationGroup struct { // Unique identifier for the location group ID int `json:"id,omitempty"` // Location group name Name string `json:"name,omitempty"` // Indicates the location group was deleted Deleted bool `json:"deleted,omitempty"` // The location group's type (i.e., Static or Dynamic) GroupType string `json:"groupType,omitempty"` // A dynamic location group's criteria. This is ignored if the groupType is Static. DynamicLocationGroupCriteria *DynamicLocationGroupCriteria `json:"dynamicLocationGroupCriteria,omitempty"` // Additional information about the location group Comments string `json:"comments"` // The Name-ID pairs of the locations that are assigned to the static location group. This is ignored if the groupType is Dynamic. Locations []common.IDNameExtensions `json:"locations"` // Automatically populated with the current ZIA admin user, after a successful POST or PUT request. LastModUser *LastModUser `json:"lastModUser"` // Automatically populated with the current time, after a successful POST or PUT request. LastModTime int `json:"lastModTime"` Predefined bool `json:"predefined"` }
func GetGroupType ¶
func GetGroupType(ctx context.Context, service *zscaler.Service, gType string) (*LocationGroup, error)
GetGroupType queries the location group by its type
func GetLocationGroup ¶
func GetLocationGroupByName ¶
Click to show internal directories.
Click to hide internal directories.