I have try another switch can got port information
{
"portId": "1_C9300-NM-8X_2",
"name": null,
"tags": [],
"enabled": true,
"poeEnabled": false,
"type": "trunk",
"vlan": 1,
"voiceVlan": null,
"allowedVlans": "1-1000",
"isolationEnabled": false,
"rstpEnabled": true,
"stpGuard": "disabled",
"linkNegotiation": "Auto negotiate",
"portScheduleId": null,
"schedule": null,
"udld": "Alert only",
"linkNegotiationCapabilities": [
"Auto negotiate"
],
but during try update this port it is fail
try:
response = dashboard.switch.updateDeviceSwitchPort(
ZA01SN,portId='1_C9300-NM-8X_2',
#stpGuard='bpdu guard',
name='Test'
)
Failed to retrieve alert settings: switch, updateDeviceSwitchPort - 404 Not Found, {'errors': ['Switch port not found']}