Interface INetworksEvents
- Namespace
- Meraki.Api.Interfaces.General.Networks
- Assembly
- Meraki.Api.dll
public interface INetworksEvents
Methods
GetNetworkEventsAsync(string, string, List<string>, List<string>, string, string, string, string, string, string, string, string, string, string, bool, int?, string, string, CancellationToken)
List the events for the network
[Get("/networks/{networkId}/events")]
Task<NetworkEvents> GetNetworkEventsAsync(string networkId, string productType = null, List<string> includedEventTypes = null, List<string> excludedEventTypes = null, string deviceMac = null, string deviceSerial = null, string deviceName = null, string clientIp = null, string clientMac = null, string clientName = null, string smDeviceMac = null, string smDeviceName = null, string eventDetails = null, string eventSeverity = null, bool isCatalyst = false, int? perPage = 1000, string startingAfter = null, string endingBefore = null, CancellationToken cancellationToken = default)
Parameters
networkIdstringThe network id
productTypestringThe product type to fetch events for. This parameter is required for networks with multiple device types. Valid types are wireless, appliance, switch, systemsManager, camera, and cellularGateway (optional)
includedEventTypesList<string>A list of event types. The returned events will be filtered to only include events with these types. (optional)
excludedEventTypesList<string>A list of event types. The returned events will be filtered to exclude events with these types. (optional)
deviceMacstringThe MAC address of the Meraki device which the list of events will be filtered with (optional)
deviceSerialstringThe serial of the Meraki device which the list of events will be filtered with (optional)
deviceNamestringThe name of the Meraki device which the list of events will be filtered with (optional)
clientIpstringThe IP of the client which the list of events will be filtered with. Only supported for track-by-IP networks. (optional)
clientMacstringThe MAC address of the client which the list of events will be filtered with. Only supported for track-by-MAC networks. (optional)
clientNamestringThe name, or partial name, of the client which the list of events will be filtered with (optional)
smDeviceMacstringThe MAC address of the Systems Manager device which the list of events will be filtered with (optional)
smDeviceNamestringThe name of the Systems Manager device which the list of events will be filtered with (optional)
eventDetailsstringThe details of the event(Catalyst device only) which the list of events will be filtered with
eventSeveritystringThe severity of the event(Catalyst device only) which the list of events will be filtered with
isCatalystboolBoolean indicating that whether it is a Catalyst device. For Calatyst device, eventDetails and eventSeverity can be used to filter events.
perPageint?The number of entries per page returned. Acceptable range is 3 - 1000. Default is 10. (optional)
startingAfterstringA token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. (optional)
endingBeforestringA token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. (optional)
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call