hfortix_fortios.ProxiedFortiOS

class hfortix_fortios.ProxiedFortiOS(fmg_session, target, vdom=None, timeout=60)[source]

A FortiOS client that routes all API calls through FortiManager.

This class provides the same api interface as the standard FortiOS client, but all requests are proxied through FortiManager to the target device(s).

Parameters:
  • fmg_session (FMGSession)

  • target (str)

  • vdom (str | None)

  • timeout (int)

__init__(fmg_session, target, vdom=None, timeout=60)[source]

Initialize proxied FortiOS client.

Parameters:
  • fmg_session (HTTPClientJSONRPC) – FMG session for making requests

  • target (str) – Target path (e.g., “adom/root/device/fw-01”)

  • vdom (str | None) – Default VDOM

  • timeout (int) – Request timeout

Methods

__init__(fmg_session, target[, vdom, timeout])

Initialize proxied FortiOS client.

Attributes

api

FortiOS API namespace.

target

Target device/group path.

vdom

Default VDOM.