fortinet.fortios.fortios_monitor_fact 模块 – 获取 FortiOS 监控对象的 Facts。

注意

此模块是 fortinet.fortios 集合(版本 2.3.8)的一部分。

如果您使用的是 ansible 包,您可能已经安装了这个集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用: ansible-galaxy collection install fortinet.fortios。您需要其他要求才能使用此模块,请参阅 要求 了解详细信息。

要在 playbook 中使用它,请指定:fortinet.fortios.fortios_monitor_fact

在 fortinet.fortios 2.0.0 中新增

概要

  • 从运行 fortios 操作系统的网络设备收集监控事实。此 facts 模块将仅收集用户在 playbook 中指定的那些 facts。

要求

在执行此模块的主机上需要满足以下要求。

  • 安装 galaxy 集合 fortinet.fortios >= 2.0.0。

参数

参数

注释

access_token

字符串

基于令牌的身份验证。从 Fortigate 的 GUI 生成。

enable_log

布尔值

启用/禁用任务的日志记录。

选项

  • false ← (默认)

  • true

filters

列表 / 元素=字符串

用于筛选返回结果的表达式列表。

列表中的项使用与符号作为逻辑与组合。

一个项本身可以用逗号连接为逻辑或。

formatters

列表 / 元素=字符串

用于显示返回结果的字段列表。

params

字典

每个选择器的参数,请参见上面列表中的定义。

selector

字符串

检索到的 fortiOS facts 的选择器。

