virtualipaddress

package
v2.74.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPairZSGREVirtualIPsWithinCountry added in v2.61.0

func GetPairZSGREVirtualIPsWithinCountry(service *services.Service, sourceIP, countryCode string) (*[]GREVirtualIPList, error)

Gets a paginated list of the virtual IP addresses (VIPs) available in the Zscaler cloud by sourceIP within country.

func GetVIPRecommendedList added in v2.72.1

func GetVIPRecommendedList(service *services.Service, options ...func(*url.Values)) (*[]GREVirtualIPList, error)

Gets a paginated list of the virtual IP addresses (VIPs) available in the Zscaler cloud based on optional parameters.

func GetZSGREVirtualIPList added in v2.61.0

func GetZSGREVirtualIPList(service *services.Service, sourceIP string, count int) (*[]GREVirtualIPList, error)

Gets a paginated list of the virtual IP addresses (VIPs) available in the Zscaler cloud by sourceIP.

func WithIncludeCurrentVips added in v2.72.1

func WithIncludeCurrentVips(includeCurrentVips bool) func(*url.Values)

func WithIncludePrivateServiceEdge added in v2.72.1

func WithIncludePrivateServiceEdge(includePrivateServiceEdge bool) func(*url.Values)

func WithLatitude added in v2.72.1

func WithLatitude(latitude float64) func(*url.Values)

func WithLongitude added in v2.72.1

func WithLongitude(longitude float64) func(*url.Values)

func WithRoutableIP added in v2.72.1

func WithRoutableIP(routableIP bool) func(*url.Values)

Optional parameters as functions to be passed to GetVIPRecommendedList

func WithSourceIP added in v2.72.1

func WithSourceIP(sourceIp string) func(*url.Values)

func WithSubcloud added in v2.72.1

func WithSubcloud(subcloud string) func(*url.Values)

func WithWithinCountryOnly added in v2.72.1

func WithWithinCountryOnly(withinCountryOnly bool) func(*url.Values)

Types

type GREVirtualIPList

type GREVirtualIPList struct {
	// Unique identifer of the GRE virtual IP address (VIP)
	ID int `json:"id"`

	// GRE cluster virtual IP address (VIP)
	VirtualIp string `json:"virtualIp,omitempty"`

	// Set to true if the virtual IP address (VIP) is a ZIA Private Service Edge
	PrivateServiceEdge bool `json:"privateServiceEdge,omitempty"`

	// Data center information
	DataCenter string `json:"dataCenter,omitempty"`

	// Country code information
	CountryCode string `json:"countryCode,omitempty"`

	City      string  `json:"city,omitempty"`
	Region    string  `json:"region,omitempty"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

func GetAll added in v2.61.0

func GetAll(service *services.Service, sourceIP string) ([]GREVirtualIPList, error)

func GetAllSourceIPs added in v2.61.0

func GetAllSourceIPs(service *services.Service) ([]GREVirtualIPList, error)

GetAllSourceIPs gets all vips for all static ips

type ZscalerVIPs

type ZscalerVIPs struct {
	CloudName     string   `json:"cloudName"`
	Region        string   `json:"region"`
	City          string   `json:"city"`
	DataCenter    string   `json:"dataCenter"`
	Location      string   `json:"location"`
	VPNIPs        []string `json:"vpnIps"`
	VPNDomainName string   `json:"vpnDomainName"`
	GREIPs        []string `json:"greIps"`
	GREDomainName string   `json:"greDomainName"`
	PACIPs        []string `json:"pacIps"`
	PACDomainName string   `json:"pacDomainName"`
}

func GetZscalerVIPs added in v2.61.0

func GetZscalerVIPs(service *services.Service, datacenter string) (*ZscalerVIPs, error)

Gets a paginated list of the virtual IP addresses (VIPs) available in the Zscaler cloud, including region and data center information. By default, the request gets all public VIPs in the cloud, but you can also include private or all VIPs in the request, if necessary.

Jump to

Keyboard shortcuts

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