servergroup

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConnectorGroups

type AppConnectorGroups struct {
	Citycountry           string            `json:"cityCountry,omitempty"`
	CountryCode           string            `json:"countryCode,omitempty"`
	CreationTime          string            `json:"creationTime,omitempty"`
	Description           string            `json:"description,omitempty"`
	DnsqueryType          string            `json:"dnsQueryType,omitempty"`
	Enabled               bool              `json:"enabled"`
	GeolocationID         string            `json:"geoLocationId,omitempty"`
	ID                    string            `json:"id,omitempty"`
	Latitude              string            `json:"latitude,omitempty"`
	Location              string            `json:"location,omitempty"`
	Longitude             string            `json:"longitude,omitempty"`
	ModifiedBy            string            `json:"modifiedBy,omitempty"`
	ModifiedTime          string            `json:"modifiedTime,omitempty"`
	Name                  string            `json:"name"`
	SiemAppconnectorGroup bool              `json:"siemAppConnectorGroup"`
	UpgradeDay            string            `json:"upgradeDay,omitempty"`
	UpgradeTimeinSecs     string            `json:"upgradeTimeInSecs,omitempty"`
	VersionProfileID      string            `json:"versionProfileId,omitempty"`
	AppServerGroups       []AppServerGroups `json:"serverGroups,omitempty"`
	Connectors            []Connectors      `json:"connectors,omitempty"`
}

type AppServerGroups

type AppServerGroups struct {
	ConfigSpace      string `json:"configSpace,omitempty"`
	CreationTime     string `json:"creationTime,omitempty"`
	Description      string `json:"description,omitempty"`
	Enabled          bool   `json:"enabled"`
	ID               string `json:"id,omitempty"`
	DynamicDiscovery bool   `json:"dynamicDiscovery"`
	ModifiedBy       string `json:"modifiedBy,omitempty"`
	ModifiedTime     string `json:"modifiedTime,omitempty"`
	Name             string `json:"name"`
}

type ApplicationServer

type ApplicationServer struct {
	Address           string   `json:"address,omitempty"`
	AppServerGroupIds []string `json:"appServerGroupIds,omitempty"`
	ConfigSpace       string   `json:"configSpace,omitempty"`
	CreationTime      string   `json:"creationTime,omitempty"`
	Description       string   `json:"description,omitempty"`
	Enabled           bool     `json:"enabled"`
	ID                string   `json:"id,omitempty"`
	ModifiedBy        string   `json:"modifiedBy,omitempty"`
	ModifiedTime      string   `json:"modifiedTime,omitempty"`
	Name              string   `json:"name"`
}

type Applications

type Applications struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Connectors

type Connectors struct {
	ApplicationStartTime     string                 `json:"applicationStartTime,omitempty"`
	AppConnectorGroupID      string                 `json:"appConnectorGroupId,omitempty"`
	AppConnectorGroupName    string                 `json:"appConnectorGroupName,omitempty"`
	ControlChannelStatus     string                 `json:"controlChannelStatus,omitempty"`
	CreationTime             string                 `json:"creationTime,omitempty"`
	CtrlBrokerName           string                 `json:"ctrlBrokerName,omitempty"`
	CurrentVersion           string                 `json:"currentVersion,omitempty"`
	Description              string                 `json:"description,omitempty"`
	Enabled                  bool                   `json:"enabled"`
	ExpectedUpgradeTime      string                 `json:"expectedUpgradeTime,omitempty"`
	ExpectedVersion          string                 `json:"expectedVersion,omitempty"`
	Fingerprint              string                 `json:"fingerprint,omitempty"`
	ID                       string                 `json:"id,omitempty"`
	IPACL                    []string               `json:"ipAcl,omitempty"`
	IssuedCertID             string                 `json:"issuedCertId,omitempty"`
	LastBrokerConnecttime    string                 `json:"lastBrokerConnectTime,omitempty"`
	LastBrokerDisconnectTime string                 `json:"lastBrokerDisconnectTime,omitempty"`
	LastUpgradeTime          string                 `json:"lastUpgradeTime,omitempty"`
	Latitude                 float64                `json:"latitude,omitempty"`
	Location                 string                 `json:"location,omitempty"`
	Longitude                float64                `json:"longitude,string,omitempty"`
	ModifiedBy               string                 `json:"modifiedBy,omitempty"`
	ModifiedTime             string                 `json:"modifiedTime,omitempty"`
	Name                     string                 `json:"name"`
	Platform                 string                 `json:"platform,omitempty"`
	PreviousVersion          string                 `json:"previousVersion,omitempty"`
	PrivateIP                string                 `json:"privateIp,omitempty"`
	PublicIP                 string                 `json:"publicIp,omitempty"`
	SigningCert              map[string]interface{} `json:"signingCert,omitempty"`
	UpgradeAttempt           string                 `json:"upgradeAttempt,omitempty"`
	UpgradeStatus            string                 `json:"upgradeStatus,omitempty"`
}

type ServerGroup

type ServerGroup struct {
	ID                 string               `json:"id,omitempty"`
	Enabled            bool                 `json:"enabled"`
	Name               string               `json:"name,omitempty"`
	Description        string               `json:"description,omitempty"`
	IpAnchored         bool                 `json:"ipAnchored"`
	ConfigSpace        string               `json:"configSpace,omitempty"`
	DynamicDiscovery   bool                 `json:"dynamicDiscovery"`
	CreationTime       string               `json:"creationTime,omitempty"`
	ModifiedBy         string               `json:"modifiedBy,omitempty"`
	ModifiedTime       string               `json:"modifiedTime,omitempty"`
	AppConnectorGroups []AppConnectorGroups `json:"appConnectorGroups"`
	Servers            []ApplicationServer  `json:"servers"`
	Applications       []Applications       `json:"applications"`
}

type Service

type Service struct {
	Client *zpa.Client
}

func New

func New(c *zpa.Client) *Service

func (*Service) Create

func (service *Service) Create(serverGroup *ServerGroup) (*ServerGroup, *http.Response, error)

func (*Service) Delete

func (service *Service) Delete(groupId string) (*http.Response, error)

func (*Service) Get

func (service *Service) Get(groupID string) (*ServerGroup, *http.Response, error)

func (*Service) GetAll added in v0.0.4

func (service *Service) GetAll() ([]ServerGroup, *http.Response, error)

func (*Service) GetByName

func (service *Service) GetByName(serverGroupName string) (*ServerGroup, *http.Response, error)

func (*Service) Update

func (service *Service) Update(groupId string, serverGroup *ServerGroup) (*http.Response, error)

Jump to

Keyboard shortcuts

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