Replies: 1 comment 3 replies
-
Hi @magarjoba You need to remove extra first '/' to uri = '/api/v2/cmdb/system/virtual-switch' replace by uri = 'api/v2/cmdb/system/virtual-switch' and it will work (and no really need to support before FortiOS 6.0.x :D) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi
I need to check interfaces.
The most reliable option, as practice has shown, is whether they are part of the virtual switch interface or the physical switch.
I checked the API manually, downloaded the results, selected the values for the function. But I can't get the function to work.
option: 1
https://{ip_fgt}/api/v2/cmdb/system/virtual-switch
#Suitable for revision (6.0.5 - v7.2.5) i tested
option: 2
https://{ip_fgt}/api/v2/cmdb/system/switch-interface
#Suitable for olds revision (5.2.0- v5.2.15) i tested ))
Why in this case the redesigned function does not work., please tell me what the problem is..!?
Beta Was this translation helpful? Give feedback.
All reactions