Table of Contents

Class IOrganizationSwitchPortsStatusesExtensions

Namespace
Meraki.Api.Extensions
Assembly
Meraki.Api.dll
public static class IOrganizationSwitchPortsStatusesExtensions
Inheritance
IOrganizationSwitchPortsStatusesExtensions
Inherited Members

Methods

GetOrganizationSwitchPortsStatusesBySwitchAllAsync(IOrganizationSwitches, string, string?, int?, List<string>?, List<string>?, string?, string?, List<string>?, string?, List<string>?, string?, CancellationToken)

List the switchports in an organization

public static Task<List<SwitchPortsStatusesBySwitch>> GetOrganizationSwitchPortsStatusesBySwitchAllAsync(this IOrganizationSwitches organizationSwitchPortsStatusesBySwitch, string organizationId, string? t0, int? timespan, List<string>? networkIds, List<string>? portProfileIds, string? name, string? mac, List<string>? macs, string? serial, List<string>? serials, string? configurationUpdatedAfter, CancellationToken cancellationToken = default)

Parameters

organizationSwitchPortsStatusesBySwitch IOrganizationSwitches
organizationId string

The organization id

t0 string

The beginning of the timespan for the data. The maximum lookback period is 31 days from today.

timespan int?

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

networkIds List<string>

Optional parameter to filter switchports by network.

portProfileIds List<string>

Optional parameter to filter switchports belonging to the specified port profiles

name string

Optional parameter to filter switchports belonging to switches by name. All returned switches will have a name that contains the search term or is an exact match.

mac string

Optional parameter to filter switchports belonging to switches by MAC address. All returned switches will have a MAC address that contains the search term or is an exact match.

macs List<string>

Optional parameter to filter switchports by one or more MAC addresses belonging to devices. All switchports returned belong to MAC addresses of switches that are an exact match.

serial string

Optional parameter to filter switchports belonging to switches by serial number. All returned switches will have a serial number that contains the search term or is an exact match.

serials List<string>

Optional parameter to filter switchports belonging to switches with one or more serial numbers. All switchports returned belong to serial numbers of switches that are an exact match.

configurationUpdatedAfter string

Optional parameter to filter results by switches where the configuration has been updated after the given timestamp

cancellationToken CancellationToken

Returns

Task<List<SwitchPortsStatusesBySwitch>>

Exceptions

ApiException

Thrown when fails to make API call