Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var URIApi string = "https://apigw-prod2.central.arubanetworks.com"
URIApi Root api url of central
Functions ¶
This section is empty.
Types ¶
type ApRadioStruct ¶
type ApRadioStruct struct { Band float64 `json:"band"` Index float64 `json:"index"` MacAddr string `json:"macaddr"` Status string `json:"status"` }
ApRadioStruct radio struct
type ApStruct ¶
type ApStruct struct { ApDeploymentMode string `json:"ap_deployment_mode"` ClientCount float64 `json:"client_count"` APGroup string `json:"ap_group"` ClusterID string `json:"cluster_id"` Labels []string `json:"labels"` Model string `json:"model"` Radios []ApRadioStruct `json:"radios"` Serial string `json:"serial"` FirmwareVersion string `json:"firmware_version"` IPAddress string `json:"ip_address"` LastModified float64 `json:"last_modified"` MeshRole string `json:"mesh_role"` Name string `json:"name"` Status string `json:"status"` Macaddr string `json:"macaddr"` Notes string `json:"notes"` PublicIPAddress string `json:"public_ip_address"` SubnetMask string `json:"subnet_mask"` GroupName string `json:"group_name"` Site string `json:"site"` SwarmID string `json:"swarm_id"` SwarmMaster bool `json:"swarm_master"` }
ApStruct access point struct
type AuthcodeStruct ¶
type AuthcodeStruct struct {
AuthCode string `json:"auth_code,omitempty"`
}
AuthcodeStruct auth code
func Getauthcode ¶
func Getauthcode(customerID string, sessionID string, csrfToken string, clientID string, verbose bool) (AuthcodeStruct, error)
Getauthcode Phase 2 auth
type AuthtokenStruct ¶
AuthtokenStruct init csrf and session
type DeviceStruct ¶
type DeviceStruct struct { ArubaPartNo string `json:"aruba_part_no"` CustomerID string `json:"customer_id"` CustomerName string `json:"customer_name"` DeviceType string `json:"device_type"` Macaddr string `json:"macaddr"` Model string `json:"model"` Serial string `json:"serial"` }
DeviceStruct device struct
func Getdevices ¶
func Getdevices(token TokenStruct, verbose bool) []DeviceStruct
Getdevices get a list of devices
type SwarmStruct ¶
type TokenStruct ¶
type TokenStruct struct { AccessToken string `json:"access_token,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` TokenType string `json:"token_type,omitempty"` }
TokenStruct List of tokens
func Getaccesstoken ¶
func Getaccesstoken(clientID string, clientSecret string, authCode string, customerID string, verbose bool) (TokenStruct, error)
Getaccesstoken Phase 3 auth
Click to show internal directories.
Click to hide internal directories.