-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Prerequisites
- Have you tested the operation in the API directly?
- Do you have the latest SDK version?
- Review compability matrix
Describe the bug
When updating network alerts client.Networks.UpdateNetworkAlertsSettings() it's impossible to clear the emails/https servers while omitempty is enabled as sending an empty slice results in it being omitted entirely, removing the omitempty tag resolves it
--- networks.go 2025-09-15 12:50:17
+++ networks.go.new 2025-09-15 12:50:11
@@ -3523,10 +3523,10 @@
Unit string `json:"unit,omitempty"` // Unit
}
type RequestNetworksUpdateNetworkAlertsSettingsDefaultDestinations struct {
- AllAdmins *bool `json:"allAdmins,omitempty"` // If true, then all network admins will receive emails.
- Emails []string `json:"emails,omitempty"` // A list of emails that will receive the alert(s).
- HTTPServerIDs []string `json:"httpServerIds,omitempty"` // A list of HTTP server IDs to send a Webhook to
- SNMP *bool `json:"snmp,omitempty"` // If true, then an SNMP trap will be sent if there is an SNMP trap server configured for this network.
+ AllAdmins *bool `json:"allAdmins,omitempty"` // If true, then all network admins will receive emails.
+ Emails []string `json:"emails"` // A list of emails that will receive the alert(s).
+ HTTPServerIDs []string `json:"httpServerIds"` // A list of HTTP server IDs to send a Webhook to
+ SNMP *bool `json:"snmp,omitempty"` // If true, then an SNMP trap will be sent if there is an SNMP trap server configured for this network.
}
type RequestNetworksUpdateNetworkAlertsSettingsMuting struct {
ByPortSchedules *RequestNetworksUpdateNetworkAlertsSettingsMutingByPortSchedules `json:"byPortSchedules,omitempty"` // Mute wireless unreachable alerts based on switch port schedules
Metadata
Metadata
Assignees
Labels
No labels