选项

  • "endpoint-control_profile_xml"

  • "endpoint-control_record-list"

  • "endpoint-control_registration_summary"

  • "endpoint-control_installer"

  • "endpoint-control_installer_download"

  • "endpoint-control_avatar_download"

  • "firewall_health"

  • "firewall_local-in"

  • "firewall_acl"

  • "firewall_acl6"

  • "firewall_internet-service-match"

  • "firewall_internet-service-details"

  • "firewall_policy"

  • "firewall_policy6"

  • "firewall_proxy-policy"

  • "firewall_policy-lookup"

  • "firewall_session"

  • "firewall_shaper"

  • "firewall_per-ip-shaper"

  • "firewall_load-balance"

  • "firewall_address-fqdns"

  • "firewall_address-fqdns6"

  • "firewall_ippool"

  • "firewall_address-dynamic"

  • "firewall_address6-dynamic"

  • "fortiview_statistics"

  • "fortiview_sandbox-file-details"

  • "geoip_geoip-query"

  • "ips_rate-based"

  • "license_status"

  • "license_forticare-resellers"

  • "license_forticare-org-list"

  • "log_current-disk-usage"

  • "log_device_state"

  • "log_forticloud"

  • "log_fortianalyzer"

  • "log_fortianalyzer-queue"

  • "log_hourly-disk-usage"

  • "log_historic-daily-remote-logs"

  • "log_stats"

  • "log_forticloud-report_download"

  • "log_ips-archive_download"

  • "log_policy-archive_download"

  • "log_av-archive_download"

  • "log_event"

  • "registration_forticloud_disclaimer"

  • "registration_forticloud_domains"

  • "router_ipv4"

  • "router_ipv6"

  • "router_statistics"

  • "router_lookup"

  • "router_policy"

  • "router_policy6"

  • "system_config-revision"

  • "system_config-revision_file"

  • "system_config-revision_info"

  • "system_current-admins"

  • "system_time"

  • "system_global-resources"

  • "system_vdom-resource"

  • "system_dhcp"

  • "system_firmware"

  • "system_firmware_upgrade-paths"

  • "system_storage"

  • "system_csf"

  • "system_csf_pending-authorizations"

  • "system_modem"

  • "system_3g-modem"

  • "system_resource_usage"

  • "system_sniffer"

  • "system_sniffer_download"

  • "system_automation-stitch_stats"

  • "switch-controller_managed-switch"

  • "switch-controller_managed-switch_faceplate-xml"

  • "switch-controller_managed-switch_dhcp-snooping"

  • "switch-controller_fsw-firmware"

  • "switch-controller_detected-device"

  • "switch-controller_validate-switch-prefix"

  • "system_interface"

  • "system_interface_dhcp-status"

  • "system_available-interfaces"

  • "system_acquired-dns"

  • "system_resolve-fqdn"

  • "system_nat46-ippools"

  • "system_usb-log"

  • "system_ipconf"

  • "system_fortiguard_server-info"

  • "system_fortimanager_status"

  • "system_fortimanager_backup-summary"

  • "system_fortimanager_backup-details"

  • "system_available-certificates"

  • "system_certificate_download"

  • "system_debug_download"

  • "system_com-log_update"

  • "system_com-log_download"

  • "system_botnet_stat"

  • "system_botnet"

  • "system_botnet-domains"

  • "system_botnet-domains_stat"

  • "system_botnet-domains_hits"

  • "system_ha-statistics"

  • "system_ha-history"

  • "system_ha-checksums"

  • "system_ha-peer"

  • "system_link-monitor"

  • "system_config_backup"

  • "system_config_usb-filelist"

  • "system_sandbox_stats"

  • "system_sandbox_status"

  • "system_sandbox_test-connect"

  • "system_object_usage"

  • "system_object-tagging_usage"

  • "system_status"

  • "system_timezone"

  • "system_sensor-info"

  • "system_security-rating"

  • "system_security-rating_history"

  • "system_security-rating_status"

  • "system_security-rating_lang"

  • "system_fortiguard-blacklist"

  • "system_check-port-availability"

  • "system_external-resource_entry-list"

  • "extender-controller_extender"

  • "system_sdn-connector_status"

  • "user_firewall"

  • "user_banned"

  • "user_fortitoken"

  • "user_detected-device"

  • "user_device"

  • "user_device-type"

  • "user_device-category"

  • "user_fsso"

  • "utm_rating-lookup"

  • "utm_app-lookup"

  • "utm_application-categories"

  • "utm_antivirus_stats"

  • "virtual-wan_health-check"

  • "virtual-wan_members"

  • "webfilter_override"

  • "webfilter_malicious-urls"

  • "webfilter_malicious-urls_stat"

  • "webfilter_category-quota"

  • "webfilter_fortiguard-categories"

  • "webfilter_trusted-urls"

  • "vpn_ipsec"

  • "vpn_one-click_members"

  • "vpn_one-click_status"

  • "vpn_ssl"

  • "vpn_ssl_stats"

  • "wanopt_history"

  • "wanopt_webcache"

  • "wanopt_peer_stats"

  • "webproxy_pacfile_download"

  • "webcache_stats"

  • "wifi_client"

  • "wifi_managed_ap"

  • "wifi_firmware"

  • "wifi_ap_status"

  • "wifi_interfering_ap"

  • "wifi_euclid"

  • "wifi_rogue_ap"

  • "wifi_spectrum"

  • "endpoint-control_summary"

  • "endpoint-control_ems_status"

  • "firewall_consolidated-policy"

  • "firewall_security-policy"

  • "firewall_uuid-list"

  • "firewall_uuid-type-lookup"

  • "fortiguard_redirect-portal"

  • "firewall_sdn-connector-filters"

  • "fortiview_sandbox-file-list"

  • "ips_metadata"

  • "ips_anomaly"

  • "license_fortianalyzer-status"

  • "log_forticloud-report-list"

  • "log_local-report-list"

  • "log_local-report_download"

  • "network_lldp_neighbors"

  • "network_lldp_ports"

  • "network_dns_latency"

  • "network_fortiguard_live-services-latency"

  • "network_ddns_servers"

  • "network_ddns_lookup"

  • "router_lookup-policy"

  • "system_config-script"

  • "system_config-sync_status"

  • "system_vdom-link"

  • "switch-controller_managed-switch_transceivers"

  • "system_interface_poe"

  • "system_trusted-cert-authorities"

  • "system_sandbox_cloud-regions"

  • "system_interface_transceivers"

  • "system_vm-information"

  • "system_security-rating_supported-reports"

  • "nsx_service_status"

  • "nsx_instance"

  • "system_sdn-connector_nsx-security-tags"

  • "web-ui_custom-language_download"

  • "user_collected-email"

  • "user_info_query"

  • "user_info_thumbnail"

  • "utm_blacklisted-certificates"

  • "utm_blacklisted-certificates_statistics"

  • "virtual-wan_interface-log"

  • "virtual-wan_sla-log"

  • "vpn_ocvpn_members"

  • "vpn_ocvpn_status"

  • "vpn_ocvpn_meta"

  • "wifi_network_list"

  • "wifi_network_status"

  • "wifi_region-image"

  • "azure_application-list"

  • "endpoint-control_ems_cert-status"

  • "endpoint-control_ems_status-summary"

  • "fortiguard_service-communication-stats"

  • "network_reverse-ip-lookup"

  • "registration_forticloud_device-status"

  • "switch-controller_managed-switch_health"

  • "switch-controller_managed-switch_cable-status"

  • "switch-controller_mclag-icl_eligible-peer"

  • "system_interface_speed-test-status"

  • "user_fortitoken-cloud_status"

  • "wifi_vlan-probe"

  • "firewall_ippool_mapping"

  • "network_arp"

  • "system_interface-connected-admins-info"

  • "system_ntp_status"

  • "system_config-error-log_download"

  • "system_running-processes"

  • "user_device_query"

  • "ips_exceed-scan-range"

  • "firewall_multicast-policy"

  • "firewall_multicast-policy6"

  • "firewall_gtp-statistics"

  • "firewall_gtp-runtime-statistics"

  • "router_bgp_neighbors"

  • "router_bgp_neighbors6"

  • "router_bgp_paths"

  • "router_bgp_paths6"

  • "router_ospf_neighbors"

  • "system_automation-action_stats"

  • "switch-controller_matched-devices"

  • "system_ha-table-checksums"

  • "system_sandbox_connection"

  • "system_traffic-history_interface"

  • "system_traffic-history_top-applications"

  • "videofilter_fortiguard-categories"

  • "firewall_central-snat-map"

  • "firewall_dnat"

  • "ips_hold-signatures"

  • "router_bgp_paths-statistics"

  • "system_lte-modem_status"

  • "system_global-search"

  • "switch-controller_managed-switch_status"

  • "switch-controller_managed-switch_port-stats"

  • "switch-controller_managed-switch_models"

  • "system_interface_kernel-interfaces"

  • "system_config_restore-status"

  • "wifi_meta"

  • "wifi_ap_channels"

  • "wifi_ap-names"

  • "firewall_internet-service-reputation"

  • "firewall_shaper_multi-class-shaper"

  • "log_forticloud_connection"

  • "system_performance_status"

  • "system_ipam_list"

  • "system_ipam_status"

  • "system_acme-certificate-status"

  • "system_crash-log_download"

  • "user_banned_check"

  • "user_info_thumbnail-file"

  • "vpn-certificate_cert-name-available"

  • "wifi_unassociated-devices"

  • "wifi_matched-devices"

  • "firewall_proxy_sessions"

  • "firewall_gtp"

  • "fortiview_proxy-statistics"

  • "system_ha-hw-interface"

  • "user_firewall_count"

  • "firewall_internet-service-basic"

  • "firewall_vip-overlap"

  • "switch-controller_managed-switch_port-health"

  • "switch-controller_managed-switch_tx-rx"

  • "firewall_network-service-dynamic"

  • "system_ipam_utilization"

  • "system_ha-nonsync-checksums"

  • "wifi_station-capability"

  • "fortiguard_answers"

  • "ips_session_performance"

  • "switch-controller_nac-device_stats"

  • "switch-controller_isl-lockdown_status"

  • "wifi_nac-device_stats"

  • "firewall_sessions"

  • "fortiview_realtime-statistics"

  • "fortiview_historical-statistics"

  • "fortiview_realtime-proxy-statistics"

  • "log_feature-set"

  • "forticonverter_eligibility"

  • "forticonverter_ticket_status"

  • "forticonverter_sn-list"

  • "forticonverter_intf-list"

  • "forticonverter_custom-operation_status"

  • "forticonverter_intf-mapping"

  • "forticonverter_mgmt-intf"

  • "forticonverter_notes"

  • "forticonverter_download_ready"

  • "forticonverter_file_download"

  • "forticonverter_download_status"

  • "switch-controller_managed-switch_bios"

  • "system_available-interfaces_meta"

  • "system_central-management_status"

  • "user_device_stats"

  • "casb_saas-application_details"

  • "switch-controller_mclag-icl_tier-plus-candidates"

  • "extension-controller_fortigate"

  • "extension-controller_lan-extension-vdom-status"

  • "user_proxy"

  • "user_proxy_count"

  • "firewall_check-addrgrp-exclude-mac-member"

  • "firewall_saas-application"

  • "router_sdwan_routes"

  • "router_sdwan_routes6"

  • "router_sdwan_routes-statistics"

  • "extender-controller_extender_modem-firmware"

  • "user_radius_get-test-connect"

  • "endpoint-control_ems_malware-hash"

  • "switch-controller_managed-switch_health-status"

  • "firewall_local-in6"

  • "firmware_extension-device"

  • "service_ldap_query"

