fortinet.fortimanager.fmgr_firewall_gtp 模块 – 配置 GTP。

注意

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

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

要安装它,请使用:ansible-galaxy collection install fortinet.fortimanager

要在剧本中使用它,请指定:fortinet.fortimanager.fmgr_firewall_gtp

fortinet.fortimanager 2.0.0 中的新增功能

概要

  • 此模块能够配置 FortiManager 设备。

  • 示例包括所有需要在使用前调整为数据源的参数和值。

参数

参数

注释

access_token

字符串

无需使用用户名和密码即可访问 FortiManager 的令牌。

adom

字符串 / 必需

请求 URL 中的参数 (adom)。

bypass_validation

布尔值

仅当模块模式与 FortiManager API 结构不同时设置为 True,模块将继续执行而无需验证参数。

选项

  • false ← (默认)

  • true

enable_log

布尔值

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

选项

  • false ← (默认)

  • true

firewall_gtp

字典

设置的顶级参数。

addr_notify

别名:addr-notify

字符串

超额计费通知地址

apn

列表 / 元素=字典

APN。

action

字符串

动作。

选项

  • "允许"

  • "拒绝"

apnmember

任意

(列表或字符串) APN 成员。

id

整数

ID。

selection_mode

别名:selection-mode

列表 / 元素=字符串

APN 选择模式。

选项

  • "ms"

  • "net"

  • "vrf"

apn_filter

别名:apn-filter

字符串

APN 过滤器

选项

  • "禁用"

  • "启用"

authorized_ggsns

别名:authorized-ggsns

字符串

授权的 GGSN 组

authorized_ggsns6

别名:authorized-ggsns6

字符串

授权的 GGSN/PGW IPv6 组。

authorized_sgsns

别名:authorized-sgsns

字符串

授权的 SGSN 组

authorized_sgsns6

别名:authorized-sgsns6

字符串

授权的 SGSN/SGW IPv6 组。

comment

字符串

注释。

context_id

别名:context-id

整数

超额计费上下文。

control_plane_message_rate_limit

别名:control-plane-message-rate-limit

整数

控制平面消息速率限制

default_apn_action

别名:default-apn-action

字符串

默认 apn 动作

选项

  • "允许"

  • "拒绝"

default_imsi_action

别名:default-imsi-action

字符串

默认 imsi 动作

选项

  • "允许"

  • "拒绝"

default_ip_action

别名:default-ip-action

字符串

封装的 IP 流量的默认动作

选项

  • "允许"

  • "拒绝"

default_noip_action

别名:default-noip-action

字符串

封装的非 IP 流量的默认动作

选项

  • "允许"

  • "拒绝"

default_policy_action

别名:default-policy-action

字符串

默认高级策略动作

选项

  • "允许"

  • "拒绝"

denied_log

别名:denied-log

字符串

记录拒绝

选项

  • "禁用"

  • "启用"

echo_request_interval

别名:echo-request-interval

整数

回显请求间隔

extension_log

别名:extension-log

字符串

以扩展格式记录

选项

  • "禁用"

  • "启用"

forwarded_log

别名:forwarded-log

字符串

记录转发

选项

  • "禁用"

  • "启用"

global_tunnel_limit

别名:global-tunnel-limit

字符串

全局隧道限制。

gtp_in_gtp

别名:gtp-in-gtp

字符串

GTP 中的 GTP

选项

  • "允许"

  • "拒绝"

gtpu_denied_log

别名:gtpu-denied-log

字符串

启用/禁用被拒绝的 GTP-U 数据包的日志记录。

选项

  • "禁用"

  • "启用"

gtpu_forwarded_log

别名: gtpu-forwarded-log

字符串

启用/禁用转发GTP-U数据包的日志记录。

选项

  • "禁用"

  • "启用"

gtpu_log_freq

别名: gtpu-log-freq

整数

GTP-U数据包频率的日志记录。

gtpv0

字符串

GTPv0流量。

选项

  • "允许"

  • "拒绝"

half_close_timeout

别名: half-close-timeout

整数

半关闭隧道超时

half_open_timeout

别名: half-open-timeout

整数

半打开隧道超时

handover_group

别名: handover-group

字符串

切换SGSN组

handover_group6

别名: handover-group6

字符串

切换SGSN/SGW IPv6组。

ie_allow_list_v0v1

