Open FranVoz opened 8 months ago
What fortimanager release ?
FortiManager-VM64 v7.0.11 GA build0595
Do you have following the connexion procedure ? And add api json access to your user ?
https://github.com/FortiPower/PowerFMG?tab=readme-ov-file#connecting-to-the-fortimanager
Yes I sure did, Connection is OK and getting info is OK too but making changes is not, as I said it seems you need to lock the adom before doing any changes (as you have to do too if you do manual changes using the GUI)
Yes I sure did, Connection is OK and getting info is OK too but making changes is not, as I said it seems you need to lock the adom before doing any changes (as you have to do too if you do manual changes using the GUI)
the module have limited supported feature, you need to found the API call for enable this feature
so this module commands like Remove-FMGFirewallAddress are not working on current FGM releases.
so this module commands like Remove-FMGFirewallAddress are not working on current FGM releases.
You have an error message ?
Unable to use FortiManager API (-11) No permission for the resource
Au caractère C:\Program Files\WindowsPowerShell\Modules\PowerFMG\0.1.0\Private\RestMethod.ps1:184 : 13
+ throw "Unable to use FortiManager API (" + $response.resu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to use F...or the resource:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to use FortiManager API (-11) No permission for the resource
I think It is related to a certain adom mode that could be configured as "workflow" or "workspace" mode I'll do some tests and come back if I find some info.
Hello, is this still supposed to work ?
it seems you need to lock the adom where you want to make changes now or else you get and error saying
"Unable to use FortiManager API (-11) No permission for the resource"
thanks.