Interface ISwitchWarmSpare
- Namespace
- Meraki.Api.Interfaces.Products.Switch
- Assembly
- Meraki.Api.dll
Represents a collection of functions to interact with the API endpoints
public interface ISwitchWarmSpare
Methods
GetDeviceSwitchWarmSpareAsync(string, CancellationToken)
Return warm spare configuration for a switch
[Get("/devices/{serial}/switch/warmSpare")]
Task<SwitchWarmSpare> GetDeviceSwitchWarmSpareAsync(string serial, CancellationToken cancellationToken = default)
Parameters
serial
stringThe serial number
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateDeviceSwitchWarmSpareAsync(string, SwitchWarmSpareUpdateRequest, CancellationToken)
Update warm spare configuration for a switch
[Put("/devices/{serial}/switch/warmSpare")]
Task<SwitchWarmSpare> UpdateDeviceSwitchWarmSpareAsync(string serial, SwitchWarmSpareUpdateRequest updateDeviceSwitchWarmSpare, CancellationToken cancellationToken = default)
Parameters
serial
stringThe serial number
updateDeviceSwitchWarmSpare
SwitchWarmSpareUpdateRequestcancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call