| 1 |
|
| 2 |
from __future__ import absolute_import, division, print_function |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
__metaclass__ = type |
| 7 |
|
| 8 |
ANSIBLE_METADATA = {'status': ['preview'], |
| 9 |
'supported_by': 'community', |
| 10 |
'metadata_version': '1.1'} |
| 11 |
|
| 12 |
DOCUMENTATION = ''' |
| 13 |
--- |
| 14 |
module: fmgr_vpn_ipsec_phase1 |
| 15 |
short_description: Configure VPN remote gateway. |
| 16 |
version_added: "2.12.0" |
| 17 |
extends_documentation_fragment: |
| 18 |
- fortinet.fortimanager.general |
| 19 |
- fortinet.fortimanager.general.full_crud |
| 20 |
options: |
| 21 |
revision_note: |
| 22 |
description: The change note that can be specified when an object is created or updated. |
| 23 |
type: str |
| 24 |
adom: |
| 25 |
description: The parameter (adom) in requested url. |
| 26 |
type: str |
| 27 |
required: true |
| 28 |
vpn_ipsec_phase1: |
| 29 |
description: The top level parameters set. |
| 30 |
required: false |
| 31 |
type: dict |
| 32 |
suboptions: |
| 33 |
acct_verify: |
| 34 |
aliases: ['acct-verify'] |
| 35 |
type: str |
| 36 |
description: Enable/disable verification of RADIUS accounting record. |
| 37 |
choices: ['disable', 'enable'] |
| 38 |
add_gw_route: |
| 39 |
aliases: ['add-gw-route'] |
| 40 |
type: str |
| 41 |
description: Enable/disable automatically add a route to the remote gateway. |
| 42 |
choices: ['disable', 'enable'] |
| 43 |
add_route: |
| 44 |
aliases: ['add-route'] |
| 45 |
type: str |
| 46 |
description: Enable/disable control addition of a route to peer destination selector. |
| 47 |
choices: ['disable', 'enable'] |
| 48 |
addke1: |
| 49 |
type: list |
| 50 |
elements: str |
| 51 |
description: ADDKE1 group. |
| 52 |
choices: ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', |
| 53 |
'1091', '1092', '1093', '1094', '35', '36', '37'] |
| 54 |
addke2: |
| 55 |
type: list |
| 56 |
elements: str |
| 57 |
description: ADDKE2 group. |
| 58 |
choices: ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', |
| 59 |
'1091', '1092', '1093', '1094', '35', '36', '37'] |
| 60 |
addke3: |
| 61 |
type: list |
| 62 |
elements: str |
| 63 |
description: ADDKE3 group. |
| 64 |
choices: ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', |
| 65 |
'1091', '1092', '1093', '1094', '35', '36', '37'] |
| 66 |
addke4: |
| 67 |
type: list |
| 68 |
elements: str |
| 69 |
description: ADDKE4 group. |
| 70 |
choices: ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', |
| 71 |
'1091', '1092', '1093', '1094', '35', '36', '37'] |
| 72 |
addke5: |
| 73 |
type: list |
| 74 |
elements: str |
| 75 |
description: ADDKE5 group. |
| 76 |
choices: ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', |
| 77 |
'1091', '1092', '1093', '1094', '35', '36', '37'] |
| 78 |
addke6: |
| 79 |
type: list |
| 80 |
elements: str |
| 81 |
description: ADDKE6 group. |
| 82 |
choices: ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', |
| 83 |
'1091', '1092', '1093', '1094', '35', '36', '37'] |
| 84 |
addke7: |
| 85 |
type: list |
| 86 |
elements: str |
| 87 |
description: ADDKE7 group. |
| 88 |
choices: ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', |
| 89 |
'1091', '1092', '1093', '1094', '35', '36', '37'] |
| 90 |
assign_ip: |
| 91 |
aliases: ['assign-ip'] |
| 92 |
type: str |
| 93 |
description: Enable/disable assignment of IP to IPsec interface via configuration method. |
| 94 |
choices: ['disable', 'enable'] |
| 95 |
assign_ip_from: |
| 96 |
aliases: ['assign-ip-from'] |
| 97 |
type: str |
| 98 |
description: Method by which the IP address will be assigned. |
| 99 |
choices: ['range', 'usrgrp', 'dhcp', 'name'] |
| 100 |
authmethod: |
| 101 |
type: str |
| 102 |
description: Authentication method. |
| 103 |
choices: ['psk', 'signature'] |
| 104 |
authmethod_remote: |
| 105 |
aliases: ['authmethod-remote'] |
| 106 |
type: str |
| 107 |
description: Authentication method |
| 108 |
choices: ['psk', 'signature'] |
| 109 |
authpasswd: |
| 110 |
type: list |
| 111 |
elements: str |
| 112 |
description: XAuth password |
| 113 |
authusr: |
| 114 |
type: str |
| 115 |
description: XAuth user name. |
| 116 |
authusrgrp: |
| 117 |
type: list |
| 118 |
elements: str |
| 119 |
description: Authentication user group. |
| 120 |
auto_negotiate: |
| 121 |
aliases: ['auto-negotiate'] |
| 122 |
type: str |
| 123 |
description: Enable/disable automatic initiation of IKE SA negotiation. |
| 124 |
choices: ['disable', 'enable'] |
| 125 |
auto_transport_threshold: |
| 126 |
aliases: ['auto-transport-threshold'] |
| 127 |
type: int |
| 128 |
description: Timeout in seconds before falling back to next transport protocol. |
| 129 |
azure_ad_autoconnect: |
| 130 |
aliases: ['azure-ad-autoconnect'] |
| 131 |
type: str |
| 132 |
description: Enable/disable Azure AD Auto-Connect for FortiClient. |
| 133 |
choices: ['disable', 'enable'] |
| 134 |
backup_gateway: |
| 135 |
aliases: ['backup-gateway'] |
| 136 |
type: list |
| 137 |
elements: str |
| 138 |
description: Instruct unity clients about the backup gateway address |
| 139 |
banner: |
| 140 |
type: str |
| 141 |
description: Message that unity client should display after connecting. |
| 142 |
cert_id_validation: |
| 143 |
aliases: ['cert-id-validation'] |
| 144 |
type: str |
| 145 |
description: Enable/disable cross validation of peer ID and the identity in the peers certificate as specified in RFC 4945. |
| 146 |
choices: ['disable', 'enable'] |
| 147 |
cert_peer_username_strip: |
| 148 |
aliases: ['cert-peer-username-strip'] |
| 149 |
type: str |
| 150 |
description: Enable/disable domain stripping on certificate identity. |
| 151 |
choices: ['disable', 'enable'] |
| 152 |
cert_peer_username_validation: |
| 153 |
aliases: ['cert-peer-username-validation'] |
| 154 |
type: str |
| 155 |
description: Enable/disable cross validation of peer username and the identity in the peers certificate. |
| 156 |
choices: ['othername', 'rfc822name', 'cn', 'none'] |
| 157 |
cert_trust_store: |
| 158 |
aliases: ['cert-trust-store'] |
| 159 |
type: str |
| 160 |
description: CA certificate trust store. |
| 161 |
choices: ['local', 'ems'] |
| 162 |
certificate: |
| 163 |
type: list |
| 164 |
elements: str |
| 165 |
description: Names of up to 4 signed personal certificates. |
| 166 |
childless_ike: |
| 167 |
aliases: ['childless-ike'] |
| 168 |
type: str |
| 169 |
description: Enable/disable childless IKEv2 initiation |
| 170 |
choices: ['disable', 'enable'] |
| 171 |
client_auto_negotiate: |
| 172 |
aliases: ['client-auto-negotiate'] |
| 173 |
type: str |
| 174 |
description: Enable/disable allowing the VPN client to bring up the tunnel when there is no traffic. |
| 175 |
choices: ['disable', 'enable'] |
| 176 |
client_keep_alive: |
| 177 |
aliases: ['client-keep-alive'] |
| 178 |
type: str |
| 179 |
description: Enable/disable allowing the VPN client to keep the tunnel up when there is no traffic. |
| 180 |
choices: ['disable', 'enable'] |
| 181 |
client_resume: |
| 182 |
aliases: ['client-resume'] |
| 183 |
type: str |
| 184 |
description: Enable/disable resumption of offline FortiClient sessions. |
| 185 |
choices: ['disable', 'enable'] |
| 186 |
client_resume_interval: |
| 187 |
aliases: ['client-resume-interval'] |
| 188 |
type: int |
| 189 |
description: Maximum time in seconds during which a VPN client may resume using a tunnel after a client PC has entered sleep mode or te... |
| 190 |
comments: |
| 191 |
type: str |
| 192 |
description: Comment. |
| 193 |
dev_id: |
| 194 |
aliases: ['dev-id'] |
| 195 |
type: str |
| 196 |
description: Device ID carried by the device ID notification. |
| 197 |
dev_id_notification: |
| 198 |
aliases: ['dev-id-notification'] |
| 199 |
type: str |
| 200 |
description: Enable/disable device ID notification. |
| 201 |
choices: ['disable', 'enable'] |
| 202 |
dhcp_ra_giaddr: |
| 203 |
aliases: ['dhcp-ra-giaddr'] |
| 204 |
type: str |
| 205 |
description: Relay agent gateway IP address to use in the giaddr field of DHCP requests. |
| 206 |
dhcp6_ra_linkaddr: |
| 207 |
aliases: ['dhcp6-ra-linkaddr'] |
| 208 |
type: str |
| 209 |
description: Relay agent IPv6 link address to use in DHCP6 requests. |
| 210 |
dhgrp: |
| 211 |
type: list |
| 212 |
elements: str |
| 213 |
description: DH group. |
| 214 |
choices: ['1', '2', '5', '14', '15', '16', '17', '18', '19', '20', '21', '27', |
| 215 |
'28', '29', '30', '31', '32'] |
| 216 |
digital_signature_auth: |
| 217 |
aliases: ['digital-signature-auth'] |
| 218 |
type: str |
| 219 |
description: Enable/disable IKEv2 Digital Signature Authentication |
| 220 |
choices: ['disable', 'enable'] |
| 221 |
distance: |
| 222 |
type: int |
| 223 |
description: Distance for routes added by IKE |
| 224 |
dns_mode: |
| 225 |
aliases: ['dns-mode'] |
| 226 |
type: str |
| 227 |
description: DNS server mode. |
| 228 |
choices: ['auto', 'manual'] |
| 229 |
dns_suffix_search: |
| 230 |
aliases: ['dns-suffix-search'] |
| 231 |
type: list |
| 232 |
elements: str |
| 233 |
description: One or more DNS domain name suffixes in quotes separated by spaces. |
| 234 |
domain: |
| 235 |
type: str |
| 236 |
description: Instruct unity clients about the single default DNS domain. |
| 237 |
dpd: |
| 238 |
type: str |
| 239 |
description: Dead Peer Detection mode. |
| 240 |
choices: ['disable', 'on-idle', 'on-demand'] |
| 241 |
dpd_retrycount: |
| 242 |
aliases: ['dpd-retrycount'] |
| 243 |
type: int |
| 244 |
description: Number of DPD retry attempts. |
| 245 |
dpd_retryinterval: |
| 246 |
aliases: ['dpd-retryinterval'] |
| 247 |
type: list |
| 248 |
elements: int |
| 249 |
description: DPD retry interval. |
| 250 |
eap: |
| 251 |
type: str |
| 252 |
description: Enable/disable IKEv2 EAP authentication. |
| 253 |
choices: ['disable', 'enable'] |
| 254 |
eap_cert_auth: |
| 255 |
aliases: ['eap-cert-auth'] |
| 256 |
type: str |
| 257 |
description: Enable/disable peer certificate authentication in addition to EAP if peer is a FortiClient endpoint. |
| 258 |
choices: ['disable', 'enable'] |
| 259 |
eap_exclude_peergrp: |
| 260 |
aliases: ['eap-exclude-peergrp'] |
| 261 |
type: list |
| 262 |
elements: str |
| 263 |
description: Peer group excluded from EAP authentication. |
| 264 |
eap_identity: |
| 265 |
aliases: ['eap-identity'] |
| 266 |
type: str |
| 267 |
description: IKEv2 EAP peer identity type. |
| 268 |
choices: ['use-id-payload', 'send-request'] |
| 269 |
ems_sn_check: |
| 270 |
aliases: ['ems-sn-check'] |
| 271 |
type: str |
| 272 |
description: Enable/disable verification of EMS serial number. |
| 273 |
choices: ['enable', 'disable'] |
| 274 |
enforce_unique_id: |
| 275 |
aliases: ['enforce-unique-id'] |
| 276 |
type: str |
| 277 |
description: Enable/disable peer ID uniqueness check. |
| 278 |
choices: ['disable', 'keep-new', 'keep-old'] |
| 279 |
esn: |
| 280 |
type: str |
| 281 |
description: Extended sequence number |
| 282 |
choices: ['disable', 'require', 'allow'] |
| 283 |
exchange_fgt_device_id: |
| 284 |
aliases: ['exchange-fgt-device-id'] |
| 285 |
type: str |
| 286 |
description: Enable/disable device identifier exchange with peer FortiGate units for use of VPN monitor data by FortiManager. |
| 287 |
choices: ['disable', 'enable'] |
| 288 |
fec_base: |
| 289 |
aliases: ['fec-base'] |
| 290 |
type: int |
| 291 |
description: Number of base Forward Error Correction packets |
| 292 |
fec_codec: |
| 293 |
aliases: ['fec-codec'] |
| 294 |
type: str |
| 295 |
description: Forward Error Correction encoding/decoding algorithm. |
| 296 |
choices: ['rs', 'xor'] |
| 297 |
fec_egress: |
| 298 |
aliases: ['fec-egress'] |
| 299 |
type: str |
| 300 |
description: Enable/disable Forward Error Correction for egress IPsec traffic. |
| 301 |
choices: ['disable', 'enable'] |
| 302 |
fec_health_check: |
| 303 |
aliases: ['fec-health-check'] |
| 304 |
type: list |
| 305 |
elements: str |
| 306 |
description: SD-WAN health check. |
| 307 |
fec_ingress: |
| 308 |
aliases: ['fec-ingress'] |
| 309 |
type: str |
| 310 |
description: Enable/disable Forward Error Correction for ingress IPsec traffic. |
| 311 |
choices: ['disable', 'enable'] |
| 312 |
fec_mapping_profile: |
| 313 |
aliases: ['fec-mapping-profile'] |
| 314 |
type: list |
| 315 |
elements: str |
| 316 |
description: Forward Error Correction |
| 317 |
fec_receive_timeout: |
| 318 |
aliases: ['fec-receive-timeout'] |
| 319 |
type: int |
| 320 |
description: Timeout in milliseconds before dropping Forward Error Correction packets |
| 321 |
fec_redundant: |
| 322 |
aliases: ['fec-redundant'] |
| 323 |
type: int |
| 324 |
description: Number of redundant Forward Error Correction packets |
| 325 |
fec_send_timeout: |
| 326 |
aliases: ['fec-send-timeout'] |
| 327 |
type: int |
| 328 |
description: Timeout in milliseconds before sending Forward Error Correction packets |
| 329 |
fgsp_sync: |
| 330 |
aliases: ['fgsp-sync'] |
| 331 |
type: str |
| 332 |
description: Enable/disable IPsec syncing of tunnels for FGSP IPsec. |
| 333 |
choices: ['disable', 'enable'] |
| 334 |
fortinet_esp: |
| 335 |
aliases: ['fortinet-esp'] |
| 336 |
type: str |
| 337 |
description: Enable/disable Fortinet ESP encapsulaton. |
| 338 |
choices: ['disable', 'enable'] |
| 339 |
fragmentation: |
| 340 |
type: str |
| 341 |
description: Enable/disable fragment IKE message on re-transmission. |
| 342 |
choices: ['disable', 'enable'] |
| 343 |
fragmentation_mtu: |
| 344 |
aliases: ['fragmentation-mtu'] |
| 345 |
type: int |
| 346 |
description: IKE fragmentation MTU |
| 347 |
group_authentication: |
| 348 |
aliases: ['group-authentication'] |
| 349 |
type: str |
| 350 |
description: Enable/disable IKEv2 IDi group authentication. |
| 351 |
choices: ['disable', 'enable'] |
| 352 |
group_authentication_secret: |
| 353 |
aliases: ['group-authentication-secret'] |
| 354 |
type: list |
| 355 |
elements: str |
| 356 |
description: Password for IKEv2 ID group authentication. |
| 357 |
ha_sync_esp_seqno: |
| 358 |
aliases: ['ha-sync-esp-seqno'] |
| 359 |
type: str |
| 360 |
description: Enable/disable sequence number jump ahead for IPsec HA. |
| 361 |
choices: ['disable', 'enable'] |
| 362 |
idle_timeout: |
| 363 |
aliases: ['idle-timeout'] |
| 364 |
type: str |
| 365 |
description: Enable/disable IPsec tunnel idle timeout. |
| 366 |
choices: ['disable', 'enable'] |
| 367 |
idle_timeoutinterval: |
| 368 |
aliases: ['idle-timeoutinterval'] |
| 369 |
type: int |
| 370 |
description: IPsec tunnel idle timeout in minutes |
| 371 |
ike_version: |
| 372 |
aliases: ['ike-version'] |
| 373 |
type: str |
| 374 |
description: IKE protocol version. |
| 375 |
choices: ['1', '2'] |
| 376 |
inbound_dscp_copy: |
| 377 |
aliases: ['inbound-dscp-copy'] |
| 378 |
type: str |
| 379 |
description: Enable/disable copy the dscp in the ESP header to the inner IP Header. |
| 380 |
choices: ['disable', 'enable'] |
| 381 |
include_local_lan: |
| 382 |
aliases: ['include-local-lan'] |
| 383 |
type: str |
| 384 |
description: Enable/disable allow local LAN access on unity clients. |
| 385 |
choices: ['disable', 'enable'] |
| 386 |
interface: |
| 387 |
type: list |
| 388 |
elements: str |
| 389 |
description: Local physical, aggregate, or VLAN outgoing interface. |
| 390 |
internal_domain_list: |
| 391 |
aliases: ['internal-domain-list'] |
| 392 |
type: list |
| 393 |
elements: str |
| 394 |
description: One or more internal domain names in quotes separated by spaces. |
| 395 |
ip_delay_interval: |
| 396 |
aliases: ['ip-delay-interval'] |
| 397 |
type: int |
| 398 |
description: IP address reuse delay interval in seconds |
| 399 |
ipv4_dns_server1: |
| 400 |
aliases: ['ipv4-dns-server1'] |
| 401 |
type: str |
| 402 |
description: IPv4 DNS server 1. |
| 403 |
ipv4_dns_server2: |
| 404 |
aliases: ['ipv4-dns-server2'] |
| 405 |
type: str |
| 406 |
description: IPv4 DNS server 2. |
| 407 |
ipv4_dns_server3: |
| 408 |
aliases: ['ipv4-dns-server3'] |
| 409 |
type: str |
| 410 |
description: IPv4 DNS server 3. |
| 411 |
ipv4_end_ip: |
| 412 |
aliases: ['ipv4-end-ip'] |
| 413 |
type: str |
| 414 |
description: End of IPv4 range. |
| 415 |
ipv4_exclude_range: |
| 416 |
aliases: ['ipv4-exclude-range'] |
| 417 |
type: list |
| 418 |
elements: dict |
| 419 |
description: Ipv4 exclude range. |
| 420 |
suboptions: |
| 421 |
end_ip: |
| 422 |
aliases: ['end-ip'] |
| 423 |
type: str |
| 424 |
description: End of IPv4 exclusive range. |
| 425 |
id: |
| 426 |
type: int |
| 427 |
description: ID. |
| 428 |
start_ip: |
| 429 |
aliases: ['start-ip'] |
| 430 |
type: str |
| 431 |
description: Start of IPv4 exclusive range. |
| 432 |
ipv4_name: |
| 433 |
aliases: ['ipv4-name'] |
| 434 |
type: list |
| 435 |
elements: str |
| 436 |
description: IPv4 address name. |
| 437 |
ipv4_netmask: |
| 438 |
aliases: ['ipv4-netmask'] |
| 439 |
type: str |
| 440 |
description: IPv4 Netmask. |
| 441 |
ipv4_split_exclude: |
| 442 |
aliases: ['ipv4-split-exclude'] |
| 443 |
type: list |
| 444 |
elements: str |
| 445 |
description: IPv4 subnets that should not be sent over the IPsec tunnel. |
| 446 |
ipv4_split_include: |
| 447 |
aliases: ['ipv4-split-include'] |
| 448 |
type: list |
| 449 |
elements: str |
| 450 |
description: IPv4 split-include subnets. |
| 451 |
ipv4_start_ip: |
| 452 |
aliases: ['ipv4-start-ip'] |
| 453 |
type: str |
| 454 |
description: Start of IPv4 range. |
| 455 |
ipv4_wins_server1: |
| 456 |
aliases: ['ipv4-wins-server1'] |
| 457 |
type: str |
| 458 |
description: WINS server 1. |
| 459 |
ipv4_wins_server2: |
| 460 |
aliases: ['ipv4-wins-server2'] |
| 461 |
type: str |
| 462 |
description: WINS server 2. |
| 463 |
ipv6_auto_linklocal: |
| 464 |
aliases: ['ipv6-auto-linklocal'] |
| 465 |
type: str |
| 466 |
description: Enable/disable auto generation of IPv6 link-local address using last 8 bytes of mode-cfg assigned IPv6 address. |
| 467 |
choices: ['disable', 'enable'] |
| 468 |
ipv6_dns_server1: |
| 469 |
aliases: ['ipv6-dns-server1'] |
| 470 |
type: str |
| 471 |
description: IPv6 DNS server 1. |
| 472 |
ipv6_dns_server2: |
| 473 |
aliases: ['ipv6-dns-server2'] |
| 474 |
type: str |
| 475 |
description: IPv6 DNS server 2. |
| 476 |
ipv6_dns_server3: |
| 477 |
aliases: ['ipv6-dns-server3'] |
| 478 |
type: str |
| 479 |
description: IPv6 DNS server 3. |
| 480 |
ipv6_end_ip: |
| 481 |
aliases: ['ipv6-end-ip'] |
| 482 |
type: str |
| 483 |
description: End of IPv6 range. |
| 484 |
ipv6_exclude_range: |
| 485 |
aliases: ['ipv6-exclude-range'] |
| 486 |
type: list |
| 487 |
elements: dict |
| 488 |
description: Ipv6 exclude range. |
| 489 |
suboptions: |
| 490 |
end_ip: |
| 491 |
aliases: ['end-ip'] |
| 492 |
type: str |
| 493 |
description: End of IPv6 exclusive range. |
| 494 |
id: |
| 495 |
type: int |
| 496 |
description: ID. |
| 497 |
start_ip: |
| 498 |
aliases: ['start-ip'] |
| 499 |
type: str |
| 500 |
description: Start of IPv6 exclusive range. |
| 501 |
ipv6_name: |
| 502 |
aliases: ['ipv6-name'] |
| 503 |
type: list |
| 504 |
elements: str |
| 505 |
description: IPv6 address name. |
| 506 |
ipv6_prefix: |
| 507 |
aliases: ['ipv6-prefix'] |
| 508 |
type: int |
| 509 |
description: IPv6 prefix. |
| 510 |
ipv6_split_exclude: |
| 511 |
aliases: ['ipv6-split-exclude'] |
| 512 |
type: list |
| 513 |
elements: str |
| 514 |
description: IPv6 subnets that should not be sent over the IPsec tunnel. |
| 515 |
ipv6_split_include: |
| 516 |
aliases: ['ipv6-split-include'] |
| 517 |
type: list |
| 518 |
elements: str |
| 519 |
description: IPv6 split-include subnets. |
| 520 |
ipv6_start_ip: |
| 521 |
aliases: ['ipv6-start-ip'] |
| 522 |
type: str |
| 523 |
description: Start of IPv6 range. |
| 524 |
keepalive: |
| 525 |
type: int |
| 526 |
description: NAT-T keep alive interval. |
| 527 |
keylife: |
| 528 |
type: int |
| 529 |
description: Time to wait in seconds before phase 1 encryption key expires. |
| 530 |
kms: |
| 531 |
type: list |
| 532 |
elements: str |
| 533 |
description: Key Management Services server. |
| 534 |
link_cost: |
| 535 |
aliases: ['link-cost'] |
| 536 |
type: int |
| 537 |
description: VPN tunnel underlay link cost. |
| 538 |
local_gw: |
| 539 |
aliases: ['local-gw'] |
| 540 |
type: str |
| 541 |
description: Local VPN gateway. |
| 542 |
localid: |
| 543 |
type: str |
| 544 |
description: Local ID. |
| 545 |
localid_type: |
| 546 |
aliases: ['localid-type'] |
| 547 |
type: str |
| 548 |
description: Local ID type. |
| 549 |
choices: ['auto', 'fqdn', 'user-fqdn', 'keyid', 'address', 'asn1dn'] |
| 550 |
loopback_asymroute: |
| 551 |
aliases: ['loopback-asymroute'] |
| 552 |
type: str |
| 553 |
description: Enable/disable asymmetric routing for IKE traffic on loopback interface. |
| 554 |
choices: ['disable', 'enable'] |
| 555 |
mesh_selector_type: |
| 556 |
aliases: ['mesh-selector-type'] |
| 557 |
type: str |
| 558 |
description: Add selectors containing subsets of the configuration depending on traffic. |
| 559 |
choices: ['disable', 'subnet', 'host'] |
| 560 |
mode: |
| 561 |
type: str |
| 562 |
description: ID protection mode used to establish a secure channel. |
| 563 |
choices: ['main', 'aggressive'] |
| 564 |
mode_cfg: |
| 565 |
aliases: ['mode-cfg'] |
| 566 |
type: str |
| 567 |
description: Enable/disable configuration method. |
| 568 |
choices: ['disable', 'enable'] |
| 569 |
mode_cfg_allow_client_selector: |
| 570 |
aliases: ['mode-cfg-allow-client-selector'] |
| 571 |
type: str |
| 572 |
description: Enable/disable mode-cfg client to use custom phase2 selectors. |
| 573 |
choices: ['disable', 'enable'] |
| 574 |
name: |
| 575 |
type: str |
| 576 |
description: IPsec remote gateway name. |
| 577 |
required: true |
| 578 |
nattraversal: |
| 579 |
type: str |
| 580 |
description: Enable/disable NAT traversal. |
| 581 |
choices: ['disable', 'enable', 'forced'] |
| 582 |
negotiate_timeout: |
| 583 |
aliases: ['negotiate-timeout'] |
| 584 |
type: int |
| 585 |
description: IKE SA negotiation timeout in seconds |
| 586 |
network_id: |
| 587 |
aliases: ['network-id'] |
| 588 |
type: int |
| 589 |
description: VPN gateway network ID. |
| 590 |
network_overlay: |
| 591 |
aliases: ['network-overlay'] |
| 592 |
type: str |
| 593 |
description: Enable/disable network overlays. |
| 594 |
choices: ['disable', 'enable'] |
| 595 |
npu_offload: |
| 596 |
aliases: ['npu-offload'] |
| 597 |
type: str |
| 598 |
description: Enable/disable offloading NPU. |
| 599 |
choices: ['disable', 'enable'] |
| 600 |
peer: |
| 601 |
type: list |
| 602 |
elements: str |
| 603 |
description: Accept this peer certificate. |
| 604 |
peergrp: |
| 605 |
type: list |
| 606 |
elements: str |
| 607 |
description: Accept this peer certificate group. |
| 608 |
peerid: |
| 609 |
type: str |
| 610 |
description: Accept this peer identity. |
| 611 |
peertype: |
| 612 |
type: str |
| 613 |
description: Accept this peer type. |
| 614 |
choices: ['any', 'one', 'dialup', 'peer', 'peergrp'] |
| 615 |
ppk: |
| 616 |
type: str |
| 617 |
description: Enable/disable IKEv2 Postquantum Preshared Key |
| 618 |
choices: ['disable', 'allow', 'require'] |
| 619 |
ppk_identity: |
| 620 |
aliases: ['ppk-identity'] |
| 621 |
type: str |
| 622 |
description: IKEv2 Postquantum Preshared Key Identity. |
| 623 |
ppk_secret: |
| 624 |
aliases: ['ppk-secret'] |
| 625 |
type: list |
| 626 |
elements: str |
| 627 |
description: IKEv2 Postquantum Preshared Key |
| 628 |
priority: |
| 629 |
type: int |
| 630 |
description: Priority for routes added by IKE |
| 631 |
proposal: |
| 632 |
type: str |
| 633 |
description: Phase1 proposal. |
| 634 |
choices: ['des-md5', 'des-sha1', '3des-md5', '3des-sha1', 'aes128-md5', |
| 635 |
'aes128-sha1', 'aes192-md5', 'aes192-sha1', 'aes256-md5', 'aes256-sha1', |
| 636 |
'des-sha256', '3des-sha256', 'aes128-sha256', 'aes192-sha256', |
| 637 |
'aes256-sha256', 'des-sha384', 'des-sha512', '3des-sha384', |
| 638 |
'3des-sha512', 'aes128-sha384', 'aes128-sha512', 'aes192-sha384', |
| 639 |
'aes192-sha512', 'aes256-sha384', 'aes256-sha512', 'aria128-md5', |
| 640 |
'aria128-sha1', 'aria128-sha256', 'aria128-sha384', 'aria128-sha512', |
| 641 |
'aria192-md5', 'aria192-sha1', 'aria192-sha256', 'aria192-sha384', |
| 642 |
'aria192-sha512', 'aria256-md5', 'aria256-sha1', 'aria256-sha256', |
| 643 |
'aria256-sha384', 'aria256-sha512', 'seed-md5', 'seed-sha1', |
| 644 |
'seed-sha256', 'seed-sha384', 'seed-sha512', 'aes128gcm-prfsha1', |
| 645 |
'aes128gcm-prfsha256', 'aes128gcm-prfsha384', 'aes128gcm-prfsha512', |
| 646 |
'aes256gcm-prfsha1', 'aes256gcm-prfsha256', 'aes256gcm-prfsha384', |
| 647 |
'aes256gcm-prfsha512', 'chacha20poly1305-prfsha1', |
| 648 |
'chacha20poly1305-prfsha256', 'chacha20poly1305-prfsha384', |
| 649 |
'chacha20poly1305-prfsha512'] |
| 650 |
psksecret: |
| 651 |
type: list |
| 652 |
elements: str |
| 653 |
description: Pre-shared secret for PSK authentication |
| 654 |
psksecret_remote: |
| 655 |
aliases: ['psksecret-remote'] |
| 656 |
type: list |
| 657 |
elements: str |
| 658 |
description: Pre-shared secret for remote side PSK authentication |
| 659 |
qkd: |
| 660 |
type: str |
| 661 |
description: Enable/disable use of Quantum Key Distribution |
| 662 |
choices: ['disable', 'allow', 'require'] |
| 663 |
qkd_hybrid: |
| 664 |
aliases: ['qkd-hybrid'] |
| 665 |
type: str |
| 666 |
description: Enable/disable use of Quantum Key Distribution |
| 667 |
choices: ['disable', 'require', 'allow'] |
| 668 |
qkd_profile: |
| 669 |
aliases: ['qkd-profile'] |
| 670 |
type: list |
| 671 |
elements: str |
| 672 |
description: Quantum Key Distribution |
| 673 |
reauth: |
| 674 |
type: str |
| 675 |
description: Enable/disable re-authentication upon IKE SA lifetime expiration. |
| 676 |
choices: ['disable', 'enable'] |
| 677 |
rekey: |
| 678 |
type: str |
| 679 |
description: Enable/disable phase1 rekey. |
| 680 |
choices: ['disable', 'enable'] |
| 681 |
remote_gw: |
| 682 |
aliases: ['remote-gw'] |
| 683 |
type: str |
| 684 |
description: Remote VPN gateway. |
| 685 |
remote_gw_country: |
| 686 |
aliases: ['remote-gw-country'] |
| 687 |
type: str |
| 688 |
description: IPv4 addresses associated to a specific country. |
| 689 |
remote_gw_end_ip: |
| 690 |
aliases: ['remote-gw-end-ip'] |
| 691 |
type: str |
| 692 |
description: Last IPv4 address in the range. |
| 693 |
remote_gw_match: |
| 694 |
aliases: ['remote-gw-match'] |
| 695 |
type: str |
| 696 |
description: Set type of IPv4 remote gateway address matching. |
| 697 |
choices: ['any', 'ipmask', 'iprange', 'geography', 'ztna'] |
| 698 |
remote_gw_start_ip: |
| 699 |
aliases: ['remote-gw-start-ip'] |
| 700 |
type: str |
| 701 |
description: First IPv4 address in the range. |
| 702 |
remote_gw_subnet: |
| 703 |
aliases: ['remote-gw-subnet'] |
| 704 |
type: list |
| 705 |
elements: str |
| 706 |
description: IPv4 address and subnet mask. |
| 707 |
remote_gw_ztna_tags: |
| 708 |
aliases: ['remote-gw-ztna-tags'] |
| 709 |
type: list |
| 710 |
elements: str |
| 711 |
description: IPv4 ZTNA posture tags. |
| 712 |
remote_gw6_country: |
| 713 |
aliases: ['remote-gw6-country'] |
| 714 |
type: str |
| 715 |
description: IPv6 addresses associated to a specific country. |
| 716 |
remote_gw6_end_ip: |
| 717 |
aliases: ['remote-gw6-end-ip'] |
| 718 |
type: str |
| 719 |
description: Last IPv6 address in the range. |
| 720 |
remote_gw6_match: |
| 721 |
aliases: ['remote-gw6-match'] |
| 722 |
type: str |
| 723 |
description: Set type of IPv6 remote gateway address matching. |
| 724 |
choices: ['any', 'iprange', 'geography', 'ipprefix'] |
| 725 |
remote_gw6_start_ip: |
| 726 |
aliases: ['remote-gw6-start-ip'] |
| 727 |
type: str |
| 728 |
description: First IPv6 address in the range. |
| 729 |
remote_gw6_subnet: |
| 730 |
aliases: ['remote-gw6-subnet'] |
| 731 |
type: str |
| 732 |
description: IPv6 address and prefix. |
| 733 |
remotegw_ddns: |
| 734 |
aliases: ['remotegw-ddns'] |
| 735 |
type: str |
| 736 |
description: Domain name of remote gateway. |
| 737 |
rsa_signature_format: |
| 738 |
aliases: ['rsa-signature-format'] |
| 739 |
type: str |
| 740 |
description: Digital Signature Authentication RSA signature format. |
| 741 |
choices: ['pkcs1', 'pss'] |
| 742 |
rsa_signature_hash_override: |
| 743 |
aliases: ['rsa-signature-hash-override'] |
| 744 |
type: str |
| 745 |
description: Enable/disable IKEv2 RSA signature hash algorithm override. |
| 746 |
choices: ['disable', 'enable'] |
| 747 |
save_password: |
| 748 |
aliases: ['save-password'] |
| 749 |
type: str |
| 750 |
description: Enable/disable saving XAuth username and password on VPN clients. |
| 751 |
choices: ['disable', 'enable'] |
| 752 |
send_cert_chain: |
| 753 |
aliases: ['send-cert-chain'] |
| 754 |
type: str |
| 755 |
description: Enable/disable sending certificate chain. |
| 756 |
choices: ['disable', 'enable'] |
| 757 |
shared_idle_timeout: |
| 758 |
aliases: ['shared-idle-timeout'] |
| 759 |
type: str |
| 760 |
description: Enable/disable IPsec tunnel shared idle timeout. |
| 761 |
choices: ['disable', 'enable'] |
| 762 |
signature_hash_alg: |
| 763 |
aliases: ['signature-hash-alg'] |
| 764 |
type: list |
| 765 |
elements: str |
| 766 |
description: Digital Signature Authentication hash algorithms. |
| 767 |
choices: ['sha1', 'sha2-256', 'sha2-384', 'sha2-512'] |
| 768 |
split_include_service: |
| 769 |
aliases: ['split-include-service'] |
| 770 |
type: list |
| 771 |
elements: str |
| 772 |
description: Split-include services. |
| 773 |
suite_b: |
| 774 |
aliases: ['suite-b'] |
| 775 |
type: str |
| 776 |
description: Use Suite-B. |
| 777 |
choices: ['disable', 'suite-b-gcm-128', 'suite-b-gcm-256'] |
| 778 |
transit_gateway: |
| 779 |
aliases: ['transit-gateway'] |
| 780 |
type: str |
| 781 |
description: IPsec tunnel created by autoscaling to be used as a transit gateway. |
| 782 |
choices: ['disable', 'enable'] |
| 783 |
transport: |
| 784 |
type: str |
| 785 |
description: Set IKE transport protocol. |
| 786 |
choices: ['udp', 'tcp', 'auto', 'udp-fallback-tcp'] |
| 787 |
type: |
| 788 |
type: str |
| 789 |
description: Remote gateway type. |
| 790 |
choices: ['static', 'dynamic', 'ddns'] |
| 791 |
unity_support: |
| 792 |
aliases: ['unity-support'] |
| 793 |
type: str |
| 794 |
description: Enable/disable support for Cisco UNITY Configuration Method extensions. |
| 795 |
choices: ['disable', 'enable'] |
| 796 |
usrgrp: |
| 797 |
type: list |
| 798 |
elements: str |
| 799 |
description: User group name for dialup peers. |
| 800 |
wizard_type: |
| 801 |
aliases: ['wizard-type'] |
| 802 |
type: str |
| 803 |
description: GUI VPN Wizard Type. |
| 804 |
choices: ['custom', 'dialup-forticlient', 'dialup-ios', 'dialup-android', |
| 805 |
'dialup-cisco', 'static-fortigate', 'static-cisco', 'dialup-windows', |
| 806 |
'dialup-fortigate', 'dialup-cisco-fw', 'simplified-static-fortigate', |
| 807 |
'hub-fortigate-auto-discovery', 'spoke-fortigate-auto-discovery', |
| 808 |
'fabric-overlay-orchestrator'] |
| 809 |
xauthtype: |
| 810 |
type: str |
| 811 |
description: XAuth type. |
| 812 |
choices: ['disable', 'client', 'pap', 'chap', 'auto'] |
| 813 |
fallback_tcp_threshold: |
| 814 |
aliases: ['fallback-tcp-threshold'] |
| 815 |
type: int |
| 816 |
description: Timeout in seconds before falling back IKE/IPsec traffic to tcp. |
| 817 |
forticlient_enforcement: |
| 818 |
aliases: ['forticlient-enforcement'] |
| 819 |
type: str |
| 820 |
description: Enable/disable FortiClient enforcement. |
| 821 |
choices: ['disable', 'enable'] |
| 822 |
''' |
| 823 |
|
| 824 |
EXAMPLES = ''' |
| 825 |
- name: Example playbook (generated based on argument schema) |
| 826 |
hosts: fortimanagers |
| 827 |
connection: httpapi |
| 828 |
gather_facts: false |
| 829 |
tasks: |
| 830 |
- name: Configure VPN remote gateway. |
| 831 |
fortinet.fortimanager.fmgr_vpn_ipsec_phase1: |
| 832 |
# workspace_locking_adom: <global or your adom name> |
| 833 |
adom: <your own value> |
| 834 |
state: present # <value in [present, absent]> |
| 835 |
vpn_ipsec_phase1: |
| 836 |
name: "your value" # Required variable, string |
| 837 |
# acct_verify: <value in [disable, enable]> |
| 838 |
# add_gw_route: <value in [disable, enable]> |
| 839 |
# add_route: <value in [disable, enable]> |
| 840 |
# addke1: ["0", "1080", "1081", "1082", "1083", "1084", "1085", "1089", "1090", "1091", |
| 841 |
# "1092", "1093", "1094", "35", "36", "37"] |
| 842 |
# addke2: ["0", "1080", "1081", "1082", "1083", "1084", "1085", "1089", "1090", "1091", |
| 843 |
# "1092", "1093", "1094", "35", "36", "37"] |
| 844 |
# addke3: ["0", "1080", "1081", "1082", "1083", "1084", "1085", "1089", "1090", "1091", |
| 845 |
# "1092", "1093", "1094", "35", "36", "37"] |
| 846 |
# addke4: ["0", "1080", "1081", "1082", "1083", "1084", "1085", "1089", "1090", "1091", |
| 847 |
# "1092", "1093", "1094", "35", "36", "37"] |
| 848 |
# addke5: ["0", "1080", "1081", "1082", "1083", "1084", "1085", "1089", "1090", "1091", |
| 849 |
# "1092", "1093", "1094", "35", "36", "37"] |
| 850 |
# addke6: ["0", "1080", "1081", "1082", "1083", "1084", "1085", "1089", "1090", "1091", |
| 851 |
# "1092", "1093", "1094", "35", "36", "37"] |
| 852 |
# addke7: ["0", "1080", "1081", "1082", "1083", "1084", "1085", "1089", "1090", "1091", |
| 853 |
# "1092", "1093", "1094", "35", "36", "37"] |
| 854 |
# assign_ip: <value in [disable, enable]> |
| 855 |
# assign_ip_from: <value in [range, usrgrp, dhcp, ...]> |
| 856 |
# authmethod: <value in [psk, signature]> |
| 857 |
# authmethod_remote: <value in [psk, signature]> |
| 858 |
# authpasswd: <list or string> |
| 859 |
# authusr: <string> |
| 860 |
# authusrgrp: <list or string> |
| 861 |
# auto_negotiate: <value in [disable, enable]> |
| 862 |
# auto_transport_threshold: <integer> |
| 863 |
# azure_ad_autoconnect: <value in [disable, enable]> |
| 864 |
# backup_gateway: <list or string> |
| 865 |
# banner: <string> |
| 866 |
# cert_id_validation: <value in [disable, enable]> |
| 867 |
# cert_peer_username_strip: <value in [disable, enable]> |
| 868 |
# cert_peer_username_validation: <value in [othername, rfc822name, cn, ...]> |
| 869 |
# cert_trust_store: <value in [local, ems]> |
| 870 |
# certificate: <list or string> |
| 871 |
# childless_ike: <value in [disable, enable]> |
| 872 |
# client_auto_negotiate: <value in [disable, enable]> |
| 873 |
# client_keep_alive: <value in [disable, enable]> |
| 874 |
# client_resume: <value in [disable, enable]> |
| 875 |
# client_resume_interval: <integer> |
| 876 |
# comments: <string> |
| 877 |
# dev_id: <string> |
| 878 |
# dev_id_notification: <value in [disable, enable]> |
| 879 |
# dhcp_ra_giaddr: <string> |
| 880 |
# dhcp6_ra_linkaddr: <string> |
| 881 |
# dhgrp: ["1", "2", "5", "14", "15", "16", "17", "18", "19", "20", "21", "27", "28", |
| 882 |
# "29", "30", "31", "32"] |
| 883 |
# digital_signature_auth: <value in [disable, enable]> |
| 884 |
# distance: <integer> |
| 885 |
# dns_mode: <value in [auto, manual]> |
| 886 |
# dns_suffix_search: <list or string> |
| 887 |
# domain: <string> |
| 888 |
# dpd: <value in [disable, on-idle, on-demand]> |
| 889 |
# dpd_retrycount: <integer> |
| 890 |
# dpd_retryinterval: <list or integer> |
| 891 |
# eap: <value in [disable, enable]> |
| 892 |
# eap_cert_auth: <value in [disable, enable]> |
| 893 |
# eap_exclude_peergrp: <list or string> |
| 894 |
# eap_identity: <value in [use-id-payload, send-request]> |
| 895 |
# ems_sn_check: <value in [enable, disable]> |
| 896 |
# enforce_unique_id: <value in [disable, keep-new, keep-old]> |
| 897 |
# esn: <value in [disable, require, allow]> |
| 898 |
# exchange_fgt_device_id: <value in [disable, enable]> |
| 899 |
# fec_base: <integer> |
| 900 |
# fec_codec: <value in [rs, xor]> |
| 901 |
# fec_egress: <value in [disable, enable]> |
| 902 |
# fec_health_check: <list or string> |
| 903 |
# fec_ingress: <value in [disable, enable]> |
| 904 |
# fec_mapping_profile: <list or string> |
| 905 |
# fec_receive_timeout: <integer> |
| 906 |
# fec_redundant: <integer> |
| 907 |
# fec_send_timeout: <integer> |
| 908 |
# fgsp_sync: <value in [disable, enable]> |
| 909 |
# fortinet_esp: <value in [disable, enable]> |
| 910 |
# fragmentation: <value in [disable, enable]> |
| 911 |
# fragmentation_mtu: <integer> |
| 912 |
# group_authentication: <value in [disable, enable]> |
| 913 |
# group_authentication_secret: <list or string> |
| 914 |
# ha_sync_esp_seqno: <value in [disable, enable]> |
| 915 |
# idle_timeout: <value in [disable, enable]> |
| 916 |
# idle_timeoutinterval: <integer> |
| 917 |
# ike_version: <value in [1, 2]> |
| 918 |
# inbound_dscp_copy: <value in [disable, enable]> |
| 919 |
# include_local_lan: <value in [disable, enable]> |
| 920 |
# interface: <list or string> |
| 921 |
# internal_domain_list: <list or string> |
| 922 |
# ip_delay_interval: <integer> |
| 923 |
# ipv4_dns_server1: <string> |
| 924 |
# ipv4_dns_server2: <string> |
| 925 |
# ipv4_dns_server3: <string> |
| 926 |
# ipv4_end_ip: <string> |
| 927 |
# ipv4_exclude_range: |
| 928 |
# - end_ip: <string> |
| 929 |
# id: <integer> |
| 930 |
# start_ip: <string> |
| 931 |
# ipv4_name: <list or string> |
| 932 |
# ipv4_netmask: <string> |
| 933 |
# ipv4_split_exclude: <list or string> |
| 934 |
# ipv4_split_include: <list or string> |
| 935 |
# ipv4_start_ip: <string> |
| 936 |
# ipv4_wins_server1: <string> |
| 937 |
# ipv4_wins_server2: <string> |
| 938 |
# ipv6_auto_linklocal: <value in [disable, enable]> |
| 939 |
# ipv6_dns_server1: <string> |
| 940 |
# ipv6_dns_server2: <string> |
| 941 |
# ipv6_dns_server3: <string> |
| 942 |
# ipv6_end_ip: <string> |
| 943 |
# ipv6_exclude_range: |
| 944 |
# - end_ip: <string> |
| 945 |
# id: <integer> |
| 946 |
# start_ip: <string> |
| 947 |
# ipv6_name: <list or string> |
| 948 |
# ipv6_prefix: <integer> |
| 949 |
# ipv6_split_exclude: <list or string> |
| 950 |
# ipv6_split_include: <list or string> |
| 951 |
# ipv6_start_ip: <string> |
| 952 |
# keepalive: <integer> |
| 953 |
# keylife: <integer> |
| 954 |
# kms: <list or string> |
| 955 |
# link_cost: <integer> |
| 956 |
# local_gw: <string> |
| 957 |
# localid: <string> |
| 958 |
# localid_type: <value in [auto, fqdn, user-fqdn, ...]> |
| 959 |
# loopback_asymroute: <value in [disable, enable]> |
| 960 |
# mesh_selector_type: <value in [disable, subnet, host]> |
| 961 |
# mode: <value in [main, aggressive]> |
| 962 |
# mode_cfg: <value in [disable, enable]> |
| 963 |
# mode_cfg_allow_client_selector: <value in [disable, enable]> |
| 964 |
# nattraversal: <value in [disable, enable, forced]> |
| 965 |
# negotiate_timeout: <integer> |
| 966 |
# network_id: <integer> |
| 967 |
# network_overlay: <value in [disable, enable]> |
| 968 |
# npu_offload: <value in [disable, enable]> |
| 969 |
# peer: <list or string> |
| 970 |
# peergrp: <list or string> |
| 971 |
# peerid: <string> |
| 972 |
# peertype: <value in [any, one, dialup, ...]> |
| 973 |
# ppk: <value in [disable, allow, require]> |
| 974 |
# ppk_identity: <string> |
| 975 |
# ppk_secret: <list or string> |
| 976 |
# priority: <integer> |
| 977 |
# proposal: <value in [des-md5, des-sha1, 3des-md5, ...]> |
| 978 |
# psksecret: <list or string> |
| 979 |
# psksecret_remote: <list or string> |
| 980 |
# qkd: <value in [disable, allow, require]> |
| 981 |
# qkd_hybrid: <value in [disable, require, allow]> |
| 982 |
# qkd_profile: <list or string> |
| 983 |
# reauth: <value in [disable, enable]> |
| 984 |
# rekey: <value in [disable, enable]> |
| 985 |
# remote_gw: <string> |
| 986 |
# remote_gw_country: <string> |
| 987 |
# remote_gw_end_ip: <string> |
| 988 |
# remote_gw_match: <value in [any, ipmask, iprange, ...]> |
| 989 |
# remote_gw_start_ip: <string> |
| 990 |
# remote_gw_subnet: <list or string> |
| 991 |
# remote_gw_ztna_tags: <list or string> |
| 992 |
# remote_gw6_country: <string> |
| 993 |
# remote_gw6_end_ip: <string> |
| 994 |
# remote_gw6_match: <value in [any, iprange, geography, ...]> |
| 995 |
# remote_gw6_start_ip: <string> |
| 996 |
# remote_gw6_subnet: <string> |
| 997 |
# remotegw_ddns: <string> |
| 998 |
# rsa_signature_format: <value in [pkcs1, pss]> |
| 999 |
# rsa_signature_hash_override: <value in [disable, enable]> |
| 1000 |
# save_password: <value in [disable, enable]> |
| 1001 |
# send_cert_chain: <value in [disable, enable]> |
| 1002 |
# shared_idle_timeout: <value in [disable, enable]> |
| 1003 |
# signature_hash_alg: ["sha1", "sha2-256", "sha2-384", "sha2-512"] |
| 1004 |
# split_include_service: <list or string> |
| 1005 |
# suite_b: <value in [disable, suite-b-gcm-128, suite-b-gcm-256]> |
| 1006 |
# transit_gateway: <value in [disable, enable]> |
| 1007 |
# transport: <value in [udp, tcp, auto, ...]> |
| 1008 |
# type: <value in [static, dynamic, ddns]> |
| 1009 |
# unity_support: <value in [disable, enable]> |
| 1010 |
# usrgrp: <list or string> |
| 1011 |
# wizard_type: <value in [custom, dialup-forticlient, dialup-ios, ...]> |
| 1012 |
# xauthtype: <value in [disable, client, pap, ...]> |
| 1013 |
# fallback_tcp_threshold: <integer> |
| 1014 |
# forticlient_enforcement: <value in [disable, enable]> |
| 1015 |
''' |
| 1016 |
|
| 1017 |
RETURN = ''' |
| 1018 |
meta: |
| 1019 |
description: The result of the request. |
| 1020 |
type: dict |
| 1021 |
returned: always |
| 1022 |
contains: |
| 1023 |
request_url: |
| 1024 |
description: The full url requested. |
| 1025 |
returned: always |
| 1026 |
type: str |
| 1027 |
sample: /sys/login/user |
| 1028 |
response_code: |
| 1029 |
description: The status of api request. |
| 1030 |
returned: always |
| 1031 |
type: int |
| 1032 |
sample: 0 |
| 1033 |
response_data: |
| 1034 |
description: The api response. |
| 1035 |
type: list |
| 1036 |
returned: always |
| 1037 |
response_message: |
| 1038 |
description: The descriptive message of the api response. |
| 1039 |
type: str |
| 1040 |
returned: always |
| 1041 |
sample: OK. |
| 1042 |
system_information: |
| 1043 |
description: The information of the target system. |
| 1044 |
type: dict |
| 1045 |
returned: always |
| 1046 |
rc: |
| 1047 |
description: The status the request. |
| 1048 |
type: int |
| 1049 |
returned: always |
| 1050 |
sample: 0 |
| 1051 |
version_check_warning: |
| 1052 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 1053 |
type: list |
| 1054 |
returned: complex |
| 1055 |
''' |
| 1056 |
from ansible.module_utils.basic import AnsibleModule |
| 1057 |
from ansible.module_utils.connection import Connection |
| 1058 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 1059 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 1060 |
|
| 1061 |
|
| 1062 |
def main(): |
| 1063 |
urls_list = [ |
| 1064 |
'/pm/config/adom/{adom}/obj/vpn/ipsec/phase1', |
| 1065 |
'/pm/config/global/obj/vpn/ipsec/phase1' |
| 1066 |
] |
| 1067 |
module_arg_spec = { |
| 1068 |
'adom': {'required': True, 'type': 'str'}, |
| 1069 |
'revision_note': {'type': 'str'}, |
| 1070 |
'vpn_ipsec_phase1': { |
| 1071 |
'type': 'dict', 'v_range': [['7.6.4', '']], |
| 1072 |
'options': { |
| 1073 |
'acct-verify': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1074 |
'add-gw-route': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1075 |
'add-route': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1076 |
'addke1': { |
| 1077 |
'v_range': [['7.6.4', '']], |
| 1078 |
'type': 'list', |
| 1079 |
'choices': ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', '1091', '1092', '1093', '1094', '35', '36', '37'], |
| 1080 |
'elements': 'str' |
| 1081 |
}, |
| 1082 |
'addke2': { |
| 1083 |
'v_range': [['7.6.4', '']], |
| 1084 |
'type': 'list', |
| 1085 |
'choices': ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', '1091', '1092', '1093', '1094', '35', '36', '37'], |
| 1086 |
'elements': 'str' |
| 1087 |
}, |
| 1088 |
'addke3': { |
| 1089 |
'v_range': [['7.6.4', '']], |
| 1090 |
'type': 'list', |
| 1091 |
'choices': ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', '1091', '1092', '1093', '1094', '35', '36', '37'], |
| 1092 |
'elements': 'str' |
| 1093 |
}, |
| 1094 |
'addke4': { |
| 1095 |
'v_range': [['7.6.4', '']], |
| 1096 |
'type': 'list', |
| 1097 |
'choices': ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', '1091', '1092', '1093', '1094', '35', '36', '37'], |
| 1098 |
'elements': 'str' |
| 1099 |
}, |
| 1100 |
'addke5': { |
| 1101 |
'v_range': [['7.6.4', '']], |
| 1102 |
'type': 'list', |
| 1103 |
'choices': ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', '1091', '1092', '1093', '1094', '35', '36', '37'], |
| 1104 |
'elements': 'str' |
| 1105 |
}, |
| 1106 |
'addke6': { |
| 1107 |
'v_range': [['7.6.4', '']], |
| 1108 |
'type': 'list', |
| 1109 |
'choices': ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', '1091', '1092', '1093', '1094', '35', '36', '37'], |
| 1110 |
'elements': 'str' |
| 1111 |
}, |
| 1112 |
'addke7': { |
| 1113 |
'v_range': [['7.6.4', '']], |
| 1114 |
'type': 'list', |
| 1115 |
'choices': ['0', '1080', '1081', '1082', '1083', '1084', '1085', '1089', '1090', '1091', '1092', '1093', '1094', '35', '36', '37'], |
| 1116 |
'elements': 'str' |
| 1117 |
}, |
| 1118 |
'assign-ip': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1119 |
'assign-ip-from': {'v_range': [['7.6.4', '']], 'choices': ['range', 'usrgrp', 'dhcp', 'name'], 'type': 'str'}, |
| 1120 |
'authmethod': {'v_range': [['7.6.4', '']], 'choices': ['psk', 'signature'], 'type': 'str'}, |
| 1121 |
'authmethod-remote': {'v_range': [['7.6.4', '']], 'choices': ['psk', 'signature'], 'type': 'str'}, |
| 1122 |
'authpasswd': {'v_range': [['7.6.4', '']], 'no_log': True, 'type': 'list', 'elements': 'str'}, |
| 1123 |
'authusr': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1124 |
'authusrgrp': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1125 |
'auto-negotiate': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1126 |
'auto-transport-threshold': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1127 |
'azure-ad-autoconnect': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1128 |
'backup-gateway': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1129 |
'banner': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1130 |
'cert-id-validation': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1131 |
'cert-peer-username-strip': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1132 |
'cert-peer-username-validation': {'v_range': [['7.6.4', '']], 'choices': ['othername', 'rfc822name', 'cn', 'none'], 'type': 'str'}, |
| 1133 |
'cert-trust-store': {'v_range': [['7.6.4', '']], 'choices': ['local', 'ems'], 'type': 'str'}, |
| 1134 |
'certificate': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1135 |
'childless-ike': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1136 |
'client-auto-negotiate': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1137 |
'client-keep-alive': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1138 |
'client-resume': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1139 |
'client-resume-interval': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1140 |
'comments': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1141 |
'dev-id': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1142 |
'dev-id-notification': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1143 |
'dhcp-ra-giaddr': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1144 |
'dhcp6-ra-linkaddr': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1145 |
'dhgrp': { |
| 1146 |
'v_range': [['7.6.4', '']], |
| 1147 |
'type': 'list', |
| 1148 |
'choices': ['1', '2', '5', '14', '15', '16', '17', '18', '19', '20', '21', '27', '28', '29', '30', '31', '32'], |
| 1149 |
'elements': 'str' |
| 1150 |
}, |
| 1151 |
'digital-signature-auth': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1152 |
'distance': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1153 |
'dns-mode': {'v_range': [['7.6.4', '']], 'choices': ['auto', 'manual'], 'type': 'str'}, |
| 1154 |
'dns-suffix-search': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1155 |
'domain': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1156 |
'dpd': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'on-idle', 'on-demand'], 'type': 'str'}, |
| 1157 |
'dpd-retrycount': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1158 |
'dpd-retryinterval': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'int'}, |
| 1159 |
'eap': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1160 |
'eap-cert-auth': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1161 |
'eap-exclude-peergrp': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1162 |
'eap-identity': {'v_range': [['7.6.4', '']], 'choices': ['use-id-payload', 'send-request'], 'type': 'str'}, |
| 1163 |
'ems-sn-check': {'v_range': [['7.6.4', '']], 'choices': ['enable', 'disable'], 'type': 'str'}, |
| 1164 |
'enforce-unique-id': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'keep-new', 'keep-old'], 'type': 'str'}, |
| 1165 |
'esn': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'require', 'allow'], 'type': 'str'}, |
| 1166 |
'exchange-fgt-device-id': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1167 |
'fec-base': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1168 |
'fec-codec': {'v_range': [['7.6.4', '']], 'choices': ['rs', 'xor'], 'type': 'str'}, |
| 1169 |
'fec-egress': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1170 |
'fec-health-check': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1171 |
'fec-ingress': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1172 |
'fec-mapping-profile': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1173 |
'fec-receive-timeout': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1174 |
'fec-redundant': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1175 |
'fec-send-timeout': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1176 |
'fgsp-sync': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1177 |
'fortinet-esp': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1178 |
'fragmentation': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1179 |
'fragmentation-mtu': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1180 |
'group-authentication': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1181 |
'group-authentication-secret': {'v_range': [['7.6.4', '']], 'no_log': True, 'type': 'list', 'elements': 'str'}, |
| 1182 |
'ha-sync-esp-seqno': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1183 |
'idle-timeout': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1184 |
'idle-timeoutinterval': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1185 |
'ike-version': {'v_range': [['7.6.4', '']], 'choices': ['1', '2'], 'type': 'str'}, |
| 1186 |
'inbound-dscp-copy': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1187 |
'include-local-lan': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1188 |
'interface': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1189 |
'internal-domain-list': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1190 |
'ip-delay-interval': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1191 |
'ipv4-dns-server1': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1192 |
'ipv4-dns-server2': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1193 |
'ipv4-dns-server3': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1194 |
'ipv4-end-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1195 |
'ipv4-exclude-range': { |
| 1196 |
'v_range': [['7.6.4', '']], |
| 1197 |
'type': 'list', |
| 1198 |
'options': { |
| 1199 |
'end-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1200 |
'id': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1201 |
'start-ip': {'v_range': [['7.6.4', '']], 'type': 'str'} |
| 1202 |
}, |
| 1203 |
'elements': 'dict' |
| 1204 |
}, |
| 1205 |
'ipv4-name': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1206 |
'ipv4-netmask': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1207 |
'ipv4-split-exclude': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1208 |
'ipv4-split-include': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1209 |
'ipv4-start-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1210 |
'ipv4-wins-server1': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1211 |
'ipv4-wins-server2': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1212 |
'ipv6-auto-linklocal': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1213 |
'ipv6-dns-server1': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1214 |
'ipv6-dns-server2': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1215 |
'ipv6-dns-server3': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1216 |
'ipv6-end-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1217 |
'ipv6-exclude-range': { |
| 1218 |
'v_range': [['7.6.4', '']], |
| 1219 |
'type': 'list', |
| 1220 |
'options': { |
| 1221 |
'end-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1222 |
'id': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1223 |
'start-ip': {'v_range': [['7.6.4', '']], 'type': 'str'} |
| 1224 |
}, |
| 1225 |
'elements': 'dict' |
| 1226 |
}, |
| 1227 |
'ipv6-name': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1228 |
'ipv6-prefix': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1229 |
'ipv6-split-exclude': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1230 |
'ipv6-split-include': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1231 |
'ipv6-start-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1232 |
'keepalive': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1233 |
'keylife': {'v_range': [['7.6.4', '']], 'no_log': True, 'type': 'int'}, |
| 1234 |
'kms': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1235 |
'link-cost': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1236 |
'local-gw': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1237 |
'localid': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1238 |
'localid-type': {'v_range': [['7.6.4', '']], 'choices': ['auto', 'fqdn', 'user-fqdn', 'keyid', 'address', 'asn1dn'], 'type': 'str'}, |
| 1239 |
'loopback-asymroute': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1240 |
'mesh-selector-type': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'subnet', 'host'], 'type': 'str'}, |
| 1241 |
'mode': {'v_range': [['7.6.4', '']], 'choices': ['main', 'aggressive'], 'type': 'str'}, |
| 1242 |
'mode-cfg': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1243 |
'mode-cfg-allow-client-selector': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1244 |
'name': {'v_range': [['7.6.4', '']], 'required': True, 'type': 'str'}, |
| 1245 |
'nattraversal': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable', 'forced'], 'type': 'str'}, |
| 1246 |
'negotiate-timeout': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1247 |
'network-id': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1248 |
'network-overlay': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1249 |
'npu-offload': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1250 |
'peer': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1251 |
'peergrp': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1252 |
'peerid': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1253 |
'peertype': {'v_range': [['7.6.4', '']], 'choices': ['any', 'one', 'dialup', 'peer', 'peergrp'], 'type': 'str'}, |
| 1254 |
'ppk': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'allow', 'require'], 'type': 'str'}, |
| 1255 |
'ppk-identity': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1256 |
'ppk-secret': {'v_range': [['7.6.4', '']], 'no_log': True, 'type': 'list', 'elements': 'str'}, |
| 1257 |
'priority': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1258 |
'proposal': { |
| 1259 |
'v_range': [['7.6.4', '']], |
| 1260 |
'choices': [ |
| 1261 |
'des-md5', 'des-sha1', '3des-md5', '3des-sha1', 'aes128-md5', 'aes128-sha1', 'aes192-md5', 'aes192-sha1', 'aes256-md5', |
| 1262 |
'aes256-sha1', 'des-sha256', '3des-sha256', 'aes128-sha256', 'aes192-sha256', 'aes256-sha256', 'des-sha384', 'des-sha512', |
| 1263 |
'3des-sha384', '3des-sha512', 'aes128-sha384', 'aes128-sha512', 'aes192-sha384', 'aes192-sha512', 'aes256-sha384', |
| 1264 |
'aes256-sha512', 'aria128-md5', 'aria128-sha1', 'aria128-sha256', 'aria128-sha384', 'aria128-sha512', 'aria192-md5', |
| 1265 |
'aria192-sha1', 'aria192-sha256', 'aria192-sha384', 'aria192-sha512', 'aria256-md5', 'aria256-sha1', 'aria256-sha256', |
| 1266 |
'aria256-sha384', 'aria256-sha512', 'seed-md5', 'seed-sha1', 'seed-sha256', 'seed-sha384', 'seed-sha512', 'aes128gcm-prfsha1', |
| 1267 |
'aes128gcm-prfsha256', 'aes128gcm-prfsha384', 'aes128gcm-prfsha512', 'aes256gcm-prfsha1', 'aes256gcm-prfsha256', |
| 1268 |
'aes256gcm-prfsha384', 'aes256gcm-prfsha512', 'chacha20poly1305-prfsha1', 'chacha20poly1305-prfsha256', |
| 1269 |
'chacha20poly1305-prfsha384', 'chacha20poly1305-prfsha512' |
| 1270 |
], |
| 1271 |
'type': 'str' |
| 1272 |
}, |
| 1273 |
'psksecret': {'v_range': [['7.6.4', '']], 'no_log': True, 'type': 'list', 'elements': 'str'}, |
| 1274 |
'psksecret-remote': {'v_range': [['7.6.4', '']], 'no_log': True, 'type': 'list', 'elements': 'str'}, |
| 1275 |
'qkd': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'allow', 'require'], 'type': 'str'}, |
| 1276 |
'qkd-hybrid': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'require', 'allow'], 'type': 'str'}, |
| 1277 |
'qkd-profile': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1278 |
'reauth': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1279 |
'rekey': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1280 |
'remote-gw': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1281 |
'remote-gw-country': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1282 |
'remote-gw-end-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1283 |
'remote-gw-match': {'v_range': [['7.6.4', '']], 'choices': ['any', 'ipmask', 'iprange', 'geography', 'ztna'], 'type': 'str'}, |
| 1284 |
'remote-gw-start-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1285 |
'remote-gw-subnet': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1286 |
'remote-gw-ztna-tags': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1287 |
'remote-gw6-country': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1288 |
'remote-gw6-end-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1289 |
'remote-gw6-match': {'v_range': [['7.6.4', '']], 'choices': ['any', 'iprange', 'geography', 'ipprefix'], 'type': 'str'}, |
| 1290 |
'remote-gw6-start-ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1291 |
'remote-gw6-subnet': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1292 |
'remotegw-ddns': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1293 |
'rsa-signature-format': {'v_range': [['7.6.4', '']], 'choices': ['pkcs1', 'pss'], 'type': 'str'}, |
| 1294 |
'rsa-signature-hash-override': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1295 |
'save-password': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1296 |
'send-cert-chain': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1297 |
'shared-idle-timeout': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1298 |
'signature-hash-alg': { |
| 1299 |
'v_range': [['7.6.4', '']], |
| 1300 |
'type': 'list', |
| 1301 |
'choices': ['sha1', 'sha2-256', 'sha2-384', 'sha2-512'], |
| 1302 |
'elements': 'str' |
| 1303 |
}, |
| 1304 |
'split-include-service': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1305 |
'suite-b': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'suite-b-gcm-128', 'suite-b-gcm-256'], 'type': 'str'}, |
| 1306 |
'transit-gateway': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1307 |
'transport': {'v_range': [['7.6.4', '']], 'choices': ['udp', 'tcp', 'auto', 'udp-fallback-tcp'], 'type': 'str'}, |
| 1308 |
'type': {'v_range': [['7.6.4', '']], 'choices': ['static', 'dynamic', 'ddns'], 'type': 'str'}, |
| 1309 |
'unity-support': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1310 |
'usrgrp': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1311 |
'wizard-type': { |
| 1312 |
'v_range': [['7.6.4', '']], |
| 1313 |
'choices': [ |
| 1314 |
'custom', 'dialup-forticlient', 'dialup-ios', 'dialup-android', 'dialup-cisco', 'static-fortigate', 'static-cisco', |
| 1315 |
'dialup-windows', 'dialup-fortigate', 'dialup-cisco-fw', 'simplified-static-fortigate', 'hub-fortigate-auto-discovery', |
| 1316 |
'spoke-fortigate-auto-discovery', 'fabric-overlay-orchestrator' |
| 1317 |
], |
| 1318 |
'type': 'str' |
| 1319 |
}, |
| 1320 |
'xauthtype': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'client', 'pap', 'chap', 'auto'], 'type': 'str'}, |
| 1321 |
'fallback-tcp-threshold': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1322 |
'forticlient-enforcement': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 1323 |
} |
| 1324 |
} |
| 1325 |
} |
| 1326 |
|
| 1327 |
module_option_spec = get_module_arg_spec('full crud') |
| 1328 |
module_arg_spec.update(module_option_spec) |
| 1329 |
check_galaxy_version(module_arg_spec) |
| 1330 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'vpn_ipsec_phase1'), |
| 1331 |
supports_check_mode=True) |
| 1332 |
if not module._socket_path: |
| 1333 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 1334 |
connection = Connection(module._socket_path) |
| 1335 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 1336 |
'name', 'data', module, connection) |
| 1337 |
fmgr.process_crud() |
| 1338 |
module.exit_json(meta=module.params) |
| 1339 |
|
| 1340 |
|
| 1341 |
if __name__ == '__main__': |
| 1342 |
main() |