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
switchPortsBySwitchIOrganizationSwitchesorganizationIdstringThe organization id
configurationUpdatedAfterstringOptional parameter to filter results by switches where the configuration has been updated after the given timestamp
networkIdsList<string>Optional parameter to filter switchports by network.
namestringOptional 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.
macstringOptional 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.
serialstringOptional 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.
serialsList<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.
macsList<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.
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call