别名: ie-allow-list-v0v1

字符串

IE允许列表。

ie_allow_list_v2

别名: ie-allow-list-v2

字符串

IE允许列表。

ie_remove_policy

别名: ie-remove-policy

列表 / 元素=字典

IE移除策略。

id

整数

ID。

remove_ies

别名: remove-ies

列表 / 元素=字符串

要移除的GTP IE。

选项

  • "apn-restriction"

  • "rat-type"

  • "rai"

  • "uli"

  • "imei"

sgsn_addr

别名: sgsn-addr

字符串

SGSN地址名称。

sgsn_addr6

别名: sgsn-addr6

字符串

SGSN IPv6地址名称。

ie_remover

别名: ie-remover

字符串

IE移除策略。

选项

  • "禁用"

  • "启用"

ie_validation

别名: ie-validation

字典

IE验证。

apn_restriction

别名: apn-restriction

字符串

验证APN限制。

选项

  • "禁用"

  • "启用"

charging_gateway_addr

别名: charging-gateway-addr

字符串

验证计费网关地址。

选项

  • "禁用"

  • "启用"

charging_ID

别名: charging-ID

字符串

验证计费ID。

选项

  • "禁用"

  • "启用"

end_user_addr

别名: end-user-addr

字符串

验证最终用户地址。

选项

  • "禁用"

  • "启用"

gsn_addr

别名: gsn-addr

字符串

验证GSN地址。

选项

  • "禁用"

  • "启用"

imei

字符串

验证IMEI

选项

  • "禁用"

  • "启用"

imsi

字符串

验证IMSI。

选项

  • "禁用"

  • "启用"

mm_context

别名: mm-context

字符串

验证MM上下文。

选项

  • "禁用"

  • "启用"

ms_tzone

别名: ms-tzone

字符串

验证MS时区。

选项

  • "禁用"

  • "启用"

ms_validated

别名: ms-validated

字符串

验证MS已验证。

选项

  • "禁用"

  • "启用"

msisdn

字符串

验证MSISDN。

选项

  • "禁用"

  • "启用"

nsapi

字符串

验证NSAPI。

选项

  • "禁用"

  • "启用"

pdp_context

别名: pdp-context

字符串

验证PDP上下文。

选项

  • "禁用"

  • "启用"

qos_profile

别名: qos-profile

字符串

验证服务质量

选项

  • "禁用"

  • "启用"

rai

字符串

验证RAI。

选项

  • "禁用"

  • "启用"

rat_type

别名: rat-type

字符串

验证RAT类型。

选项

  • "禁用"

  • "启用"

reordering_required

别名: reordering-required

字符串

验证是否需要重新排序。

选项

  • "禁用"

  • "启用"

selection_mode

别名:selection-mode

字符串

验证选择模式。

选项

  • "禁用"

  • "启用"

uli

字符串

验证用户位置信息。

选项

  • "禁用"

  • "启用"

ie_white_list_v0v1

别名: ie-white-list-v0v1

字符串

IE白名单。

ie_white_list_v2

别名: ie-white-list-v2

字符串

IE白名单。

imsi

列表 / 元素=字典

IMSI。

action

字符串

动作。

选项

  • "允许"

  • "拒绝"

apnmember

任意

(列表或字符串) APN 成员。

id

整数

ID。

mcc_mnc

别名: mcc-mnc

字符串

MCC MNC。

msisdn_prefix

别名: msisdn-prefix

字符串

MSISDN前缀。

selection_mode

别名:selection-mode

列表 / 元素=字符串

APN 选择模式。

选项

  • "ms"

  • "net"

  • "vrf"

imsi_filter

别名: imsi-filter

字符串

IMSI过滤器

选项

  • "禁用"

  • "启用"

interface_notify

别名: interface-notify

字符串

计费接口

invalid_reserved_field

别名: invalid-reserved-field

字符串

GTP报头中的无效保留字段

选项

  • "允许"

  • "拒绝"

invalid_sgsns6_to_log

别名: invalid-sgsns6-to-log

字符串

要记录的无效SGSN IPv6组。

invalid_sgsns_to_log

别名: invalid-sgsns-to-log

字符串

要记录的无效SGSN组

ip_filter

别名: ip-filter

字符串

封装流量的IP过滤器

选项

  • "禁用"

  • "启用"

