dvmdb
Device DB objects
ADOM_FLAGS
module-attribute
#
ADOM_FLAGS = Literal[
"migration",
"db_export",
"no_vpn_console",
"backup",
"other_devices",
"is_autosync",
"per_device_wtp",
"policy_check_on_install",
"install_on_policy_check_fail",
"auto_push_cfg",
"per_device_fsw",
]
ADOM_RESTRICTED_PRDS
module-attribute
#
ADOM_RESTRICTED_PRDS = Literal[
"fos",
"foc",
"fml",
"fch",
"fwb",
"log",
"fct",
"faz",
"fsa",
"fsw",
"fmg",
"fdd",
"fac",
"fpx",
"fna",
"ffw",
"fsr",
"fad",
"fdc",
"fap",
"fxt",
"fts",
"fai",
"fwc",
"fis",
"fed",
"fpa",
"fabric",
]
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
#
ADOM #
Bases: FMGObject
ADOM object
Attributes:
| Name | Type | Description |
|---|---|---|
create_time |
Optional[int]
|
|
desc |
Optional[str]
|
|
flags |
Optional[Union[ADOM_FLAGS, List[ADOM_FLAGS]]]
|
|
log_db_retention_hours |
Optional[int]
|
|
log_disk_quota |
Optional[int]
|
|
log_disk_quota_alert_thres |
Optional[int]
|
|
log_disk_quota_split_ratio |
Optional[int]
|
|
log_file_retention_hours |
Optional[int]
|
|
meta_fields |
Optional[dict[str, str]]
|
|
mig_mr |
Optional[int]
|
|
mig_os_ver |
Optional[OS_VER]
|
|
mode |
Optional[ADOM_MODE]
|
|
mr |
Optional[int]
|
|
name |
Optional[str]
|
|
os_ver |
Optional[OS_VER]
|
|
restricted_prds |
Optional[ADOM_RESTRICTED_PRDS]
|
|
state |
Optional[int]
|
|
uuid |
Optional[str]
|
|
workspace_mode |
Optional[int]
|
|
Device #
Bases: FMGObject
ADOM level Device object
Attributes:
| Name | Type | Description |
|---|---|---|
device |
str
|
device name to target by API call |
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 |
desc |
str
|
Device description |
ha_group_id |
int
|
HA group ID |
ha_group_name |
str
|
HA group Name |
hostname |
str
|
hostname |
ip |
str
|
Device IP address |
meta_fields |
dict
|
Meta fields data |
mgmt_if |
str
|
management interface name |
mgmt_mode |
MGMT_MODE
|
Management mode of the device |
mgmt_uuid |
str
|
|
mgt_vdom |
str
|
management VDOM |
mr |
int
|
OS minor version |
os_type |
OS_TYPE
|
OS type of the device |
os_ver |
OS_VER
|
OS major version |
patch |
int
|
OS patch version |
psk |
str
|
pre-shared secret |
sn |
str
|
Serial number of the device |
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
validate_conf_status #
validate_conf_status(v) -> CONF_STATUS
validate_conn_type #
validate_conn_type(v) -> CONN_STATUS
validate_ip #
validate_mgmt_mode #
validate_os_type #
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 |
VDOM #
Bases: FMGObject
Device Virtual Domain