Table of Contents

Class SwitchPortUpdateRequest

Namespace
Meraki.Api.Data
Assembly
Meraki.Api.dll

A device switch port update request

[DataContract]
public class SwitchPortUpdateRequest
Inheritance
SwitchPortUpdateRequest
Inherited Members

Properties

AccessPolicyNumber

The number of a custom access policy to configure on the switch port. Only applicable when 'accessPolicyType' is 'Custom access policy'

[DataMember(Name = "accessPolicyNumber")]
public int? AccessPolicyNumber { get; set; }

Property Value

int?

AccessPolicyType

The type of the access policy of the switch port. Only applicable to access ports. Can be one of 'Open', 'Custom access policy', 'MAC allow list' or 'Sticky MAC allow list'

[DataMember(Name = "accessPolicyType")]
public string? AccessPolicyType { get; set; }

Property Value

string

AdaptivePolicyGroupId

The adaptive policy group ID that will be used to tag traffic through this switch port. This ID must pre-exist during the configuration, else needs to be created using adaptivePolicy/groups API. Cannot be applied to a port on a switch bound to profile.

[DataMember(Name = "adaptivePolicyGroupId")]
public string? AdaptivePolicyGroupId { get; set; }

Property Value

string

AllowedVlans

The VLANs allowed on the switch port. Only applicable to trunk ports.

[DataMember(Name = "allowedVlans")]
public string? AllowedVlans { get; set; }

Property Value

string

DaiTrusted

If true, ARP packets for this port will be considered trusted, and Dynamic ARP Inspection will allow the traffic.

[DataMember(Name = "daiTrusted")]
public bool? DaiTrusted { get; set; }

Property Value

bool?

Dot3az

dot3az settings for the port

[DataMember(Name = "dot3az")]
public SwitchPortDot3az? Dot3az { get; set; }

Property Value

SwitchPortDot3az

Enabled

The status of the switch port

[DataMember(Name = "enabled")]
public bool? Enabled { get; set; }

Property Value

bool?

FlexibleStackingEnabled

For supported switches (e.g. MS420/MS425), whether or not the port has flexible stacking enabled.

[DataMember(Name = "flexibleStackingEnabled")]
public bool? FlexibleStackingEnabled { get; set; }

Property Value

bool?

IsolationEnabled

The isolation status of the switch port

[DataMember(Name = "isolationEnabled")]
public bool? IsolationEnabled { get; set; }

Property Value

bool?

LinkNegotiation

The link speed for the switch port

[DataMember(Name = "linkNegotiation")]
public string? LinkNegotiation { get; set; }

Property Value

string

MacAllowList

Only devices with MAC addresses specified in this list will have access to this port. Up to 20 MAC addresses can be defined. Only applicable when 'accessPolicyType' is 'MAC allow list'.

[DataMember(Name = "macAllowList")]
public List<string>? MacAllowList { get; set; }

Property Value

List<string>

Name

Port Name

[DataMember(Name = "name")]
public string? Name { get; set; }

Property Value

string

PeerSgtCapable

If true, Peer SGT is enabled for traffic through this switch port. Applicable to trunk port only, not access port. Cannot be applied to a port on a switch bound to profile.

[DataMember(Name = "peerSgtCapable")]
public bool? PeerSgtCapable { get; set; }

Property Value

bool?

PoeEnabled

The PoE status of the switch port

[DataMember(Name = "poeEnabled")]
public bool? PoeEnabled { get; set; }

Property Value

bool?

PortScheduleId

The ID of the port schedule. A value of null will clear the port schedule

[DataMember(Name = "portScheduleId")]
[JsonProperty(NullValueHandling = NullValueHandling.Include)]
public string? PortScheduleId { get; set; }

Property Value

string

Profile

Profile attributes

[DataMember(Name = "profile")]
public SwitchPortProfile? Profile { get; set; }

Property Value

SwitchPortProfile

RstpEnabled

The rapid spanning tree protocol status

[DataMember(Name = "rstpEnabled")]
public bool? RstpEnabled { get; set; }

Property Value

bool?

StickyMacAllowList

The initial list of MAC addresses for sticky Mac allow list. Only applicable when 'accessPolicyType' is 'Sticky MAC allow list'

[DataMember(Name = "stickyMacAllowList")]
public List<string>? StickyMacAllowList { get; set; }

Property Value

List<string>

StickyMacAllowListLimit

The maximum number of MAC addresses for sticky MAC allow list. Only applicable when 'accessPolicyType' is 'Sticky MAC allow list'

[DataMember(Name = "stickyMacAllowListLimit")]
public int? StickyMacAllowListLimit { get; set; }

Property Value

int?

StormControlEnabled

The storm control status of the switch port

[DataMember(Name = "stormControlEnabled")]
public bool? StormControlEnabled { get; set; }

Property Value

bool?

StpGuard

The state of the STP guard ('disabled', 'root guard', 'bpdu guard' or 'loop guard')

[DataMember(Name = "stpGuard")]
public string? StpGuard { get; set; }

Property Value

string

Tags

The list of tags of the switch port

[ApiAccess(ApiAccess.ReadUpdate)]
[DataMember(Name = "tags")]
public List<string>? Tags { get; set; }

Property Value

List<string>

Type

The type of the switch port ('trunk' or 'access')

[DataMember(Name = "type")]
public string? Type { get; set; }

Property Value

string

Udld

The action to take when Unidirectional Link is detected (Alert only, Enforce). Default configuration is Alert only.

[DataMember(Name = "udld")]
public string? Udld { get; set; }

Property Value

string

Vlan

The VLAN of the switch port. A null value will clear the value set for trunk ports.

[DataMember(Name = "vlan")]
[JsonProperty(NullValueHandling = NullValueHandling.Include)]
public int? Vlan { get; set; }

Property Value

int?

VoiceVlan

The voice VLAN of the switch port. Only applicable to access ports.

[DataMember(Name = "voiceVlan")]
public int? VoiceVlan { get; set; }

Property Value

int?