ip_policy

别名: ip-policy

列表 / 元素=字典

IP策略。

action

字符串

动作。

选项

  • "允许"

  • "拒绝"

dstaddr

字符串

目标地址名称。

dstaddr6

字符串

目标IPv6地址名称。

id

整数

ID。

srcaddr

字符串

源地址名称。

srcaddr6

字符串

源IPv6地址名称。

log_freq

别名: log-freq

整数

GTP-C数据包频率的日志记录。

log_gtpu_limit

别名: log-gtpu-limit

整数

用户数据日志限制

log_imsi_prefix

别名: log-imsi-prefix

字符串

用于选择性日志记录的IMSI前缀。

log_msisdn_prefix

别名: log-msisdn-prefix

字符串

用于选择性日志记录的MSISDN前缀

max_message_length

别名: max-message-length

整数

最大消息长度

message_filter

别名: message-filter

字典

消息过滤器。

create_aa_pdp

别名: create-aa-pdp

字符串

创建AA PDP。

选项

  • "允许"

  • "拒绝"

create_mbms

别名: create-mbms

字符串

创建MBMS。

选项

  • "允许"

  • "拒绝"

create_pdp

别名: create-pdp

字符串

创建PDP。

选项

  • "允许"

  • "拒绝"

data_record

别名: data-record

字符串

数据记录。

选项

  • "允许"

  • "拒绝"

delete_aa_pdp

别名: delete-aa-pdp

字符串

删除AA PDP。

选项

  • "允许"

  • "拒绝"

delete_mbms

别名: delete-mbms

字符串

删除MBMS。

选项

  • "允许"

  • "拒绝"

delete_pdp

别名: delete-pdp

字符串

删除PDP。

选项

  • "允许"

  • "拒绝"

echo

字符串

回显。

选项

  • "允许"

  • "拒绝"

error_indication

别名:错误指示

字符串

错误指示。

选项

  • "允许"

  • "拒绝"

failure_report

别名:failure-report

字符串

故障报告。

选项

  • "允许"

  • "拒绝"

fwd_relocation

别名:fwd-relocation

字符串

转发重定位。

选项

  • "允许"

  • "拒绝"

fwd_srns_context

别名:fwd-srns-context

字符串

转发SRNS上下文。

选项

  • "允许"

  • "拒绝"

gtp_pdu

别名:gtp-pdu

字符串

GTP PDU。

选项

  • "允许"

  • "拒绝"

identification

字符串

标识。

选项

  • "允许"

  • "拒绝"

mbms_notification

别名:mbms-notification

字符串

MBMS通知。

选项

  • "允许"

  • "拒绝"

node_alive

别名:node-alive

字符串

节点存活。

选项

  • "允许"

  • "拒绝"

note_ms_present

别名:note-ms-present

字符串

Note MS存在。

选项

  • "允许"

  • "拒绝"

pdu_notification

别名:pdu-notification

字符串

PDU通知。

选项

  • "允许"

  • "拒绝"

ran_info

别名:ran-info

字符串

RAN信息。

选项

  • "允许"

  • "拒绝"

redirection

字符串

重定向。

选项

  • "允许"

  • "拒绝"

relocation_cancel

别名:relocation-cancel

字符串

重定位取消。

选项

  • "允许"

  • "拒绝"

send_route

别名:send-route

字符串

发送路由。

选项

  • "允许"

  • "拒绝"

sgsn_context

别名:sgsn-context

字符串

SGSN上下文。

选项

  • "允许"

  • "拒绝"

support_extension

别名:support-extension

字符串

支持扩展。

选项

  • "允许"

  • "拒绝"

unknown_message_action

别名:unknown-message-action

字符串

未知消息操作。

选项

  • "允许"

  • "拒绝"

update_mbms

别名:update-mbms

字符串

更新MBMS。

选项

  • "允许"

  • "拒绝"

update_pdp

别名:update-pdp

字符串

更新PDP。

选项

  • "允许"

  • "拒绝"

version_not_support

别名:version-not-support

字符串

不支持的版本。

选项

  • "允许"

  • "拒绝"

message_filter_v0v1

别名:message-filter-v0v1

字符串

消息过滤器。

message_filter_v2

别名:message-filter-v2

字符串

消息过滤器。

message_rate_limit

别名:message-rate-limit

字典

