Table of Contents

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

networkId string

Network ID

networksSwitchPortsProfile NetworksSwitchPortsProfileCreateRequest
cancellationToken CancellationToken

Cancellation Token

Returns

Task<NetworksSwitchPortsProfile>

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

networkId string

Network ID

id string

Id of swith port profile

cancellationToken CancellationToken

Cancellation Token

Returns

Task<string>

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

networkId string

Network ID

cancellationToken CancellationToken

Cancellation Token

Returns

Task<List<NetworksSwitchPortsProfile>>

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

networkId string

Network ID

id string

Id of swith port profile

networksSwitchPortsProfile NetworksSwitchPortsProfileUpdateRequest
cancellationToken CancellationToken

Cancellation Token

Returns

Task<NetworksSwitchPortsProfile>

Exceptions

ApiException

Thrown when fails to make API call