Interface IApplianceStaticRoutes
- Namespace
- Meraki.Api.Interfaces.Products.Appliance
- Assembly
- Meraki.Api.dll
public interface IApplianceStaticRoutes
Methods
CreateNetworkApplianceStaticRouteAsync(string, StaticRouteCreationRequest, CancellationToken)
Add a static route for an MX or teleworker network
[Post("/networks/{networkId}/appliance/staticRoutes")]
Task<StaticRoute> CreateNetworkApplianceStaticRouteAsync(string networkId, StaticRouteCreationRequest createNetworkStaticRoute, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
createNetworkStaticRoute
StaticRouteCreationRequestBody for adding a static route
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
DeleteNetworkApplianceStaticRouteAsync(string, string, CancellationToken)
Delete a static route from an MX or teleworker network
[Delete("/networks/{networkId}/appliance/staticRoutes/{staticRouteId}")]
Task DeleteNetworkApplianceStaticRouteAsync(string networkId, string staticRouteId, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
staticRouteId
stringThe static route id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetNetworkApplianceStaticRouteAsync(string, string, CancellationToken)
Return a static route for an MX or teleworker network
[Get("/networks/{networkId}/appliance/staticRoutes/{staticRouteId}")]
Task<StaticRoute> GetNetworkApplianceStaticRouteAsync(string networkId, string staticRouteId, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
staticRouteId
stringThe static route id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetNetworkApplianceStaticRoutesAsync(string, CancellationToken)
List the static routes for an MX or teleworker network
[Get("/networks/{networkId}/appliance/staticRoutes")]
Task<List<StaticRoute>> GetNetworkApplianceStaticRoutesAsync(string networkId, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateNetworkApplianceStaticRouteAsync(string, string, StaticRouteUpdateRequest, CancellationToken)
Update a static route for an MX or teleworker network
[Put("/networks/{networkId}/appliance/staticRoutes/{staticRouteId}")]
Task<StaticRoute> UpdateNetworkApplianceStaticRouteAsync(string networkId, string staticRouteId, StaticRouteUpdateRequest updateNetworkStaticRoute, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
staticRouteId
stringThe static route id
updateNetworkStaticRoute
StaticRouteUpdateRequestBody for updating a static route
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call