dvmdb
Device DB objects
DEV_STATUS
module-attribute
#
DEV_STATUS = Literal['none', 'unknown', 'checkedin', 'inprogress', 'installed', 'aborted', 'sched', 'retry', 'canceled', 'pending', 'retrieved', 'changed_conf', 'sync_fail', 'timeout', 'rev_revert', 'auto_updated']
OS_TYPE
module-attribute
#
OS_TYPE = Literal['unknown', 'fos', 'fsw', 'foc', 'fml', 'faz', 'fwb', 'fch', 'fct', 'log', 'fmg', 'fsa', 'fdd', 'fac', 'fpx', 'fna', 'ffw', 'fsr', 'fad', 'fdc', 'fap', 'fxt', 'fts', 'fai', 'fwc', 'fis', 'fed']
OS_VER
module-attribute
#
Device #
Bases: FMGObject
, BaseDevice
ADOM level Device object
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
object name |
adm_usr |
str
|
admin user |
adm_pass |
list[str]
|
admin password |
app_ver |
str
|
App DB version |
av_ver |
str
|
Anti-Virus DB version |
checksum |
str
|
Configuration checksum |
conf_status |
CONF_STATUS
|
Configuration status |
ha_group_id |
int
|
HA group ID |
ha_group_name |
str
|
HA group Name |
hostname |
str
|
hostname |
mgmt_if |
str
|
management interface name |
mgmt_uuid |
str
|
|
mgt_vdom |
str
|
management VDOM |
psk |
str
|
pre-shared secret |
version |
int
|
|
platform_str |
str
|
platform name (device model) |
vdom |
list[VDOM]
|
VDOM list |
ha_slave |
Optional[List[HASlave]]
|
Optional[List[HASlave]] |
get_vdom_scope #
Get Scope for a VDOM to be used by filters
Returns:
Type | Description |
---|---|
Scope or None
|
The scope for the given VDOM |
Source code in pyfortinet/fmg_api/dvmdb.py
HASlave #
Bases: FMGObject
HA Slave object to inspect HA members
Attributes:
Name | Type | Description |
---|---|---|
conf_status |
CONF_STATUS
|
member HA config sync status (with other members) |
#did |
str
|
device ID (cluster name) |
#flags |
str
|
undocumented |
idx |
int
|
device number in cluster (0,1) |
name |
str
|
member device name |
#oid |
int
|
undocumented |
prio |
int
|
HA priority |
role |
ROLE
|
member role |
sn |
str
|
serial number |
status |
CONN_STATUS
|
status of HA member |
ModelDevice #
Bases: FMGObject
, BaseDevice
Model device fields
Attributes:
Name | Type | Description |
---|---|---|
name |
Device name |
|
adm_usr |
str
|
Administrator username |
adm_pass |
str
|
Administrator password |
desc |
str
|
Device description |
ip |
str
|
Device IP address |
meta_fields |
dict
|
Meta fields data |
mgmt_mode |
MGMT_MODE
|
Management mode of the device |
os_type |
OS_TYPE
|
OS type of the device |
os_ver |
OS_VER
|
OS major version |
mr |
int
|
OS minor version |
patch |
int
|
OS patch version |
sn |
str
|
Serial number of the device |
device_action |
DEVICE_ACTION
|
Device add or remove action |
device_blueprint |
str
|
Device blueprint name |
platform_str |
str
|
Platform string for virtual device |
RealDevice #
Bases: FMGObject
, BaseDevice
Device class to add or remove firewall
Attributes:
Name | Type | Description |
---|---|---|
name |
Device name |
|
adm_usr |
str
|
Administrator username |
adm_pass |
str
|
Administrator password |
desc |
str
|
Device description |
ip |
str
|
Device IP address |
meta_fields |
dict
|
Meta fields data |
mgmt_mode |
MGMT_MODE
|
Management mode of the device |
os_type |
OS_TYPE
|
OS type of the device |
os_ver |
OS_VER
|
OS major version |
mr |
int
|
OS minor version |
patch |
int
|
OS patch version |
sn |
str
|
Serial number of the device |
device_action |
DEVICE_ACTION
|
Device add or remove action |
device_blueprint |
str
|
Device blueprint name |
VDOM #
Bases: FMGObject
Device Virtual Domain