Skip to main content
filiaks1
Explorer III
Dec 17, 2025 10:00 AM UTC
Solved

Does FortiADC support Declarative API for VirtualServers?

Hello Everyone,

 

I see that  /api/declarative is desribed in fortinetweb.s3.amazonaws.com/docs.fortinet.com/v2/attachments/7a380719-1f54-11ed-9eba-fa163e15d75b/fortiadc-v7.1.0-handbook.pdf

 

The example is for posting system configuration (Simmilar to F5 DO declarative onboarding) but what about Virtual Servers to be created declaratively ? Something like F5 AS3 way to deploy Virtual Servers.

 

Also is there such options for the WAF?

filiaks1
filiaks1Answer
Explorer III
Jun 9, 2026 7:13 AM UTC

After playing a while with FortiADC and being granted access to the Developer Portal FortiADC Declarative API is a gem ! It can be used to automate system config and VDOM creation and then Declarative API can be used to populate the data for each individual VDOM as if there is a need for multitenancy. In each VDOM declaration there will be the needed config for the virtual servers.

 

For system settings it is like ZTP feature the only thing is FortiADC should DHCP on the management/first interface enabled by default in the future versions and this becomes ZTP provisioning tool. 

 

You can even do manual changes and the fortiadc is aware of them and you can just GET the new config as to save it in FortiADC declaration as to keep the changes.

 

Fortinet really needs to publicly advertise this feature more and I hope for the WAF there to be something like this in the future where you can push the full policy in a single API declaration. 

7 replies

Jean-Philippe_P
Staff & Editor
Staff & Editor
Dec 20, 2025 1:37 PM UTC

Hello filiaks1, 

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible. 

Translate
Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Staff & Editor
Staff & Editor
Dec 22, 2025 1:11 PM UTC

Hello,

 

We are still looking for an answer to your question.

 

We will come back to you ASAP.

Translate
Jean-Philippe - Fortinet Community Team
filiaks1
filiaks1Author
Explorer III
Jan 4, 2026 8:44 PM UTC

Hey @Jean-Philippe_P  no need to come back at me ASAP but as "/api/declarative " is described in the fortiadc docks there should be some more info about it :)

 

Does it support VirtualServer definitions so that automations like terraform or ansible to send just 1 API call and not 10 to configure a virtual server or if when a new virtualserver is added the system to not need to the full config again to be send and validated but just the part having the new virtualserver (to keep a state) etc.

Translate
Jean-Philippe_P
Staff & Editor
Staff & Editor
Jan 5, 2026 10:42 AM UTC

Okay filiaks1,

 

I have forwarded your request to our docs Team so they can update the doc with this new information if possible :)

 

I will let you know!

Translate
Jean-Philippe - Fortinet Community Team
filiaks1
filiaks1Author
Explorer III
Jan 5, 2026 12:26 PM UTC

Thanks @Jean-Philippe_P 

Translate
filiaks1
filiaks1AuthorAnswer
Explorer III
Jun 9, 2026 7:13 AM UTC

After playing a while with FortiADC and being granted access to the Developer Portal FortiADC Declarative API is a gem ! It can be used to automate system config and VDOM creation and then Declarative API can be used to populate the data for each individual VDOM as if there is a need for multitenancy. In each VDOM declaration there will be the needed config for the virtual servers.

 

For system settings it is like ZTP feature the only thing is FortiADC should DHCP on the management/first interface enabled by default in the future versions and this becomes ZTP provisioning tool. 

 

You can even do manual changes and the fortiadc is aware of them and you can just GET the new config as to save it in FortiADC declaration as to keep the changes.

 

Fortinet really needs to publicly advertise this feature more and I hope for the WAF there to be something like this in the future where you can push the full policy in a single API declaration. 

Translate
filiaks1
filiaks1Author
Explorer III
Jun 11, 2026 1:03 PM UTC

Example cool GET request as with operations parameter you can get the date only for vdom/virtualServer/realServer/realServerPool and you can use vdom parameter to limit the data only for particular Vdom.

 

Also async set to true or false will return reply or id that then an automation can use “/api/declarative?id=28962”.

 

 

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024