11-06-2025 05:07 AM
We are using a couple of different access policy to secure our ports with NAC.
I want to get the config of the ports through API but it can't see access policy in the list.
This is the output but the accessPolicyType is open while there is a custom access policy on the port
portId : 25
name :
tags : {}
enabled : True
poeEnabled : True
type : trunk
vlan : 1
voiceVlan :
allowedVlans : all
isolationEnabled : False
rstpEnabled : True
stpGuard : disabled
linkNegotiation : Auto negotiate
portScheduleId :
schedule :
udld : Alert only
linkNegotiationCapabilities : {Auto negotiate, 1 Gigabit full duplex (forced), 100 Megabit (auto), 100 Megabit half duplex (forced)…}
accessPolicyType : Open
daiTrusted : False
profile : @{enabled=False; id=; iname=}
module : @{model=}
mirror : @{mode=Not mirroring traffic}
11-06-2025 05:22 AM
that's not possible. Trunk ports do not support Access policy. You either have the wrong port or something is wrong with your config.
11-06-2025 05:25 AM
this is the port in console, so it's not a trunk
11-06-2025 05:56 AM
And you are sure this is port 25 ?
11-13-2025 12:48 AM
Yes, that's the strange thing. The api doesn't match with the gui, or real live.
Or i'm questioning the wrong api.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide