PowerFGT icon indicating copy to clipboard operation
PowerFGT copied to clipboard

address: Add geo(graphy) type (country) with example

Open alagoutte opened this issue 3 years ago • 8 comments

alagoutte avatar Jun 29 '22 19:06 alagoutte

Here is the error I was receiving after updating code.

image

hlroudjehane avatar Jun 30 '22 14:06 hlroudjehane

can you try

Add-FGTFirewallAddress -name FGT-Country-FI -country FI 

?

(Remove the extra Finland... or remove extra FGT-Country-FI ;-) and kept only finland =)

and use

Import-Module PowerFGT -Force

alagoutte avatar Jun 30 '22 16:06 alagoutte

Could you entertain a few questions for me please?

Is this an HTTP API? If so where did you learn how to build HTTP API’s If not what type of API is it and where did you learn to build it?

I appreciate your answers!

hlroudjehane avatar Jun 30 '22 18:06 hlroudjehane

Could you entertain a few questions for me please? Is this an HTTP API? If so where did you learn how to build HTTP API’s If not what type of API is it and where did you learn to build it? I appreciate your answers!

Yes, it is a HTTP API, you can search on Google a PDF FOS REST API reference for help to understand API or you can also look the code of this module (Connection.ps1 and RestMethod.ps1), there is also FNDN (but need an account validated by Fortinet...)

alagoutte avatar Jun 30 '22 19:06 alagoutte

/azp run

alagoutte avatar Sep 26 '22 01:09 alagoutte

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 26 '22 01:09 azure-pipelines[bot]

So my issue was that I created a new address.ps1 file and pasted the new code in there because I was getting permission denied when updated your original file. I found a way to update the code in there and save successfully. Odd though that a new file named address.ps1 didn’t work even though I renamed the old file address_old.ps1.

It ended up working though so thank you so much for your quick response and help with updating the API!

hlroudjehane avatar Oct 11 '22 09:10 hlroudjehane

So my issue was that I created a new address.ps1 file and pasted the new code in there because I was getting permission denied when updated your original file. I found a way to update the code in there and save successfully. Odd though that a new file named address.ps1 didn’t work even though I renamed the old file address_old.ps1. It ended up working though so thank you so much for your quick response and help with updating the API!

Thanks for feedback !

Sorry for delay, but the new release will be available on next month (not yet ETA...)

alagoutte avatar Oct 11 '22 11:10 alagoutte

/azp run

alagoutte avatar Dec 21 '22 07:12 alagoutte

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Dec 21 '22 07:12 azure-pipelines[bot]

/azp run

alagoutte avatar Jan 07 '23 12:01 alagoutte

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 07 '23 12:01 azure-pipelines[bot]

/azp run

alagoutte avatar Jan 28 '23 19:01 alagoutte

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jan 28 '23 19:01 azure-pipelines[bot]