Interface ISwitchLinkAggregations
- Namespace
- Meraki.Api.Interfaces.Products.Switch
- Assembly
- Meraki.Api.dll
Represents a collection of functions to interact with the API endpoints
public interface ISwitchLinkAggregations
Methods
CreateNetworkSwitchLinkAggregationAsync(string, SwitchLinkAggregation, CancellationToken)
Create a link aggregation group
[Post("/networks/{networkId}/switch/linkAggregations")]
Task<SwitchLinkAggregation> CreateNetworkSwitchLinkAggregationAsync(string networkId, SwitchLinkAggregation createNetworkSwitchLinkAggregation, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
createNetworkSwitchLinkAggregation
SwitchLinkAggregationBody for creating a link aggregation group
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
DeleteNetworkSwitchLinkAggregationAsync(string, string, CancellationToken)
Split a link aggregation group into separate ports
[Delete("/networks/{networkId}/switch/linkAggregations/{linkAggregationId}")]
Task DeleteNetworkSwitchLinkAggregationAsync(string networkId, string linkAggregationId, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
linkAggregationId
stringThe link aggregation id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetNetworkSwitchLinkAggregationsAsync(string, CancellationToken)
List link aggregation groups
[Get("/networks/{networkId}/switch/linkAggregations")]
Task<List<SwitchLinkAggregation>> GetNetworkSwitchLinkAggregationsAsync(string networkId, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateNetworkSwitchLinkAggregationAsync(string, string, SwitchLinkAggregation, CancellationToken)
Update a link aggregation group
[Put("/networks/{networkId}/switch/linkAggregations/{linkAggregationId}")]
Task<SwitchLinkAggregation> UpdateNetworkSwitchLinkAggregationAsync(string networkId, string linkAggregationId, SwitchLinkAggregation updateNetworkSwitchLinkAggregation, CancellationToken cancellationToken = default)
Parameters
networkId
stringThe network id
linkAggregationId
stringThe link aggregation id
updateNetworkSwitchLinkAggregation
SwitchLinkAggregationBody for updating a link aggregation group
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call