选择器

列表 / 元素=字典

用于检索 FortiOS 事实的的选择器列表。

filters

列表 / 元素=字符串

用于筛选返回结果的表达式列表。

列表中的项使用与符号作为逻辑与组合。

一个项本身可以用逗号连接为逻辑或。

formatters

列表 / 元素=字符串

用于显示返回结果的字段列表。

params

字典

每个选择器的参数,请参见上面列表中的定义。

selector

字符串 / 必需

检索到的 FortiOS 事实的选择器

选项

  • "endpoint-control_profile_xml"

  • "endpoint-control_record-list"

  • "endpoint-control_registration_summary"

  • "endpoint-control_installer"

  • "endpoint-control_installer_download"

  • "endpoint-control_avatar_download"

  • "firewall_health"

  • "firewall_local-in"

  • "firewall_acl"

  • "firewall_acl6"

  • "firewall_internet-service-match"

  • "firewall_internet-service-details"

  • "firewall_policy"

  • "firewall_policy6"

  • "firewall_proxy-policy"

  • "firewall_policy-lookup"

  • "firewall_session"

  • "firewall_shaper"

  • "firewall_per-ip-shaper"

  • "firewall_load-balance"

  • "firewall_address-fqdns"

  • "firewall_address-fqdns6"

  • "firewall_ippool"

  • "firewall_address-dynamic"

  • "firewall_address6-dynamic"

  • "fortiview_statistics"

  • "fortiview_sandbox-file-details"

  • "geoip_geoip-query"

  • "ips_rate-based"

  • "license_status"

  • "license_forticare-resellers"

  • "license_forticare-org-list"

  • "log_current-disk-usage"

  • "log_device_state"

  • "log_forticloud"

  • "log_fortianalyzer"

  • "log_fortianalyzer-queue"

  • "log_hourly-disk-usage"

  • "log_historic-daily-remote-logs"

  • "log_stats"

  • "log_forticloud-report_download"

  • "log_ips-archive_download"

  • "log_policy-archive_download"

  • "log_av-archive_download"

  • "log_event"

  • "registration_forticloud_disclaimer"

  • "registration_forticloud_domains"

  • "router_ipv4"

  • "router_ipv6"

  • "router_statistics"

  • "router_lookup"

  • "router_policy"

  • "router_policy6"

  • "system_config-revision"

  • "system_config-revision_file"

  • "system_config-revision_info"

  • "system_current-admins"

  • "system_time"

  • "system_global-resources"

  • "system_vdom-resource"

  • "system_dhcp"

  • "system_firmware"

  • "system_firmware_upgrade-paths"

  • "system_storage"

  • "system_csf"

  • "system_csf_pending-authorizations"

  • "system_modem"

  • "system_3g-modem"

  • "system_resource_usage"

  • "system_sniffer"

  • "system_sniffer_download"

  • "system_automation-stitch_stats"

  • "switch-controller_managed-switch"

  • "switch-controller_managed-switch_faceplate-xml"

  • "switch-controller_managed-switch_dhcp-snooping"

  • "switch-controller_fsw-firmware"

  • "switch-controller_detected-device"

  • "switch-controller_validate-switch-prefix"

  • "system_interface"

  • "system_interface_dhcp-status"

  • "system_available-interfaces"

  • "system_acquired-dns"

  • "system_resolve-fqdn"

  • "system_nat46-ippools"

  • "system_usb-log"

  • "system_ipconf"

  • "system_fortiguard_server-info"

  • "system_fortimanager_status"

  • "system_fortimanager_backup-summary"

  • "system_fortimanager_backup-details"

  • "system_available-certificates"

  • "system_certificate_download"

  • "system_debug_download"

  • "system_com-log_update"

  • "system_com-log_download"

  • "system_botnet_stat"

  • "system_botnet"

  • "system_botnet-domains"

  • "system_botnet-domains_stat"

  • "system_botnet-domains_hits"

  • "system_ha-statistics"

  • "system_ha-history"

  • "system_ha-checksums"

  • "system_ha-peer"

  • "system_link-monitor"

  • "system_config_backup"

  • "system_config_usb-filelist"

  • "system_sandbox_stats"

  • "system_sandbox_status"

  • "system_sandbox_test-connect"

  • "system_object_usage"

  • "system_object-tagging_usage"

  • "system_status"

  • "system_timezone"

  • "system_sensor-info"

  • "system_security-rating"

  • "system_security-rating_history"

  • "system_security-rating_status"

  • "system_security-rating_lang"

  • "system_fortiguard-blacklist"

  • "system_check-port-availability"

  • "system_external-resource_entry-list"

  • "extender-controller_extender"

  • "system_sdn-connector_status"

  • "user_firewall"

  • "user_banned"

  • "user_fortitoken"

  • "user_detected-device"

  • "user_device"

  • "user_device-type"

  • "user_device-category"

  • "user_fsso"

  • "utm_rating-lookup"

  • "utm_app-lookup"

  • "utm_application-categories"

  • "utm_antivirus_stats"

  • "virtual-wan_health-check"

  • "virtual-wan_members"

  • "webfilter_override"

  • "webfilter_malicious-urls"

  • "webfilter_malicious-urls_stat"

  • "webfilter_category-quota"

  • "webfilter_fortiguard-categories"

  • "webfilter_trusted-urls"

  • "vpn_ipsec"

  • "vpn_one-click_members"

  • "vpn_one-click_status"

  • "vpn_ssl"

  • "vpn_ssl_stats"

  • "wanopt_history"

  • "wanopt_webcache"

  • "wanopt_peer_stats"

  • "webproxy_pacfile_download"

  • "webcache_stats"

  • "wifi_client"

  • "wifi_managed_ap"

  • "wifi_firmware"

  • "wifi_ap_status"

  • "wifi_interfering_ap"

  • "wifi_euclid"

  • "wifi_rogue_ap"

  • "wifi_spectrum"

  • "endpoint-control_summary"

  • "endpoint-control_ems_status"

  • "firewall_consolidated-policy"

  • "firewall_security-policy"

  • "firewall_uuid-list"

  • "firewall_uuid-type-lookup"

  • "fortiguard_redirect-portal"

  • "firewall_sdn-connector-filters"

  • "fortiview_sandbox-file-list"

  • "ips_metadata"

  • "ips_anomaly"

  • "license_fortianalyzer-status"

  • "log_forticloud-report-list"

  • "log_local-report-list"

  • "log_local-report_download"

  • "network_lldp_neighbors"

  • "network_lldp_ports"

  • "network_dns_latency"

  • "network_fortiguard_live-services-latency"

  • "network_ddns_servers"

  • "network_ddns_lookup"

  • "router_lookup-policy"

  • "system_config-script"

  • "system_config-sync_status"

  • "system_vdom-link"

  • "switch-controller_managed-switch_transceivers"

  • "system_interface_poe"

  • "system_trusted-cert-authorities"

  • "system_sandbox_cloud-regions"

  • "system_interface_transceivers"

  • "system_vm-information"

  • "system_security-rating_supported-reports"

  • "nsx_service_status"

  • "nsx_instance"

  • "system_sdn-connector_nsx-security-tags"

  • "web-ui_custom-language_download"

  • "user_collected-email"

  • "user_info_query"

  • "user_info_thumbnail"

  • "utm_blacklisted-certificates"

  • "utm_blacklisted-certificates_statistics"

  • "virtual-wan_interface-log"

  • "virtual-wan_sla-log"

  • "vpn_ocvpn_members"

  • "vpn_ocvpn_status"

  • "vpn_ocvpn_meta"

  • "wifi_network_list"

  • "wifi_network_status"

  • "wifi_region-image"

  • "azure_application-list"

  • "endpoint-control_ems_cert-status"

  • "endpoint-control_ems_status-summary"

  • "fortiguard_service-communication-stats"

  • "network_reverse-ip-lookup"

  • "registration_forticloud_device-status"

  • "switch-controller_managed-switch_health"

  • "switch-controller_managed-switch_cable-status"

  • "switch-controller_mclag-icl_eligible-peer"

  • "system_interface_speed-test-status"

  • "user_fortitoken-cloud_status"

  • "wifi_vlan-probe"

  • "firewall_ippool_mapping"

  • "network_arp"

  • "system_interface-connected-admins-info"

  • "system_ntp_status"

  • "system_config-error-log_download"

  • "system_running-processes"

  • "user_device_query"

  • "ips_exceed-scan-range"

  • "firewall_multicast-policy"

  • "firewall_multicast-policy6"

  • "firewall_gtp-statistics"

  • "firewall_gtp-runtime-statistics"

  • "router_bgp_neighbors"

  • "router_bgp_neighbors6"

  • "router_bgp_paths"

  • "router_bgp_paths6"

  • "router_ospf_neighbors"

  • "system_automation-action_stats"

  • "switch-controller_matched-devices"

  • "system_ha-table-checksums"

  • "system_sandbox_connection"

  • "system_traffic-history_interface"

  • "system_traffic-history_top-applications"

  • "videofilter_fortiguard-categories"

  • "firewall_central-snat-map"

  • "firewall_dnat"

  • "ips_hold-signatures"

  • "router_bgp_paths-statistics"

  • "system_lte-modem_status"

  • "system_global-search"

  • "switch-controller_managed-switch_status"

  • "switch-controller_managed-switch_port-stats"

  • "switch-controller_managed-switch_models"

  • "system_interface_kernel-interfaces"

  • "system_config_restore-status"

  • "wifi_meta"

  • "wifi_ap_channels"

  • "wifi_ap-names"

  • "firewall_internet-service-reputation"

  • "firewall_shaper_multi-class-shaper"

  • "log_forticloud_connection"

  • "system_performance_status"

  • "system_ipam_list"

  • "system_ipam_status"

  • "system_acme-certificate-status"

  • "system_crash-log_download"

  • "user_banned_check"

  • "user_info_thumbnail-file"

  • "vpn-certificate_cert-name-available"

  • "wifi_unassociated-devices"

  • "wifi_matched-devices"

  • "firewall_proxy_sessions"

  • "firewall_gtp"

  • "fortiview_proxy-statistics"

  • "system_ha-hw-interface"

  • "user_firewall_count"

  • "firewall_internet-service-basic"

  • "firewall_vip-overlap"

  • "switch-controller_managed-switch_port-health"

  • "switch-controller_managed-switch_tx-rx"

  • "firewall_network-service-dynamic"

  • "system_ipam_utilization"

  • "system_ha-nonsync-checksums"

  • "wifi_station-capability"

  • "fortiguard_answers"

  • "ips_session_performance"

  • "switch-controller_nac-device_stats"

  • "switch-controller_isl-lockdown_status"

  • "wifi_nac-device_stats"

  • "firewall_sessions"

  • "fortiview_realtime-statistics"

  • "fortiview_historical-statistics"

  • "fortiview_realtime-proxy-statistics"

  • "log_feature-set"

  • "forticonverter_eligibility"

  • "forticonverter_ticket_status"

  • "forticonverter_sn-list"

  • "forticonverter_intf-list"

  • "forticonverter_custom-operation_status"

  • "forticonverter_intf-mapping"

  • "forticonverter_mgmt-intf"

  • "forticonverter_notes"

  • "forticonverter_download_ready"

  • "forticonverter_file_download"

  • "forticonverter_download_status"

  • "switch-controller_managed-switch_bios"

  • "system_available-interfaces_meta"

  • "system_central-management_status"

  • "user_device_stats"

  • "casb_saas-application_details"

  • "switch-controller_mclag-icl_tier-plus-candidates"

  • "extension-controller_fortigate"

  • "extension-controller_lan-extension-vdom-status"

  • "user_proxy"

  • "user_proxy_count"

  • "firewall_check-addrgrp-exclude-mac-member"

  • "firewall_saas-application"

  • "router_sdwan_routes"

  • "router_sdwan_routes6"

  • "router_sdwan_routes-statistics"

  • "extender-controller_extender_modem-firmware"

  • "user_radius_get-test-connect"

  • "endpoint-control_ems_malware-hash"

  • "switch-controller_managed-switch_health-status"

  • "firewall_local-in6"

  • "firmware_extension-device"

  • "service_ldap_query"

