Interface ISwitchPortSchedules
- Namespace
- Meraki.Api.Interfaces.Products.Switch
- Assembly
- Meraki.Api.dll
Represents a collection of functions to interact with the API endpoints
public interface ISwitchPortSchedules
Methods
CreateNetworkSwitchPortScheduleAsync(string, SwitchPortScheduleCreationRequest, CancellationToken)
Add a switch port schedule
[Post("/networks/{networkId}/switch/portSchedules")]
Task<SwitchPortSchedule> CreateNetworkSwitchPortScheduleAsync(string networkId, SwitchPortScheduleCreationRequest createNetworkSwitchPortSchedule, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
createNetworkSwitchPortSchedule
SwitchPortScheduleCreationRequestcancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
DeleteNetworkSwitchPortScheduleAsync(string, string, CancellationToken)
Delete a switch port schedule
[Delete("/networks/{networkId}/switch/portSchedules/{portScheduleId}")]
Task DeleteNetworkSwitchPortScheduleAsync(string networkId, string portScheduleId, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
portScheduleId
stringThe port schedule id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetNetworkSwitchPortSchedulesAsync(string, CancellationToken)
List switch port schedules
[Get("/networks/{networkId}/switch/portSchedules")]
Task<List<SwitchPortSchedule>> GetNetworkSwitchPortSchedulesAsync(string networkId, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateNetworkSwitchPortScheduleAsync(string, string, SwitchPortScheduleCreationRequest, CancellationToken)
Update a switch port schedule
[Put("/networks/{networkId}/switch/portSchedules/{portScheduleId}")]
Task<SwitchPortSchedule> UpdateNetworkSwitchPortScheduleAsync(string networkId, string portScheduleId, SwitchPortScheduleCreationRequest updateNetworkSwitchPortSchedule, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
portScheduleId
stringThe port schedule id
updateNetworkSwitchPortSchedule
SwitchPortScheduleCreationRequestcancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call