Table of Contents

Class ConfigTemplateSwitchProfilePort

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

Switch profile port

[DataContract]
public class ConfigTemplateSwitchProfilePort : NamedItem
Inheritance
ConfigTemplateSwitchProfilePort
Inherited Members

Properties

AccessPolicyNumber

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

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

Property Value

int?

AccessPolicyType

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

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

Property Value

AccessPolicyType?

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.

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

Property Value

string

AllowedVlans

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

[ApiAccess(ApiAccess.ReadUpdate)]
[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.

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

Property Value

bool?

Dot3az

dot3az settings for the port

[ApiAccess(ApiAccess.ReadUpdate)]
[DataMember(Name = "dot3az")]
public ConfigTemplateSwitchProfilePortDot3az? Dot3az { get; set; }

Property Value

ConfigTemplateSwitchProfilePortDot3az

Enabled

The status of the switch profile port

[ApiAccess(ApiAccess.ReadUpdate)]
[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.

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

Property Value

bool?

IsolationEnabled

The isolation status of the switch profile port

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

Property Value

bool

LinkNegotiation

The link speed for the switch profile port

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

Property Value

string

LinkNegotiationCapabilities

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "linkNegotiationCapabilities")]
public List<string>? LinkNegotiationCapabilities { get; set; }

Property Value

List<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'.

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

Property Value

List<string>

Mirror

Mirror

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "mirror")]
public SwitchPortMirror? Mirror { get; set; }

Property Value

SwitchPortMirror

Module

Module

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "module")]
public SwitchPortModule? Module { get; set; }

Property Value

SwitchPortModule

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.

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

Property Value

bool?

PoeEnabled

The PoE status of the switch profile port

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

Property Value

bool

PortId

Port Id

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "portId")]
public string PortId { get; set; }

Property Value

string

PortScheduleId

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

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

Property Value

string

Profile

Profile attributes

[ApiAccess(ApiAccess.ReadUpdate)]
[DataMember(Name = "profile")]
public ConfigTemplateSwitchProfilePortProfile? Profile { get; set; }

Property Value

ConfigTemplateSwitchProfilePortProfile

RstpEnabled

The rapid spanning tree protocol status

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

Property Value

bool

Schedule

The schedule assigned to the port - Undocumented

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "schedule")]
public SwitchPortAssignedSchedule? Schedule { get; set; }

Property Value

SwitchPortAssignedSchedule

StackwiseVirtual

Stackwise Virtual settings for the port

[ApiAccess(ApiAccess.Read)]
[DataMember(Name = "stackwiseVirtual")]
public SwitchPortStackwiseVirtual? StackwiseVirtual { get; set; }

Property Value

SwitchPortStackwiseVirtual

StickyMacAllowList

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

[ApiAccess(ApiAccess.ReadUpdate)]
[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'

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

Property Value

int?

StormControlEnabled

The storm control status of the switch profile port

[ApiAccess(ApiAccess.ReadUpdate)]
[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')

[ApiAccess(ApiAccess.ReadUpdate)]
[DataMember(Name = "stpGuard")]
public StpGuard StpGuard { get; set; }

Property Value

StpGuard

Tags

The list of tags of the switch profile port

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

Property Value

List<string>

Type

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

[ApiAccess(ApiAccess.ReadUpdate)]
[DataMember(Name = "type")]
public SwitchPortType Type { get; set; }

Property Value

SwitchPortType

Udld

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

[ApiAccess(ApiAccess.ReadUpdate)]
[DataMember(Name = "udld")]
public Udld Udld { get; set; }

Property Value

Udld

Vlan

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

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

Property Value

int?

VoiceVlan

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

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

Property Value

int?