消息速率限制。

create_aa_pdp_request

别名:create-aa-pdp-request

整数

创建AA PDP上下文请求的速率限制

create_aa_pdp_response

别名:create-aa-pdp-response

整数

创建AA PDP上下文响应的速率限制

create_mbms_request

别名:create-mbms-request

整数

创建MBMS上下文请求的速率限制

create_mbms_response

别名:create-mbms-response

整数

创建MBMS上下文响应的速率限制

create_pdp_request

别名:create-pdp-request

整数

创建PDP上下文请求的速率限制

create_pdp_response

别名:create-pdp-response

整数

创建PDP上下文响应的速率限制

delete_aa_pdp_request

别名:delete-aa-pdp-request

整数

删除AA PDP上下文请求的速率限制

delete_aa_pdp_response

别名:delete-aa-pdp-response

整数

删除AA PDP上下文响应的速率限制

delete_mbms_request

别名:delete-mbms-request

整数

删除MBMS上下文请求的速率限制

delete_mbms_response

别名:delete-mbms-response

整数

删除MBMS上下文响应的速率限制

delete_pdp_request

别名:delete-pdp-request

整数

删除PDP上下文请求的速率限制

delete_pdp_response

别名:delete-pdp-response

整数

删除PDP上下文响应的速率限制

echo_reponse

别名:echo-reponse

整数

回显响应的速率限制

echo_request

别名:echo-request

整数

回显请求的速率限制

echo_response

别名:echo-response

整数

回显响应的速率限制

error_indication

别名:错误指示

整数

错误指示的速率限制

failure_report_request

别名:failure-report-request

整数

故障报告请求的速率限制

failure_report_response

别名:failure-report-response

整数

故障报告响应的速率限制

fwd_reloc_complete_ack

别名:fwd-reloc-complete-ack

整数

转发重定位完成确认的速率限制

fwd_relocation_complete

别名:fwd-relocation-complete

整数

转发重定位完成的速率限制

fwd_relocation_request

别名:fwd-relocation-request

整数

转发重定位请求的速率限制

fwd_relocation_response

别名:fwd-relocation-response

整数

转发重定位响应的速率限制

fwd_srns_context

别名:fwd-srns-context

整数

转发SRNS上下文的速率限制

fwd_srns_context_ack

别名:fwd-srns-context-ack

整数

转发SRNS上下文确认的速率限制

g_pdu

别名:g-pdu

整数

G-PDU的速率限制

identification_request

别名:identification-request

整数

标识请求的速率限制

identification_response

别名:identification-response

整数

标识响应的速率限制

mbms_de_reg_request

别名:mbms-de-reg-request

整数

MBMS注销请求的速率限制

mbms_de_reg_response

别名:mbms-de-reg-response

整数

MBMS注销响应的速率限制

mbms_notify_rej_request

别名:mbms-notify-rej-request

整数

MBMS通知拒绝请求的速率限制

mbms_notify_rej_response

别名:mbms-notify-rej-response

整数

MBMS 通知拒绝响应的速率限制

mbms_notify_request

别名:mbms-notify-request

整数

MBMS 通知请求的速率限制

mbms_notify_response

别名:mbms-notify-response

整数

MBMS 通知响应的速率限制

mbms_reg_request

别名:mbms-reg-request

整数

MBMS 注册请求的速率限制

mbms_reg_response

别名:mbms-reg-response

整数

MBMS 注册响应的速率限制

mbms_ses_start_request

别名:mbms-ses-start-request

整数

MBMS 会话启动请求的速率限制

mbms_ses_start_response

别名:mbms-ses-start-response

整数

MBMS 会话启动响应的速率限制

mbms_ses_stop_request

别名:mbms-ses-stop-request

整数

MBMS 会话停止请求的速率限制

mbms_ses_stop_response

别名:mbms-ses-stop-response

整数

MBMS 会话停止响应的速率限制

note_ms_request

别名:note-ms-request

整数

Note MS GPRS 存在请求的速率限制

note_ms_response

别名:note-ms-response

整数

Note MS GPRS 存在响应的速率限制

pdu_notify_rej_request

别名:pdu-notify-rej-request

整数

PDU 通知拒绝请求的速率限制

pdu_notify_rej_response

别名:pdu-notify-rej-response

整数

PDU 通知拒绝响应的速率限制

