Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Get Cmdlet for /wireless-controller and /switch-controller? #292

Open
msoukhomlinov opened this issue Jan 20, 2025 · 6 comments
Open

Comments

@msoukhomlinov
Copy link

Hi, are there any plans to add support for working with FortiAP and FortiSwitch endpoints?

Context: We are looking to enhance the Fortigate As Built PowerShell module to include this information, so I wanted to ask here.

Cheers,
Max

@alagoutte
Copy link
Contributor

Hi Max,

You are the first to ask to add this :) do you have the list of URI needed to add ?
it will be easy to add Get function

@msoukhomlinov
Copy link
Author

msoukhomlinov commented Jan 20, 2025

For the purposes of As built documentation, so far I am thinking of these:
This module is a bit more complex than the As Built module so I am more hesitant doing a pull request.

FortiAP

GET

  • /wireless-controller/global
  • /wireless-controller/setting
  • /wireless-controller/ssid-policy
  • /wireless-controller/ssid-policy/{name}
  • /wireless-controller/vap
  • /wireless-controller/vap/{name}
  • /wireless-controller/vap-group
  • /wireless-controller/vap-group/{name}
  • /wireless-controller/wag-profile
  • /wireless-controller/wag-profile/{name}
  • /wireless-controller/wtp
  • /wireless-controller/wtp/{wtp-id}
  • /wireless-controller/wtp-group
  • /wireless-controller/wtp-group/{name}
  • /wireless-controller/wtp-profile
  • /wireless-controller/wtp-profile/{name}

https://fndn.fortinet.net/index.php?/fortiapi/1-fortios/4705/1/wireless-controller/

FortiSwitch

GET

  • /switch-controller/fortilink-settings
  • /switch-controller/fortilink-settings/{name}
  • /switch-controller/global
  • /switch-controller/managed-switch
  • /switch-controller/managed-switch/{switch-id}
  • /switch-controller/switch-profile
  • /switch-controller/switch-profile/{name}
  • /switch-controller/system
  • /switch-controller/lldp-settings
  • /switch-controller/vlan-policy
  • /switch-controller/vlan-policy/{name}
  • /switch-controller/switch-group
  • /switch-controller/switch-group/{name}
  • /switch-controller/stp-settings
  • /switch-controller/stp-instance
  • /switch-controller/stp-instance/{id}
  • /switch-controller/snmp-community
  • /switch-controller/snmp-community/{id}
  • /switch-controller/lldp-profile
  • /switch-controller/lldp-profile/{name}

https://fndn.fortinet.net/index.php?/fortiapi/1-fortios/4705/1/switch-controller/

@alagoutte
Copy link
Contributor

it is a lot of GET but it will possible :)

@msoukhomlinov
Copy link
Author

If you dont mind to get one (for each FAP and Switches) of them started and I'll do the rest.

@alagoutte
Copy link
Contributor

May be also add some monitor API call ?

@msoukhomlinov
Copy link
Author

@alagoutte , I thought that maybe useful but none jumped out at be as 100% worth while.
If you can, add one of them and I'll crack on with others as they are needed.

@alagoutte alagoutte changed the title Support for /wireless-controller and /switch-controller? Add Get Cmdlet for /wireless-controller and /switch-controller? Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants