Table of Contents

Interface IOrganizationsSummarySwitchPower

Namespace
Meraki.Api.Interfaces.General.Organizations
Assembly
Meraki.Api.dll

Organizations Summary

public interface IOrganizationsSummarySwitchPower

Methods

GetOrganizationSummarySwitchPowerHistoryAsync(string, string?, string?, double?, CancellationToken)

Returns the total PoE power draw for all switch ports in the organization over the requested timespan (by default the last 24 hours). The returned array is a newest-first list of intervals. The time between intervals depends on the requested timespan with 20 minute intervals used for timespans up to 1 day, 4 hour intervals used for timespans up to 2 weeks, and 1 day intervals for timespans larger than 2 weeks.

[Get("/organizations/{organizationId}/summary/switch/power/history")]
Task<List<SwitchPowerHistorySummary>> GetOrganizationSummarySwitchPowerHistoryAsync(string organizationId, string? t0 = null, string? t1 = null, double? timespan = null, CancellationToken cancellationToken = default)

Parameters

organizationId string

The organization id

t0 string

The beginning of the timespan for the data.

t1 string

The end of the timespan for the data. t1 can be a maximum of 31 days after t0.

timespan double?

The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day. Maximum = 2678400

cancellationToken CancellationToken

Returns

Task<List<SwitchPowerHistorySummary>>

Exceptions

ApiException

Thrown when fails to make API call