pdu_notify_request

别名:pdu-notify-request

整数

PDU 通知请求的速率限制

pdu_notify_response

别名:pdu-notify-response

整数

PDU 通知响应的速率限制

ran_info

别名:ran-info

整数

RAN 信息中继的速率限制

relocation_cancel_request

别名:relocation-cancel-request

整数

位置取消请求的速率限制

relocation_cancel_response

别名:relocation-cancel-response

整数

位置取消响应的速率限制

send_route_request

别名:send-route-request

整数

发送 GPRS 路由信息的请求的速率限制

send_route_response

别名:send-route-response

整数

发送 GPRS 路由信息的响应的速率限制

sgsn_context_ack

别名:sgsn-context-ack

整数

SGSN 上下文确认的速率限制

sgsn_context_request

别名:sgsn-context-request

整数

SGSN 上下文请求的速率限制

sgsn_context_response

别名:sgsn-context-response

整数

SGSN 上下文响应的速率限制

support_ext_hdr_notify

别名:support-ext-hdr-notify

整数

支持扩展报头通知的速率限制

update_mbms_request

别名:update-mbms-request

整数

更新 MBMS 上下文请求的速率限制

update_mbms_response

别名:update-mbms-response

整数

更新 MBMS 上下文响应的速率限制

update_pdp_request

别名:update-pdp-request

整数

更新 PDP 上下文请求的速率限制

update_pdp_response

别名:update-pdp-response

整数

更新 PDP 上下文响应的速率限制

version_not_support

别名:version-not-support

整数

不支持版本时的速率限制

message_rate_limit_v0

别名:message-rate-limit-v0

字典

消息速率限制 v0。

create_pdp_request

别名:create-pdp-request

整数

速率限制

delete_pdp_request

别名:delete-pdp-request

整数

速率限制

echo_request

别名:echo-request

整数

速率限制

message_rate_limit_v1

别名:message-rate-limit-v1

字典

消息速率限制 v1。

create_pdp_request

别名:create-pdp-request

整数

速率限制

delete_pdp_request

别名:delete-pdp-request

整数

速率限制

echo_request

别名:echo-request

整数

速率限制

message_rate_limit_v2

别名:message-rate-limit-v2

字典

消息速率限制 v2。

create_session_request

别名:create-session-request

整数

速率限制

delete_session_request

别名:delete-session-request

整数

速率限制

echo_request

别名:echo-request

整数

速率限制

min_message_length

别名:min-message-length

整数

最小消息长度

miss_must_ie

别名:miss-must-ie

字符串

缺少必需的信息元素

选项

  • "允许"

  • "拒绝"

monitor_mode

别名:monitor-mode

字符串

GTP 监控模式

选项

  • "禁用"

  • "启用"

  • "vdom"

名称

字符串 / 必需

配置文件名称。

noip_filter

别名:noip-filter

字符串

用于封装流量的非 IP 过滤器

选项

  • "禁用"

  • "启用"

noip_policy

别名:noip-policy

列表 / 元素=字典

Noip策略。

action

字符串

动作。

选项

  • "允许"

  • "拒绝"

end

整数

协议范围结束

id

整数

ID。

start

整数

协议范围开始

type

字符串

协议字段类型。

选项

  • "etsi"

  • "ietf"

out_of_state_ie

别名:out-of-state-ie

字符串

非状态信息元素。

选项

  • "允许"

  • "拒绝"

out_of_state_message

别名:out-of-state-message

字符串

非状态 GTP 消息

选项

  • "允许"

  • "拒绝"

per_apn_shaper

别名:per-apn-shaper

列表 / 元素=字典

每个 APN 的整形器。

apn

字符串

APN 名称。

id

整数

ID。

rate_limit

别名:rate-limit

整数

速率限制

version

整数

GTP 版本号

策略

列表 / 元素=字典

策略。

action

字符串

动作。

选项

  • "允许"

  • "拒绝"

apn

字符串

APN 后缀。

apn_sel_mode

别名:apn-sel-mode

列表 / 元素=字符串

APN 选择模式。

选项

  • "ms"

  • "net"

  • "vrf"

apnmember

任意

(列表或字符串) APN 成员。

id

整数

ID。

imei

字符串

IMEI

imsi

字符串

IMSI 前缀。

imsi_prefix

别名:imsi-prefix

