Interface ICellularGatewayPortForwardingRules
- Namespace
- Meraki.Api.Interfaces.Products.CellularGateway
- Assembly
- Meraki.Api.dll
Represents a collection of functions to interact with the API endpoints
public interface ICellularGatewayPortForwardingRules
Methods
GetDeviceCellularGatewayPortForwardingRulesAsync(string, CancellationToken)
Returns the port forwarding rules for a single MG.
[Get("/devices/{serial}/cellularGateway/portForwardingRules")]
Task<CellularGatewayPortForwardingRules> GetDeviceCellularGatewayPortForwardingRulesAsync(string serial, CancellationToken cancellationToken = default)
Parameters
serial
stringThe serial number
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateDeviceCellularGatewayPortForwardingRulesAsync(string, CellularGatewayPortForwardingRules, CancellationToken)
Updates the port forwarding rules for a single MG.
[Put("/devices/{serial}/cellularGateway/portForwardingRules")]
Task<CellularGatewayPortForwardingRules> UpdateDeviceCellularGatewayPortForwardingRulesAsync(string serial, CellularGatewayPortForwardingRules updateDeviceCellularGatewaySettingsPortForwardingRules, CancellationToken cancellationToken = default)
Parameters
serial
stringThe serial number
updateDeviceCellularGatewaySettingsPortForwardingRules
CellularGatewayPortForwardingRulesBody for updating port forwarding rules
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call