FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
afiroz
Staff
Staff
Article Id 330687
Description This article describes which API query can be used to fetch the details of all the Virtual IPs created on the FortiGate.
Scope FortiGate.
Solution

API query to be used:


https://Firewall IP or FQDN/api/v2/cmdb/firewall/vip/

Virtual IPs present on the FortiGate:

 

VIP.png


The information is retrieved by the API call https://Firewall IP or FQDN/api/v2/cmdb/firewall/vip/:

 

{ "http_method":"GET", "size":1, "limit_reached":false, "matched_count":1, "next_idx":0, "revision":"bccc0d45b221618fa2c7c893479d8e76", "results":[ { "name":"test", "q_origin_key":"test", "id":0, "uuid":"1608b89a-49c7-51ef-64c4-83b971b1745c", "comment":"", "type":"static-nat", "server-type":"", "dns-mapping-ttl":0, "ldb-method":"static", "src-filter":[ ], "src-vip-filter":"disable", "service":[ ], "extip":"4.4.4.4", "extaddr":[ ], "h2-support":"enable", "h3-support":"disable", "quic":{ "max-idle-timeout":30000, "max-udp-payload-size":1500, "active-connection-id-limit":2, "ack-delay-exponent":3, "max-ack-delay":25, "max-datagram-frame-size":1500, "active-migration":"disable", "grease-quic-bit":"enable" }, "nat44":"enable", "nat46":"disable", "add-nat46-route":"enable", "mappedip":[ { "range":"5.5.5.5", "q_origin_key":"5.5.5.5" } ], "mapped-addr":"", "extintf":"port2", "arp-reply":"enable", "http-redirect":"disable", "persistence":"none", "nat-source-vip":"disable", "portforward":"disable", "status":"enable", "protocol":"tcp", "extport":"0-65535", "mappedport":"0-65535", "gratuitous-arp-interval":0, "srcintf-filter":[ ], "portmapping-type":"1-to-1", "realservers":[ ], "http-cookie-domain-from-host":"disable", "http-cookie-domain":"", "http-cookie-path":"", "http-cookie-generation":0, "http-cookie-age":60, "http-cookie-share":"same-ip", "https-cookie-secure":"disable", "http-multiplex":"disable", "http-multiplex-ttl":15, "http-multiplex-max-request":0, "http-multiplex-max-concurrent-request":0, "http-ip-header":"disable", "http-ip-header-name":"", "outlook-web-access":"disable", "weblogic-server":"disable", "websphere-server":"disable", "ssl-mode":"half", "ssl-certificate":[ ], "ssl-dh-bits":"2048", "ssl-algorithm":"high", "ssl-cipher-suites":[ ], "ssl-server-algorithm":"client", "ssl-server-cipher-suites":[ ], "ssl-pfs":"require", "ssl-min-version":"tls-1.1", "ssl-max-version":"tls-1.3", "ssl-server-min-version":"client", "ssl-server-max-version":"client", "ssl-accept-ffdhe-groups":"enable", "ssl-send-empty-frags":"enable", "ssl-client-fallback":"enable", "ssl-client-renegotiation":"secure", "ssl-client-session-state-type":"both", "ssl-client-session-state-timeout":30, "ssl-client-session-state-max":1000, "ssl-client-rekey-count":0, "ssl-server-renegotiation":"enable", "ssl-server-session-state-type":"both", "ssl-server-session-state-timeout":60, "ssl-server-session-state-max":100, "ssl-http-location-conversion":"disable", "ssl-http-match-host":"enable", "ssl-hpkp":"disable", "ssl-hpkp-primary":"", "ssl-hpkp-backup":"", "ssl-hpkp-age":5184000, "ssl-hpkp-report-uri":"", "ssl-hpkp-include-subdomains":"disable", "ssl-hsts":"disable", "ssl-hsts-age":5184000, "ssl-hsts-include-subdomains":"disable", "monitor":[ ], "max-embryonic-connections":1000, "color":0, "ipv6-mappedip":"::", "ipv6-mappedport":"0", "one-click-gslb-server":"disable", "gslb-hostname":"", "gslb-domain-name":"", "gslb-public-ips":[ ] } ], "vdom":"root", "path":"firewall", "name":"vip", "status":"success", "http_status":200, "serial":"FGVM010000052762", "version":"v7.4.4", "build":2662 }

Contributors