字符串

IMSI 前缀。

max_apn_restriction

别名:max-apn-restriction

字符串

最大 APN 限制值。

选项

  • "所有"

  • "公共-1"

  • "公共-2"

  • "私有-1"

  • "私有-2"

消息

列表 / 元素=字符串

GTP 消息。

选项

  • "创建请求"

  • "创建响应"

  • "更新请求"

  • "更新响应"

msisdn

字符串

MSISDN前缀。

msisdn_prefix

别名: msisdn-prefix

字符串

MSISDN前缀。

rai

字符串

RAI 模式。

rat_type

别名: rat-type

列表 / 元素=字符串

RAT 类型。

选项

  • "任意"

  • "Utran"

  • "Geran"

  • "WLAN"

  • “gan”

  • “hspa”

  • “eutran”

  • “虚拟”(xūnǐ)

  • “nbiot”

uli

字符串

ULI模式。

policy_filter

别名:policy-filter

字符串

高级策略过滤器

选项

  • "禁用"

  • "启用"

policy_v2

别名:policy-v2

列表 / 元素=字典

策略v2。

action

字符串

动作。

选项

  • "拒绝"

  • "允许"

apn_sel_mode

别名:apn-sel-mode

列表 / 元素=字符串

APN 选择模式。

选项

  • "ms"

  • "net"

  • "vrf"

apnmember

任意

(列表或字符串) APN 成员。

id

整数

ID。

imsi_prefix

别名:imsi-prefix

字符串

IMSI 前缀。

max_apn_restriction

别名:max-apn-restriction

字符串

最大 APN 限制值。

选项

  • "所有"

  • "公共-1"

  • "公共-2"

  • "私有-1"

  • "私有-2"

mei

字符串

MEI模式。

messages

列表 / 元素=字符串

GTP 消息。

选项

  • “create-ses-req”

  • “create-ses-res”

  • “modify-bearer-req”

  • “modify-bearer-res”

msisdn_prefix

别名: msisdn-prefix

字符串

MSISDN前缀。

rat_type

别名: rat-type

列表 / 元素=字符串

RAT 类型。

选项

  • "任意"

  • "Utran"

  • "Geran"

  • "WLAN"

  • “gan”

  • “hspa”

  • “eutran”

  • “虚拟”(xūnǐ)

  • “nbiot”

  • “ltem”

  • “nr”

uli

任意

(列表) GTPv2 ULI模式

port_notify

别名:port-notify

整数

超额计费通知端口

rat_timeout_profile

别名:rat-timeout-profile

字符串

RAT超时配置文件。

rate_limit_mode

别名:rate-limit-mode

字符串

GTP速率限制模式。

选项

  • “per-profile”

  • “per-stream”

  • “per-apn”

rate_limited_log

别名:rate-limited-log

字符串

记录速率限制

选项

  • "禁用"

  • "启用"

rate_sampling_interval

别名:rate-sampling-interval

整数

速率采样间隔

remove_if_echo_expires

别名:remove-if-echo-expires

字符串

如果回显响应过期则删除

选项

  • "禁用"

  • "启用"

remove_if_recovery_differ

别名:remove-if-recovery-differ

字符串

恢复IE不同时删除

选项

  • "禁用"

  • "启用"

reserved_ie

别名:reserved-ie

字符串

保留信息元素

选项

  • "允许"

  • "拒绝"

send_delete_when_timeout

别名:send-delete-when-timeout

字符串

当GTPv0/v1隧道超时时,向路径端点发送DELETE请求。

选项

  • "禁用"

  • "启用"

send_delete_when_timeout_v2

别名:send-delete-when-timeout-v2

字符串

当GTPv2隧道超时时,向路径端点发送DELETE请求。

选项

  • "禁用"

  • "启用"

spoof_src_addr

别名:spoof-src-addr

字符串

移动台的欺骗源地址。

选项

  • "允许"

  • "拒绝"

state_invalid_log

别名:state-invalid-log

字符串

记录状态无效

选项

  • "禁用"

  • "启用"

sub_second_interval

别名:sub-second-interval

字符串

亚秒级间隔

选项

  • "0.1"

  • "0.25"

  • "0.5"

sub_second_sampling

别名:sub-second-sampling

字符串

启用/禁用亚秒级采样。

选项

  • "禁用"

  • "启用"

