staticips

package
v3.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, service *zscaler.Service, staticIpID int) (*http.Response, error)

Types

type City

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

	// The configured name of the entity
	Name string `json:"name,omitempty"`
}

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,omitempty"`
}

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,omitempty"`
}

type StaticIP

type StaticIP struct {
	// The unique identifier for the static IP address
	ID int `json:"id,omitempty"`

	// The static IP address
	IpAddress string `json:"ipAddress"`

	// If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
	GeoOverride bool `json:"geoOverride"`

	// Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
	Latitude float64 `json:"latitude,omitempty"`

	// Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
	Longitude float64 `json:"longitude,omitempty"`

	// Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
	RoutableIP bool `json:"routableIP,omitempty"`

	City *City `json:"city,omitempty"`

	// When the static IP address was last modified
	LastModificationTime int `json:"lastModificationTime"`

	// Additional information about this static IP address
	Comment string `json:"comment,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 static IP address last
	LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` // Should probably move this to a common package. Used by multiple resources
}

Gets all provisioned static IP addresses.

func Create

func Create(ctx context.Context, service *zscaler.Service, staticIpID *StaticIP) (*StaticIP, *http.Response, error)

func Get

func Get(ctx context.Context, service *zscaler.Service, staticIpID int) (*StaticIP, error)

func GetAll

func GetAll(ctx context.Context, service *zscaler.Service) ([]StaticIP, error)

func GetByIPAddress

func GetByIPAddress(ctx context.Context, service *zscaler.Service, address string) (*StaticIP, error)

func Update

func Update(ctx context.Context, service *zscaler.Service, staticIpID int, staticIP *StaticIP) (*StaticIP, *http.Response, error)

Jump to

Keyboard shortcuts

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