Table of Contents

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 string

The network id

createNetworkStaticRoute StaticRouteCreationRequest

Body for adding a static route

cancellationToken CancellationToken

Returns

Task<StaticRoute>

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 string

The network id

staticRouteId string

The static route id

cancellationToken CancellationToken

Returns

Task

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 string

The network id

staticRouteId string

The static route id

cancellationToken CancellationToken

Returns

Task<StaticRoute>

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 string

The network id

cancellationToken CancellationToken

Returns

Task<List<StaticRoute>>

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 string

The network id

staticRouteId string

The static route id

updateNetworkStaticRoute StaticRouteUpdateRequest

Body for updating a static route

cancellationToken CancellationToken

Returns

Task<StaticRoute>

Exceptions

ApiException

Thrown when fails to make API call