traffic_count_log

别名:traffic-count-log

字符串

记录隧道流量计数器

选项

  • "禁用"

  • "启用"

tunnel_limit

别名:tunnel-limit

整数

隧道限制

tunnel_limit_log

别名:tunnel-limit-log

字符串

隧道限制

选项

  • "禁用"

  • "启用"

tunnel_timeout

别名:tunnel-timeout

整数

已建立的隧道超时

unknown_version_action

别名:unknown-version-action

字符串

未知gtp版本的动作

选项

  • "允许"

  • "拒绝"

user_plane_message_rate_limit

别名:user-plane-message-rate-limit

整数

用户平面消息速率限制

warning_threshold

别名:warning-threshold

整数

速率限制的警告阈值

forticloud_access_token

字符串

使用FortiCloud API访问令牌验证Ansible客户端。

proposed_method

字符串

底层Json RPC请求的覆盖方法。

选项

  • “update”

  • “set”

  • “add”

rc_failed

列表 / 元素=整数

将被覆盖的失败条件的rc代码列表。

rc_succeeded

列表 / 元素=整数

将被覆盖的成功条件的rc代码列表。

state

字符串 / 必需

创建、更新或删除对象的指令。

选项

  • “present”

  • “absent”

workspace_locking_adom

字符串

在工作区模式下运行FortiManager时要锁定的ADOM,值可以是global和其他包括root。

workspace_locking_timeout

整数

等待其他用户释放工作区锁的最大时间(秒)。

默认: 300

注释

注意

  • 从2.4.0版本开始,所有输入参数都使用下划线命名约定(snake_case)。请将诸如“var-name”之类的参数更改为“var_name”。旧的参数名称仍然可用,但您会收到弃用警告。您可以通过在ansible.cfg中设置deprecation_warnings=False来忽略此警告。

  • 此FortiManager模块支持在工作区锁定模式下运行,顶级参数workspace_locking_adom和workspace_locking_timeout有助于完成此工作。

  • 要创建或更新对象,请使用state present指令。

  • 要删除对象,请使用state absent指令。

  • 通常,当返回非零rc时,运行一个模块可能会失败。您还可以使用参数rc_failed和rc_succeeded来覆盖失败或成功的条件。

示例

- name: Example playbook
  hosts: fortimanagers
  connection: httpapi
  vars:
    ansible_httpapi_use_ssl: true
    ansible_httpapi_validate_certs: false
    ansible_httpapi_port: 443
  tasks:
    - name: Configure GTP.
      fortinet.fortimanager.fmgr_firewall_gtp:
        bypass_validation: false
        adom: FortiCarrier # This is FOC-only object, need a FortiCarrier adom
        state: present
        firewall_gtp:
          monitor-mode: disable # <value in [disable, enable, vdom]>
          name: "ansible-test"

- name: Gathering fortimanager facts
  hosts: fortimanagers
  gather_facts: false
  connection: httpapi
  vars:
    ansible_httpapi_use_ssl: true
    ansible_httpapi_validate_certs: false
    ansible_httpapi_port: 443
  tasks:
    - name: Retrieve all the GTPs
      fortinet.fortimanager.fmgr_fact:
        facts:
          selector: "firewall_gtp"
          params:
            adom: "FortiCarrier" # This is FOC-only object, need a FortiCarrier adom
            gtp: "your_value"

返回值

公共返回值已记录此处,以下是此模块特有的字段

描述

meta

字典

请求的结果。

返回:始终

request_url

字符串

请求的完整URL。

返回:始终

示例: "/sys/login/user"

response_code

整数

api请求的状态。

返回:始终

示例: 0

response_data

列表 / 元素=字符串

api响应。

返回:始终

response_message

字符串

api响应的描述性消息。

返回:始终

示例: "OK."

system_information

字典

目标系统的信息。

返回:始终

rc

整数

请求的状态。

返回:始终

示例: 0

version_check_warning

列表 / 元素=字符串

如果剧本中使用的参数不受当前FortiManager版本支持,则发出警告。

返回:复杂

作者

  • 杜欣伟 (@dux-fortinet)

  • 李星 (@lix-fortinet)

  • 薛杰 (@JieX19)

  • 郑链 (@chillancezen)

  • 沈方 (@fshen01)

  • 陆洪斌 (@fgtdev-hblu)