排序器

列表 / 元素=字符串

用于对返回结果进行排序的表达式列表。

列表中的项按升序排列,并使用 & 符号分隔。

一个项本身可以使用逗号分隔表示降序排列。

排序器

列表 / 元素=字符串

用于对返回结果进行排序的表达式列表。

列表中的项按升序排列,并使用 & 符号分隔。

一个项本身可以使用逗号分隔表示降序排列。

vdom

字符串

虚拟域,在之前定义的那些之中。vdom 是 FortiGate 的虚拟实例,可以配置并用作不同的单元。

默认值: "root"

注释

注意

  • 不同的选择器可能具有不同的参数,用户应查找特定选择器的参数。

  • 对于某些选择器,对象是全局的,不允许出现参数。

  • 并非所有参数都是选择器必需的。

  • 此模块专门用于 FortiOS 监控 API。

  • API 请求的结果存储在结果中。

示例

- name: Get license status
  fortinet.fortios.fortios_monitor_fact:
      vdom: root
      selectors:
          - selector: license_status
          - selector: system_status
          - selector: firewall_security-policy
            params:
                policyid: '1'

- name: Get system status
  fortinet.fortios.fortios_monitor_fact:
      vdom: root
      formatters:
          - model_name
      filters:
          - model_name==FortiGat
      selector: 'system_status'

- name: Get firewall acl info
  fortinet.fortios.fortios_monitor_fact:
      vdom: root
      access_token: "you_own_value"
      selector: 'firewall_acl'

返回值

通用返回值记录在此处 此处,以下是此模块特有的字段

描述

构建

字符串

FortiGate 镜像的构建号

返回: 总是

示例: "1547"

http_method

字符串

用于将内容配置到 FortiGate 中的最后一种方法

返回: 总是

示例: "GET"

名称

字符串

用于满足请求的表名

返回: 总是

示例: "firmware"

路径

字符串

用于满足请求的表路径

返回: 总是

示例: "system"

修订

字符串

内部修订号

返回: 总是

示例: "17.0.2.10658"

序列号

字符串

设备的序列号

返回: 总是

示例: "FGVMEVYYQT3AB5352"

状态

字符串

操作结果的指示

返回: 总是

示例: "success"

vdom

字符串

使用的虚拟域

返回: 总是

示例: "root"

版本

字符串

FortiGate 的版本

返回: 总是

示例: "v5.6.3"

作者

  • Jie Xue (@JieX19)

  • Link Zheng (@chillancezen)

  • Hongbin Lu (@fgtdev-hblu)

  • Frank Shen (@fshen01)