Class IApplianceVpnStatsExtensions
- Namespace
- Meraki.Api.Extensions
- Assembly
- Meraki.Api.dll
Provides extension methods for retrieving VPN statistics from appliance VPN interfaces.
public static class IApplianceVpnStatsExtensions
- Inheritance
-
IApplianceVpnStatsExtensions
- Inherited Members
Remarks
This static class contains methods that extend the functionality of the IApplianceVpnStats interface, enabling asynchronous retrieval of VPN statistics for organizations and networks.
Methods
GetOrganizationApplianceVpnStatsAllAsync(IApplianceVpnStats, string, string?, string?, double?, List<string>?, CancellationToken)
Retrieves VPN statistics for all networks in the specified organization.
public static Task<List<VpnStats>> GetOrganizationApplianceVpnStatsAllAsync(this IApplianceVpnStats applianceVpnStats, string organizationId, string? t0 = null, string? t1 = null, double? timespan = null, List<string>? networkIds = null, CancellationToken cancellationToken = default)
Parameters
applianceVpnStatsIApplianceVpnStatsThe interface used to access appliance VPN statistics.
organizationIdstringThe unique identifier of the organization for which VPN statistics are retrieved. Cannot be null or empty.
t0stringThe start time for the statistics, in ISO 8601 format. If null, the time range is determined by
timespan.t1stringThe end time for the statistics, in ISO 8601 format. If null, the time range is determined by
timespan.timespandouble?The duration, in seconds, for which statistics are retrieved. If specified,
t0andt1must be null.networkIdsList<string>A list of network IDs to filter the statistics. If null, statistics for all networks in the organization are retrieved.
cancellationTokenCancellationTokenA token to monitor for cancellation requests. Defaults to None.
Returns
- Task<List<VpnStats>>
A task that represents the asynchronous operation. The task result contains a list of VpnStats objects representing the VPN statistics for the specified organization.
Remarks
This method asynchronously fetches VPN statistics for all networks within the given organization. The statistics can be filtered by a specific time range or timespan, and optionally by a list of network IDs.