fmg_api
FMG API library
GetOption
module-attribute
#
GetOption = Literal['extra info', 'assignment info', 'loadsub', 'no loadsub', 'count', 'syntax', 'devinfo', 'obj flags', 'datasrc', 'chksum']
FMGBaseObject #
Bases: BaseModel
, ABC
Abstract base object for all high-level objects
Scope must be set before referencing the url! It's done by FMGBase requests as it defaults all objects to its selected ADOM.
In case of AsyncFMG, caller must ensure await-ing the request.
Attributes:
Name | Type | Description |
---|---|---|
fmg_scope |
str
|
FMG selected scope (adom or global) |
_version |
str
|
Supported API version |
_url |
str
|
template for API URL |
_fmg |
FMG
|
FMG instance |
Other Parameters:
Name | Type | Description |
---|---|---|
scope |
str
|
FMG selected scope (adom or global) |
fmg |
AnyFMG
|
FMG instance |
Source code in pyfortinet/fmg_api/__init__.py
FMGExecObject #
Bases: FMGBaseObject
, ABC
FMG execute job type
Attributes:
Name | Type | Description |
---|---|---|
scope |
str
|
FMG selected scope (adom or global) |
_version |
str
|
Supported API version |
_url |
str
|
template for API URL |
_fmg |
FMG
|
FMG instance |
Other Parameters:
Name | Type | Description |
---|---|---|
scope |
str
|
FMG selected scope (adom or global) |
fmg |
AnyFMG
|
FMG instance |
Source code in pyfortinet/fmg_api/__init__.py
FMGObject #
Bases: FMGBaseObject
, ABC
Abstract base object for all high-level objects
Scope must be set before referencing the url! It's done by FMGBase requests as it defaults all objects to its selected ADOM.
In case of AsyncFMG, caller must ensure await-ing the request.
Attributes:
Name | Type | Description |
---|---|---|
scope |
str
|
FMG selected scope (adom or global) |
_version |
str
|
Supported API version |
_url |
str
|
template for API URL |
_fmg |
FMG
|
FMG instance |
Other Parameters:
Name | Type | Description |
---|---|---|
scope |
str
|
FMG selected scope (adom or global) |
fmg |
AnyFMG
|
FMG instance |