Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
ferio23
New Contributor

FortiManager "Default Variables" accessible via Jinja/CLI script?

Haven't found any docs on this. Can I access default Meta Fields from devices via Jinja/CLI scripting.

I would love to use the following: Location, Device Name, FortiGate Model etc.

Right now I'm leveraging custom fields for this (a custom fortigate model meta field) which to me is redundant, since fortimanager already has that info, why would I need to enter that manually...

omegle xender
1 REPLY 1
gfleming
Staff
Staff

It looks possible if you explore /dvmdb/device, there's a get method where you can specify "meta fields" parameter to retrieve those fields.

 

Explore the documentation on https://fndn.fortinet.net for more details.

Cheers,
Graham
Labels
Top Kudoed Authors