Table of Contents

Class ISwitchPortsBySwitchExtensions

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

Methods

GetOrganizationSwitchPortsBySwitchAllAsync(IOrganizationSwitches, string, string?, List<string>?, string?, string?, string?, List<string>?, List<string>?, CancellationToken)

Get All Switchports in an organization

public static Task<List<SwitchPortsBySwitch>> GetOrganizationSwitchPortsBySwitchAllAsync(this IOrganizationSwitches switchPortsBySwitch, string organizationId, string? configurationUpdatedAfter = null, List<string>? networkIds = null, string? name = null, string? mac = null, string? serial = null, List<string>? serials = null, List<string>? macs = null, CancellationToken cancellationToken = default)

Parameters

switchPortsBySwitch IOrganizationSwitches
organizationId string

The organization id

configurationUpdatedAfter string

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

networkIds List<string>

Optional parameter to filter switchports by network.

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.

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.

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.

cancellationToken CancellationToken

Returns

Task<List<SwitchPortsBySwitch>>

Exceptions

ApiException

Thrown when fails to make API call