Interface INetworksSwitchPorts
- Namespace
- Meraki.Api.Interfaces.General.Networks
- Assembly
- Meraki.Api.dll
I Networks Switch Ports
public interface INetworksSwitchPorts
Methods
CreateNetworkSwitchPortsProfileAsync(string, NetworksSwitchPortsProfileCreateRequest, CancellationToken)
Create a port profile in a network
[Post("/networks/{networkId}/switch/ports/profiles")]
Task<NetworksSwitchPortsProfile> CreateNetworkSwitchPortsProfileAsync(string networkId, NetworksSwitchPortsProfileCreateRequest networksSwitchPortsProfile, CancellationToken cancellationToken = default)
Parameters
networkIdstringNetwork ID
networksSwitchPortsProfileNetworksSwitchPortsProfileCreateRequestcancellationTokenCancellationTokenCancellation Token
Returns
Exceptions
- ApiException
Thrown when fails to make API call
DeleteNetworkSwitchPortsProfileAsync(string, string, CancellationToken)
Delete a port profile from a network
[Delete("/networks/{networkId}/switch/ports/profiles/{id}")]
Task<string> DeleteNetworkSwitchPortsProfileAsync(string networkId, string id, CancellationToken cancellationToken = default)
Parameters
networkIdstringNetwork ID
idstringId of swith port profile
cancellationTokenCancellationTokenCancellation Token
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetNetworkSwitchPortsProfilesAsync(string, CancellationToken)
List the port profiles in a network
[Get("/networks/{networkId}/switch/ports/profiles")]
Task<List<NetworksSwitchPortsProfile>> GetNetworkSwitchPortsProfilesAsync(string networkId, CancellationToken cancellationToken = default)
Parameters
networkIdstringNetwork ID
cancellationTokenCancellationTokenCancellation Token
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateNetworkSwitchPortsProfileAsync(string, string, NetworksSwitchPortsProfileUpdateRequest, CancellationToken)
Update a port profile in a network
[Put("/networks/{networkId}/switch/ports/profiles/{id}")]
Task<NetworksSwitchPortsProfile> UpdateNetworkSwitchPortsProfileAsync(string networkId, string id, NetworksSwitchPortsProfileUpdateRequest networksSwitchPortsProfile, CancellationToken cancellationToken = default)
Parameters
networkIdstringNetwork ID
idstringId of swith port profile
networksSwitchPortsProfileNetworksSwitchPortsProfileUpdateRequestcancellationTokenCancellationTokenCancellation Token
Returns
Exceptions
- ApiException
Thrown when fails to make API call