networktocode / fortimanager-ansible

Ansible Modules to manage Fortinet FortiManager
Other
65 stars 34 forks source link

Get configuration of managed FortiGates in running-config format #55

Closed phandox closed 6 years ago

phandox commented 6 years ago

Hello,

I've used fortimgr_facts to get configuration of FortiGate managed by FortiManager, however I get it in dictionary format of Ansible. Is it possible to get the output in the same format as you would get when you issues show command on FortiGate? I would like to use Ansible to download the configurations of FortiGates from FortiManager (I can access the configuration via UI in Device Manager -> Revision History -> Show Configuration). When I get this output I can use it to restore configuration in case of changing hardware.

Thanks.

jmcgill298 commented 6 years ago

What is the rpc url to access this info with the api?

phandox commented 6 years ago

Unfortunatelly I don't have access to Fortinet Developer Network so I can't tell you which RPC URL would that be...

jmcgill298 commented 6 years ago

I have looked through the API documentation, and I do not see anything available to retrieve the info you are looking for. If you have a support contract with Fortinet, then maybe you can ask through the support channel.

jmcgill298 commented 6 years ago

@phandox any luck going through your support contract?

phandox commented 6 years ago

Hi, sorry for late answer. No luck from Fortinet support, they just directed me to executing scripts directly on FortiManager...