gretunnels

package
v2.72.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGreTunnels added in v2.61.7

func DeleteGreTunnels(service *services.Service, greTunnelID int) (*http.Response, error)

Types

type GreTunnels

type GreTunnels struct {
	// Unique identifier of the static IP address that is associated to a GRE tunnel
	ID int `json:"id,omitempty"`

	// The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN. This IP address must be provisioned within the Zscaler service using the /staticIP endpoint.
	SourceIP string `json:"sourceIp,omitempty"`

	// The start of the internal IP address in /29 CIDR range
	InternalIpRange string `json:"internalIpRange,omitempty"`

	// When the GRE tunnel information was last modified
	LastModificationTime int `json:"lastModificationTime,omitempty"`

	// Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
	WithinCountry *bool `json:"withinCountry"`

	// Additional information about this GRE tunnel
	Comment string `json:"comment,omitempty"`

	// This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
	IPUnnumbered bool `json:"ipUnnumbered"`

	// Restrict the data center virtual IP addresses (VIPs) only to those part of the subcloud
	SubCloud string `json:"subcloud,omitempty"`

	// SD-WAN Partner that manages the location. If a partner does not manage the location, this is set to Self.
	ManagedBy *ManagedBy `json:"managedBy,omitempty"` // Should probably move this to a common package. Used by multiple resources

	// Who modified the GRE tunnel information last
	LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` // Should probably move this to a common package. Used by multiple resources

	// The primary destination data center and virtual IP address (VIP) of the GRE tunnel
	PrimaryDestVip *PrimaryDestVip `json:"primaryDestVip,omitempty"`

	// The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
	SecondaryDestVip *SecondaryDestVip `json:"secondaryDestVip,omitempty"`
}

func CreateGreTunnels added in v2.61.7

func CreateGreTunnels(service *services.Service, greTunnelID *GreTunnels) (*GreTunnels, *http.Response, error)

Adds a GRE tunnel configuration.

func GetAll added in v2.61.7

func GetAll(service *services.Service) ([]GreTunnels, error)

func GetByIPAddress added in v2.61.7

func GetByIPAddress(service *services.Service, sourceIP string) (*GreTunnels, error)

Gets specific provisioned GRE tunnel information by source IP address

func GetGreTunnels added in v2.61.7

func GetGreTunnels(service *services.Service, greTunnelID int) (*GreTunnels, error)

Gets specific provisioned GRE tunnel information.

func UpdateGreTunnels added in v2.61.7

func UpdateGreTunnels(service *services.Service, greTunnelID int, greTunnels *GreTunnels) (*GreTunnels, *http.Response, error)

type LastModifiedBy

type LastModifiedBy struct {
	// Identifier that uniquely identifies an entity
	ID int `json:"id,omitempty"`

	// The configured name of the entity
	Name       string                 `json:"name,omitempty"`
	Extensions map[string]interface{} `json:"extensions"`
}

type ManagedBy

type ManagedBy struct {
	// Identifier that uniquely identifies an entity
	ID int `json:"id,omitempty"`

	// The configured name of the entity
	Name       string                 `json:"name,omitempty"`
	Extensions map[string]interface{} `json:"extensions"`
}

type PrimaryDestVip

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

	// 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"`

	// Data center information
	Datacenter string `json:"datacenter,omitempty"`

	// Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
	Latitude float64 `json:"latitude,omitempty"`

	// Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
	Longitude float64 `json:"longitude,omitempty"`

	// City information
	City string `json:"city,omitempty"`

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

	// Region information
	Region string `json:"region,omitempty"`
}

type SecondaryDestVip

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

	// 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"`

	// Data center information
	Datacenter string `json:"datacenter,omitempty"`

	// Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
	Latitude float64 `json:"latitude,omitempty"`

	// Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
	Longitude float64 `json:"longitude,omitempty"`

	// City information
	City string `json:"city,omitempty"`

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

	// Region information
	Region string `json:"region,omitempty"`
}

Jump to

Keyboard shortcuts

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