Table of Contents

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 string

The serial number

cancellationToken CancellationToken

Returns

Task<SwitchWarmSpare>

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 string

The serial number

updateDeviceSwitchWarmSpare SwitchWarmSpareUpdateRequest
cancellationToken CancellationToken

Returns

Task<SwitchWarmSpare>

Exceptions

ApiException

Thrown when fails to make API call