Documentation ¶
Index ¶
- type Location
- type Locations
- type ManagedBy
- type Service
- func (service *Service) Create(locations *Locations) (*Locations, error)
- func (service *Service) Delete(locationID int) (*http.Response, error)
- func (service *Service) GetAll() ([]Locations, error)
- func (service *Service) GetLocation(locationID int) (*Locations, error)
- func (service *Service) GetLocationByName(locationName string) (*Locations, error)
- func (service *Service) GetSublocations(sublocations string) (*Locations, error)
- func (service *Service) Update(locationID int, locations *Locations) (*Locations, *http.Response, error)
- type VPNCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locations ¶
type Locations struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` ParentID int `json:"parentId,omitempty"` UpBandwidth int `json:"upBandwidth,omitempty"` DnBandwidth int `json:"dnBandwidth,omitempty"` Country string `json:"country,omitempty"` TZ string `json:"tz,omitempty"` IPAddresses []string `json:"ipAddresses,omitempty"` Ports string `json:"ports,omitempty"` VPNCredentials []VPNCredentials `json:"vpnCredentials,omitempty"` AuthRequired bool `json:"authRequired"` SSLScanEnabled bool `json:"sslScanEnabled"` ZappSSLScanEnabled bool `json:"zappSSLScanEnabled"` XFFForwardEnabled bool `json:"xffForwardEnabled"` SurrogateIP bool `json:"surrogateIP"` IdleTimeInMinutes int `json:"idleTimeInMinutes,omitempty"` DisplayTimeUnit string `json:"displayTimeUnit,omitempty"` SurrogateIPEnforcedForKnownBrowsers bool `json:"surrogateIPEnforcedForKnownBrowsers"` SurrogateRefreshTimeInMinutes int `json:"surrogateRefreshTimeInMinutes,omitempty"` SurrogateRefreshTimeUnit string `json:"surrogateRefreshTimeUnit,omitempty"` OFWEnabled bool `json:"ofwEnabled"` IPSControl bool `json:"ipsControl"` AUPEnabled bool `json:"aupEnabled"` CautionEnabled bool `json:"cautionEnabled"` AUPBlockInternetUntilAccepted bool `json:"aupBlockInternetUntilAccepted"` AUPForceSSLInspection bool `json:"aupForceSslInspection"` AUPTimeoutInDays int `json:"aupTimeoutInDays,omitempty"` Profile string `json:"profile,omitempty"` Description string `json:"description,omitempty"` }
Gets locations only, not sub-locations. When a location matches the given search parameter criteria only its parent location is included in the result set, not its sub-locations.
type Service ¶
func (*Service) GetLocation ¶
Gets locations only, not sub-locations. When a location matches the given search parameter criteria only its parent location is included in the result set, not its sub-locations
func (*Service) GetLocationByName ¶
func (*Service) GetSublocations ¶
Gets a name and ID dictionary of locations.
type VPNCredentials ¶
type VPNCredentials struct { ID int `json:"id,omitempty"` Type string `json:"type,omitempty"` FQDN string `json:"fqdn,omitempty"` IPAddress string `json:"ipAddress"` Comments string `json:"comments,omitempty"` Location []Location `json:"location,omitempty"` ManagedBy []ManagedBy `json:"managedBy,omitempty"` }
Click to show internal directories.
Click to hide internal directories.