Create port with specific type
Hi,
Is it possible to create a port via the create/update switchport API call and specify the port type (Logical | Physical | Split) for the created port, or is it only possible to assign port types via the UI?
Whether I try to set the type parameter (to Logical) or not, it defaults to creating a physical interface, how can I make it create a Logical interface?
Ref: https://api.device42.com/#create-update-switch-ports (type parameter)
Thanks
-
Update: Upon further reading with the create/update switch ports API, the 'type' field referenced there is for custom port types (a field completely separate to Physical | Logical | Split port type field).
To clarify: I want to be able to set the 'Port Type' as Logical, Physical or Split type using the API. Not how to create and set the 'Type' field (see image below).0 -
I seem to have found that there is an undocumented port_type parameter to the API call that does what I want to do.
I would mark this ticket as resolved but I don't seem to be able to yet.0
Please sign in to leave a comment.
Comments
2 comments