Documentation ¶
Index ¶
- Variables
- type AlarmClockOccurrence
- type AuditLog
- type BootSetting
- type CIRAConfig
- type CertCreationResult
- type DeleteAlarmOccurrenceRequest
- type Device
- type DeviceInfo
- type Domain
- type EventLog
- type Features
- type IEEE8021xConfig
- type PowerAction
- type Profile
- type ProfileWiFiConfigs
- type TLSCerts
- type UserConsent
- type WirelessConfig
- type WirelessConfigCountResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var StorageFormatValidation validator.Func = func(fl validator.FieldLevel) bool { provisioningCertStorageFormat, ok := fl.Field().Interface().(string) if ok { if provisioningCertStorageFormat != "raw" && provisioningCertStorageFormat != "string" { return false } } return true }
Functions ¶
This section is empty.
Types ¶
type AlarmClockOccurrence ¶
type AlarmClockOccurrence struct { ElementName string `json:"elementName" binding:"required" example:"test"` InstanceID string `json:"instanceID" binding:"" example:"test"` StartTime time.Time `json:"startTime" binding:"required" example:"2024-01-01T00:00:00Z"` Interval string `json:"interval" binding:"required" example:"1"` DeleteOnCompletion bool `json:"deleteOnCompletion" binding:"required" example:"true"` }
type AuditLog ¶
type AuditLog struct { TotalCount int `json:"totalCnt" binding:"required" example:"0"` Records []auditlog.AuditLogRecord `json:"records" binding:"required"` }
type BootSetting ¶
type CIRAConfig ¶
type CIRAConfig struct { ConfigName string `json:"configName" example:"My CIRA Config"` MPSAddress string `json:"mpsServerAddress" binding:"required,ipv4|ipv6|url" example:"https://example.com"` MPSPort int `json:"mpsPort" binding:"required,gt=1024,lt=49151" example:"4433"` Username string `json:"username" binding:"required,alphanum" example:"my_username"` Password string `json:"password,omitempty" example:"my_password"` CommonName string `json:"commonName" example:"example.com"` ServerAddressFormat int `json:"serverAddressFormat" binding:"required,oneof=3 4 201" example:"201"` // 3 = IPV4, 4= IPV6, 201 = FQDN AuthMethod int `json:"authMethod" binding:"required,oneof=1 2" example:"2"` // 1 = Mutal Auth, 2 = Username and Password MPSRootCertificate string `json:"mpsRootCertificate" binding:"required" example:"-----BEGIN CERTIFICATE-----\n..."` ProxyDetails string `json:"proxyDetails" example:"http://example.com"` TenantID string `json:"tenantId" example:"abc123"` RegeneratePassword bool `json:"regeneratePassword,omitempty" example:"true"` Version string `json:"version,omitempty" example:"1.0.0"` }
type CertCreationResult ¶
type DeleteAlarmOccurrenceRequest ¶
type DeleteAlarmOccurrenceRequest struct {
InstanceID *string `json:"instanceID" binding:"" example:"test"`
}
type Device ¶
type Device struct { ConnectionStatus bool `json:"connectionStatus"` MPSInstance string `json:"mpsInstance"` Hostname string `json:"hostname"` GUID string `json:"guid"` MPSUsername string `json:"mpsusername"` Tags []string `json:"tags"` TenantID string `json:"tenantId"` FriendlyName string `json:"friendlyName"` DNSSuffix string `json:"dnsSuffix"` LastConnected *time.Time `json:"lastConnected,omitempty"` LastSeen *time.Time `json:"lastSeen,omitempty"` LastDisconnected *time.Time `json:"lastDisconnected,omitempty"` DeviceInfo *DeviceInfo `json:"deviceInfo,omitempty"` Username string `json:"username"` Password string `json:"password"` UseTLS bool `json:"useTLS"` AllowSelfSigned bool `json:"allowSelfSigned"` }
type DeviceInfo ¶
type Domain ¶
type Domain struct { ProfileName string `json:"profileName" binding:"required,alphanum" example:"My Profile"` DomainSuffix string `json:"domainSuffix" binding:"required" example:"example.com"` ProvisioningCert string `json:"provisioningCert,omitempty" binding:"required" example:"-----BEGIN CERTIFICATE-----\n..."` ProvisioningCertStorageFormat string `json:"provisioningCertStorageFormat" binding:"required" example:"string"` ProvisioningCertPassword string `json:"provisioningCertPassword,omitempty" binding:"required,lte=64" example:"my_password"` TenantID string `json:"tenantId" example:"abc123"` Version string `json:"version,omitempty" example:"1.0.0"` }
type EventLog ¶
type EventLog struct { DeviceAddress int `json:"DeviceAddress"` EventSensorType int `json:"EventSensorType"` EventType int `json:"EventType"` EventOffset int `json:"EventOffset"` EventSourceType int `json:"EventSourceType"` EventSeverity string `json:"EventSeverity"` SensorNumber int `json:"SensorNumber"` Entity string `json:"Entity"` EntityInstance int `json:"EntityInstance"` EventData []int `json:"EventData"` Time string `json:"Time"` EntityStr string `json:"EntityStr"` Description string `json:"Desc"` EventTypeDesc string `json:"eventTypeDesc"` }
type IEEE8021xConfig ¶
type IEEE8021xConfig struct { ProfileName string `json:"profileName" binding:"required,max=32,alphanum" example:"My Profile"` AuthenticationProtocol int `json:"authenticationProtocol" binding:"oneof=0 2 3 5 10" example:"1"` PXETimeout *int `json:"pxeTimeout" binding:"required,number,gte=0,lte=86400" example:"60"` WiredInterface bool `json:"wiredInterface,omitempty" example:"false"` TenantID string `json:"tenantId" example:"abc123"` Version string `json:"version,omitempty" example:"1.0.0"` }
type PowerAction ¶
type PowerAction struct {
Action int `json:"action" binding:"required" example:"8"`
}
type Profile ¶
type Profile struct { ProfileName string `json:"profileName,omitempty" binding:"required" example:"My Profile"` AMTPassword string `` /* 156-byte string literal not displayed */ CreationDate string `json:"creationDate,omitempty" example:"2021-07-01T00:00:00Z"` CreatedBy string `json:"created_by,omitempty" example:"admin"` GenerateRandomPassword bool `json:"generateRandomPassword" example:"true"` CIRAConfigName *string `json:"ciraConfigName,omitempty" example:"My CIRA Config"` Activation string `json:"activation" binding:"required,oneof=ccmactivate acmactivate" example:"activate"` MEBXPassword string `` /* 196-byte string literal not displayed */ GenerateRandomMEBxPassword bool `json:"generateRandomMEBxPassword" example:"true"` CIRAConfigObject *CIRAConfig `json:"ciraConfigObject,omitempty"` Tags []string `json:"tags,omitempty" example:"tag1,tag2"` DHCPEnabled bool `json:"dhcpEnabled" example:"true"` IPSyncEnabled bool `json:"ipSyncEnabled" example:"true"` LocalWiFiSyncEnabled bool `json:"localWifiSyncEnabled" example:"true"` WiFiConfigs []ProfileWiFiConfigs `json:"wifiConfigs,omitempty"` TenantID string `json:"tenantId" example:"abc123"` TLSMode int `json:"tlsMode,omitempty" binding:"omitempty,min=1,max=4" example:"1"` TLSCerts *TLSCerts `json:"tlsCerts,omitempty"` TLSSigningAuthority string `json:"tlsSigningAuthority,omitempty" binding:"omitempty,oneof=SelfSigned MicrosoftCA" example:"SelfSigned"` UserConsent string `json:"userConsent,omitempty" binding:"omitempty,oneof=None KVM All" example:"All"` IDEREnabled bool `json:"iderEnabled" example:"true"` KVMEnabled bool `json:"kvmEnabled" example:"true"` SOLEnabled bool `json:"solEnabled" example:"true"` IEEE8021xProfileName *string `json:"ieee8021xProfileName,omitempty" example:"My Profile"` IEEE8021xProfile *IEEE8021xConfig `json:"ieee8021xProfile,omitempty"` Version string `json:"version,omitempty" example:"1.0.0"` }
type ProfileWiFiConfigs ¶
type TLSCerts ¶
type TLSCerts struct { RootCertificate CertCreationResult `json:"rootCertificate"` IssuedCertificate CertCreationResult `json:"issuedCertificate"` Version string `json:"version"` }
type UserConsent ¶
type UserConsent struct {
ConsentCode int `json:"consentCode" binding:"required" example:"123456"`
}
type WirelessConfig ¶
type WirelessConfig struct { ProfileName string `json:"profileName,omitempty" example:"My Profile"` AuthenticationMethod int `json:"authenticationMethod" binding:"oneof=4 5 6 7" example:"1"` EncryptionMethod int `json:"encryptionMethod" binding:"oneof=3 4" example:"2"` SSID string `json:"ssid" binding:"max=32" example:"abc"` PSKValue int `json:"pskValue" example:"3"` PSKPassphrase string `json:"pskPassphrase,omitempty" binding:"omitempty,min=8,max=32" example:"abc"` LinkPolicy []int `json:"linkPolicy"` TenantID string `json:"tenantId" example:"abc123"` IEEE8021xProfileName *string `json:"ieee8021xProfileName,omitempty" example:"My Profile"` IEEE8021xProfileObject *IEEE8021xConfig `json:"ieee8021xProfileObject,omitempty"` Version string `json:"version"` }
type WirelessConfigCountResponse ¶
type WirelessConfigCountResponse struct { Count int `json:"totalCount"` Data []WirelessConfig `json:"data"` }
Click to show internal directories.
Click to hide internal directories.