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

Not working anymore #10

Open
FranVoz opened this issue Mar 13, 2024 · 9 comments
Open

Not working anymore #10

FranVoz opened this issue Mar 13, 2024 · 9 comments

Comments

@FranVoz
Copy link

FranVoz commented Mar 13, 2024

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.

@alagoutte
Copy link
Contributor

What fortimanager release ?

@FranVoz
Copy link
Author

FranVoz commented Mar 14, 2024

FortiManager-VM64
v7.0.11 GA build0595

@alagoutte
Copy link
Contributor

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

@FranVoz
Copy link
Author

FranVoz commented Mar 14, 2024

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)

@alagoutte
Copy link
Contributor

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

@FranVoz
Copy link
Author

FranVoz commented Mar 18, 2024

so this module commands like Remove-FMGFirewallAddress are not working on current FGM releases.

@alagoutte
Copy link
Contributor

so this module commands like Remove-FMGFirewallAddress are not working on current FGM releases.

You have an error message ?

@FranVoz
Copy link
Author

FranVoz commented Mar 19, 2024

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
```

@FranVoz
Copy link
Author

FranVoz commented Mar 19, 2024

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.

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