| 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_widsprofile |
| 15 |
short_description: Configure wireless intrusion detection system |
| 16 |
version_added: "2.0.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 |
widsprofile: |
| 29 |
description: The top level parameters set. |
| 30 |
required: false |
| 31 |
type: dict |
| 32 |
suboptions: |
| 33 |
ap_auto_suppress: |
| 34 |
aliases: ['ap-auto-suppress'] |
| 35 |
type: str |
| 36 |
description: Enable/disable on-wire rogue AP auto-suppression |
| 37 |
choices: ['disable', 'enable'] |
| 38 |
ap_bgscan_disable_day: |
| 39 |
aliases: ['ap-bgscan-disable-day'] |
| 40 |
type: list |
| 41 |
elements: str |
| 42 |
description: Optionally turn off scanning for one or more days of the week. |
| 43 |
choices: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', |
| 44 |
'saturday'] |
| 45 |
ap_bgscan_disable_end: |
| 46 |
aliases: ['ap-bgscan-disable-end'] |
| 47 |
type: str |
| 48 |
description: End time, using a 24-hour clock in the format of hh |
| 49 |
ap_bgscan_disable_start: |
| 50 |
aliases: ['ap-bgscan-disable-start'] |
| 51 |
type: str |
| 52 |
description: Start time, using a 24-hour clock in the format of hh |
| 53 |
ap_bgscan_duration: |
| 54 |
aliases: ['ap-bgscan-duration'] |
| 55 |
type: int |
| 56 |
description: Listening time on a scanning channel |
| 57 |
ap_bgscan_idle: |
| 58 |
aliases: ['ap-bgscan-idle'] |
| 59 |
type: int |
| 60 |
description: Waiting time for channel inactivity before scanning this channel |
| 61 |
ap_bgscan_intv: |
| 62 |
aliases: ['ap-bgscan-intv'] |
| 63 |
type: int |
| 64 |
description: Period of time between scanning two channels |
| 65 |
ap_bgscan_period: |
| 66 |
aliases: ['ap-bgscan-period'] |
| 67 |
type: int |
| 68 |
description: Period of time between background scans |
| 69 |
ap_bgscan_report_intv: |
| 70 |
aliases: ['ap-bgscan-report-intv'] |
| 71 |
type: int |
| 72 |
description: Period of time between background scan reports |
| 73 |
ap_fgscan_report_intv: |
| 74 |
aliases: ['ap-fgscan-report-intv'] |
| 75 |
type: int |
| 76 |
description: Period of time between foreground scan reports |
| 77 |
ap_scan: |
| 78 |
aliases: ['ap-scan'] |
| 79 |
type: str |
| 80 |
description: Enable/disable rogue AP detection. |
| 81 |
choices: ['disable', 'enable'] |
| 82 |
ap_scan_passive: |
| 83 |
aliases: ['ap-scan-passive'] |
| 84 |
type: str |
| 85 |
description: Enable/disable passive scanning. |
| 86 |
choices: ['disable', 'enable'] |
| 87 |
asleap_attack: |
| 88 |
aliases: ['asleap-attack'] |
| 89 |
type: str |
| 90 |
description: Enable/disable asleap attack detection |
| 91 |
choices: ['disable', 'enable'] |
| 92 |
assoc_flood_thresh: |
| 93 |
aliases: ['assoc-flood-thresh'] |
| 94 |
type: int |
| 95 |
description: The threshold value for association frame flooding. |
| 96 |
assoc_flood_time: |
| 97 |
aliases: ['assoc-flood-time'] |
| 98 |
type: int |
| 99 |
description: Number of seconds after which a station is considered not connected. |
| 100 |
assoc_frame_flood: |
| 101 |
aliases: ['assoc-frame-flood'] |
| 102 |
type: str |
| 103 |
description: Enable/disable association frame flooding detection |
| 104 |
choices: ['disable', 'enable'] |
| 105 |
auth_flood_thresh: |
| 106 |
aliases: ['auth-flood-thresh'] |
| 107 |
type: int |
| 108 |
description: The threshold value for authentication frame flooding. |
| 109 |
auth_flood_time: |
| 110 |
aliases: ['auth-flood-time'] |
| 111 |
type: int |
| 112 |
description: Number of seconds after which a station is considered not connected. |
| 113 |
auth_frame_flood: |
| 114 |
aliases: ['auth-frame-flood'] |
| 115 |
type: str |
| 116 |
description: Enable/disable authentication frame flooding detection |
| 117 |
choices: ['disable', 'enable'] |
| 118 |
comment: |
| 119 |
type: str |
| 120 |
description: Comment. |
| 121 |
deauth_broadcast: |
| 122 |
aliases: ['deauth-broadcast'] |
| 123 |
type: str |
| 124 |
description: Enable/disable broadcasting de-authentication detection |
| 125 |
choices: ['disable', 'enable'] |
| 126 |
deauth_unknown_src_thresh: |
| 127 |
aliases: ['deauth-unknown-src-thresh'] |
| 128 |
type: int |
| 129 |
description: Threshold value per second to deauth unknown src for DoS attack |
| 130 |
eapol_fail_flood: |
| 131 |
aliases: ['eapol-fail-flood'] |
| 132 |
type: str |
| 133 |
description: Enable/disable EAPOL-Failure flooding |
| 134 |
choices: ['disable', 'enable'] |
| 135 |
eapol_fail_intv: |
| 136 |
aliases: ['eapol-fail-intv'] |
| 137 |
type: int |
| 138 |
description: The detection interval for EAPOL-Failure flooding |
| 139 |
eapol_fail_thresh: |
| 140 |
aliases: ['eapol-fail-thresh'] |
| 141 |
type: int |
| 142 |
description: The threshold value for EAPOL-Failure flooding in specified interval. |
| 143 |
eapol_logoff_flood: |
| 144 |
aliases: ['eapol-logoff-flood'] |
| 145 |
type: str |
| 146 |
description: Enable/disable EAPOL-Logoff flooding |
| 147 |
choices: ['disable', 'enable'] |
| 148 |
eapol_logoff_intv: |
| 149 |
aliases: ['eapol-logoff-intv'] |
| 150 |
type: int |
| 151 |
description: The detection interval for EAPOL-Logoff flooding |
| 152 |
eapol_logoff_thresh: |
| 153 |
aliases: ['eapol-logoff-thresh'] |
| 154 |
type: int |
| 155 |
description: The threshold value for EAPOL-Logoff flooding in specified interval. |
| 156 |
eapol_pre_fail_flood: |
| 157 |
aliases: ['eapol-pre-fail-flood'] |
| 158 |
type: str |
| 159 |
description: Enable/disable premature EAPOL-Failure flooding |
| 160 |
choices: ['disable', 'enable'] |
| 161 |
eapol_pre_fail_intv: |
| 162 |
aliases: ['eapol-pre-fail-intv'] |
| 163 |
type: int |
| 164 |
description: The detection interval for premature EAPOL-Failure flooding |
| 165 |
eapol_pre_fail_thresh: |
| 166 |
aliases: ['eapol-pre-fail-thresh'] |
| 167 |
type: int |
| 168 |
description: The threshold value for premature EAPOL-Failure flooding in specified interval. |
| 169 |
eapol_pre_succ_flood: |
| 170 |
aliases: ['eapol-pre-succ-flood'] |
| 171 |
type: str |
| 172 |
description: Enable/disable premature EAPOL-Success flooding |
| 173 |
choices: ['disable', 'enable'] |
| 174 |
eapol_pre_succ_intv: |
| 175 |
aliases: ['eapol-pre-succ-intv'] |
| 176 |
type: int |
| 177 |
description: The detection interval for premature EAPOL-Success flooding |
| 178 |
eapol_pre_succ_thresh: |
| 179 |
aliases: ['eapol-pre-succ-thresh'] |
| 180 |
type: int |
| 181 |
description: The threshold value for premature EAPOL-Success flooding in specified interval. |
| 182 |
eapol_start_flood: |
| 183 |
aliases: ['eapol-start-flood'] |
| 184 |
type: str |
| 185 |
description: Enable/disable EAPOL-Start flooding |
| 186 |
choices: ['disable', 'enable'] |
| 187 |
eapol_start_intv: |
| 188 |
aliases: ['eapol-start-intv'] |
| 189 |
type: int |
| 190 |
description: The detection interval for EAPOL-Start flooding |
| 191 |
eapol_start_thresh: |
| 192 |
aliases: ['eapol-start-thresh'] |
| 193 |
type: int |
| 194 |
description: The threshold value for EAPOL-Start flooding in specified interval. |
| 195 |
eapol_succ_flood: |
| 196 |
aliases: ['eapol-succ-flood'] |
| 197 |
type: str |
| 198 |
description: Enable/disable EAPOL-Success flooding |
| 199 |
choices: ['disable', 'enable'] |
| 200 |
eapol_succ_intv: |
| 201 |
aliases: ['eapol-succ-intv'] |
| 202 |
type: int |
| 203 |
description: The detection interval for EAPOL-Success flooding |
| 204 |
eapol_succ_thresh: |
| 205 |
aliases: ['eapol-succ-thresh'] |
| 206 |
type: int |
| 207 |
description: The threshold value for EAPOL-Success flooding in specified interval. |
| 208 |
invalid_mac_oui: |
| 209 |
aliases: ['invalid-mac-oui'] |
| 210 |
type: str |
| 211 |
description: Enable/disable invalid MAC OUI detection. |
| 212 |
choices: ['disable', 'enable'] |
| 213 |
long_duration_attack: |
| 214 |
aliases: ['long-duration-attack'] |
| 215 |
type: str |
| 216 |
description: Enable/disable long duration attack detection based on user configured threshold |
| 217 |
choices: ['disable', 'enable'] |
| 218 |
long_duration_thresh: |
| 219 |
aliases: ['long-duration-thresh'] |
| 220 |
type: int |
| 221 |
description: Threshold value for long duration attack detection |
| 222 |
name: |
| 223 |
type: str |
| 224 |
description: WIDS profile name. |
| 225 |
required: true |
| 226 |
null_ssid_probe_resp: |
| 227 |
aliases: ['null-ssid-probe-resp'] |
| 228 |
type: str |
| 229 |
description: Enable/disable null SSID probe response detection |
| 230 |
choices: ['disable', 'enable'] |
| 231 |
sensor_mode: |
| 232 |
aliases: ['sensor-mode'] |
| 233 |
type: str |
| 234 |
description: Scan WiFi nearby stations |
| 235 |
choices: ['disable', 'foreign', 'both'] |
| 236 |
spoofed_deauth: |
| 237 |
aliases: ['spoofed-deauth'] |
| 238 |
type: str |
| 239 |
description: Enable/disable spoofed de-authentication attack detection |
| 240 |
choices: ['disable', 'enable'] |
| 241 |
weak_wep_iv: |
| 242 |
aliases: ['weak-wep-iv'] |
| 243 |
type: str |
| 244 |
description: Enable/disable weak WEP IV |
| 245 |
choices: ['disable', 'enable'] |
| 246 |
wireless_bridge: |
| 247 |
aliases: ['wireless-bridge'] |
| 248 |
type: str |
| 249 |
description: Enable/disable wireless bridge detection |
| 250 |
choices: ['disable', 'enable'] |
| 251 |
ap_bgscan_disable_schedules: |
| 252 |
aliases: ['ap-bgscan-disable-schedules'] |
| 253 |
type: raw |
| 254 |
description: (list or str) Firewall schedules for turning off FortiAP radio background scan. |
| 255 |
rogue_scan: |
| 256 |
aliases: ['rogue-scan'] |
| 257 |
type: str |
| 258 |
description: Enable/disable rogue AP on-wire scan. |
| 259 |
choices: ['disable', 'enable'] |
| 260 |
ap_scan_threshold: |
| 261 |
aliases: ['ap-scan-threshold'] |
| 262 |
type: str |
| 263 |
description: Minimum signal level/threshold in dBm required for the AP to report detected rogue AP |
| 264 |
ap_scan_channel_list_2G_5G: |
| 265 |
aliases: ['ap-scan-channel-list-2G-5G'] |
| 266 |
type: raw |
| 267 |
description: (list) Selected ap scan channel list for 2. |
| 268 |
ap_scan_channel_list_6G: |
| 269 |
aliases: ['ap-scan-channel-list-6G'] |
| 270 |
type: raw |
| 271 |
description: (list) Selected ap scan channel list for 6G band. |
| 272 |
adhoc_network: |
| 273 |
aliases: ['adhoc-network'] |
| 274 |
type: str |
| 275 |
description: Enable/disable adhoc network detection |
| 276 |
choices: ['disable', 'enable'] |
| 277 |
adhoc_valid_ssid: |
| 278 |
aliases: ['adhoc-valid-ssid'] |
| 279 |
type: str |
| 280 |
description: Enable/disable adhoc using valid SSID detection |
| 281 |
choices: ['disable', 'enable'] |
| 282 |
air_jack: |
| 283 |
aliases: ['air-jack'] |
| 284 |
type: str |
| 285 |
description: Enable/disable AirJack detection |
| 286 |
choices: ['disable', 'enable'] |
| 287 |
ap_impersonation: |
| 288 |
aliases: ['ap-impersonation'] |
| 289 |
type: str |
| 290 |
description: Enable/disable AP impersonation detection |
| 291 |
choices: ['disable', 'enable'] |
| 292 |
ap_spoofing: |
| 293 |
aliases: ['ap-spoofing'] |
| 294 |
type: str |
| 295 |
description: Enable/disable AP spoofing detection |
| 296 |
choices: ['disable', 'enable'] |
| 297 |
bcn_flood: |
| 298 |
aliases: ['bcn-flood'] |
| 299 |
type: str |
| 300 |
description: Enable/disable bcn flood detection |
| 301 |
choices: ['disable', 'enable'] |
| 302 |
bcn_flood_thresh: |
| 303 |
aliases: ['bcn-flood-thresh'] |
| 304 |
type: int |
| 305 |
description: The threshold value for bcn flood. |
| 306 |
bcn_flood_time: |
| 307 |
aliases: ['bcn-flood-time'] |
| 308 |
type: int |
| 309 |
description: Detection Window Period. |
| 310 |
beacon_wrong_channel: |
| 311 |
aliases: ['beacon-wrong-channel'] |
| 312 |
type: str |
| 313 |
description: Enable/disable beacon wrong channel detection |
| 314 |
choices: ['disable', 'enable'] |
| 315 |
block_ack_flood: |
| 316 |
aliases: ['block_ack-flood'] |
| 317 |
type: str |
| 318 |
description: Enable/disable block_ack flood detection |
| 319 |
choices: ['disable', 'enable'] |
| 320 |
block_ack_flood_thresh: |
| 321 |
aliases: ['block_ack-flood-thresh'] |
| 322 |
type: int |
| 323 |
description: The threshold value for block_ack flood. |
| 324 |
block_ack_flood_time: |
| 325 |
aliases: ['block_ack-flood-time'] |
| 326 |
type: int |
| 327 |
description: Detection Window Period. |
| 328 |
chan_based_mitm: |
| 329 |
aliases: ['chan-based-mitm'] |
| 330 |
type: str |
| 331 |
description: Enable/disable channel based mitm detection |
| 332 |
choices: ['disable', 'enable'] |
| 333 |
client_flood: |
| 334 |
aliases: ['client-flood'] |
| 335 |
type: str |
| 336 |
description: Enable/disable client flood detection |
| 337 |
choices: ['disable', 'enable'] |
| 338 |
client_flood_thresh: |
| 339 |
aliases: ['client-flood-thresh'] |
| 340 |
type: int |
| 341 |
description: The threshold value for client flood. |
| 342 |
client_flood_time: |
| 343 |
aliases: ['client-flood-time'] |
| 344 |
type: int |
| 345 |
description: Detection Window Period. |
| 346 |
cts_flood: |
| 347 |
aliases: ['cts-flood'] |
| 348 |
type: str |
| 349 |
description: Enable/disable cts flood detection |
| 350 |
choices: ['disable', 'enable'] |
| 351 |
cts_flood_thresh: |
| 352 |
aliases: ['cts-flood-thresh'] |
| 353 |
type: int |
| 354 |
description: The threshold value for cts flood. |
| 355 |
cts_flood_time: |
| 356 |
aliases: ['cts-flood-time'] |
| 357 |
type: int |
| 358 |
description: Detection Window Period. |
| 359 |
disassoc_broadcast: |
| 360 |
aliases: ['disassoc-broadcast'] |
| 361 |
type: str |
| 362 |
description: Enable/disable broadcast dis-association detection |
| 363 |
choices: ['disable', 'enable'] |
| 364 |
disconnect_station: |
| 365 |
aliases: ['disconnect-station'] |
| 366 |
type: str |
| 367 |
description: Enable/disable disconnect station detection |
| 368 |
choices: ['disable', 'enable'] |
| 369 |
eapol_key_overflow: |
| 370 |
aliases: ['eapol-key-overflow'] |
| 371 |
type: str |
| 372 |
description: Enable/disable overflow EAPOL key detection |
| 373 |
choices: ['disable', 'enable'] |
| 374 |
fata_jack: |
| 375 |
aliases: ['fata-jack'] |
| 376 |
type: str |
| 377 |
description: Enable/disable FATA-Jack detection |
| 378 |
choices: ['disable', 'enable'] |
| 379 |
fuzzed_beacon: |
| 380 |
aliases: ['fuzzed-beacon'] |
| 381 |
type: str |
| 382 |
description: Enable/disable fuzzed beacon detection |
| 383 |
choices: ['disable', 'enable'] |
| 384 |
fuzzed_probe_request: |
| 385 |
aliases: ['fuzzed-probe-request'] |
| 386 |
type: str |
| 387 |
description: Enable/disable fuzzed probe request detection |
| 388 |
choices: ['disable', 'enable'] |
| 389 |
fuzzed_probe_response: |
| 390 |
aliases: ['fuzzed-probe-response'] |
| 391 |
type: str |
| 392 |
description: Enable/disable fuzzed probe response detection |
| 393 |
choices: ['disable', 'enable'] |
| 394 |
hotspotter_attack: |
| 395 |
aliases: ['hotspotter-attack'] |
| 396 |
type: str |
| 397 |
description: Enable/disable hotspotter attack detection |
| 398 |
choices: ['disable', 'enable'] |
| 399 |
ht_40mhz_intolerance: |
| 400 |
aliases: ['ht-40mhz-intolerance'] |
| 401 |
type: str |
| 402 |
description: Enable/disable HT 40 MHz intolerance detection |
| 403 |
choices: ['disable', 'enable'] |
| 404 |
ht_greenfield: |
| 405 |
aliases: ['ht-greenfield'] |
| 406 |
type: str |
| 407 |
description: Enable/disable HT greenfield detection |
| 408 |
choices: ['disable', 'enable'] |
| 409 |
invalid_addr_combination: |
| 410 |
aliases: ['invalid-addr-combination'] |
| 411 |
type: str |
| 412 |
description: Enable/disable invalid address combination detection |
| 413 |
choices: ['disable', 'enable'] |
| 414 |
malformed_association: |
| 415 |
aliases: ['malformed-association'] |
| 416 |
type: str |
| 417 |
description: Enable/disable malformed association request detection |
| 418 |
choices: ['disable', 'enable'] |
| 419 |
malformed_auth: |
| 420 |
aliases: ['malformed-auth'] |
| 421 |
type: str |
| 422 |
description: Enable/disable malformed auth frame detection |
| 423 |
choices: ['disable', 'enable'] |
| 424 |
malformed_ht_ie: |
| 425 |
aliases: ['malformed-ht-ie'] |
| 426 |
type: str |
| 427 |
description: Enable/disable malformed HT IE detection |
| 428 |
choices: ['disable', 'enable'] |
| 429 |
netstumbler: |
| 430 |
type: str |
| 431 |
description: Enable/disable netstumbler detection |
| 432 |
choices: ['disable', 'enable'] |
| 433 |
netstumbler_thresh: |
| 434 |
aliases: ['netstumbler-thresh'] |
| 435 |
type: int |
| 436 |
description: The threshold value for netstumbler. |
| 437 |
netstumbler_time: |
| 438 |
aliases: ['netstumbler-time'] |
| 439 |
type: int |
| 440 |
description: Detection Window Period. |
| 441 |
omerta_attack: |
| 442 |
aliases: ['omerta-attack'] |
| 443 |
type: str |
| 444 |
description: Enable/disable omerta attack detection |
| 445 |
choices: ['disable', 'enable'] |
| 446 |
overflow_ie: |
| 447 |
aliases: ['overflow-ie'] |
| 448 |
type: str |
| 449 |
description: Enable/disable overflow IE detection |
| 450 |
choices: ['disable', 'enable'] |
| 451 |
probe_flood: |
| 452 |
aliases: ['probe-flood'] |
| 453 |
type: str |
| 454 |
description: Enable/disable probe flood detection |
| 455 |
choices: ['disable', 'enable'] |
| 456 |
probe_flood_thresh: |
| 457 |
aliases: ['probe-flood-thresh'] |
| 458 |
type: int |
| 459 |
description: The threshold value for probe flood. |
| 460 |
probe_flood_time: |
| 461 |
aliases: ['probe-flood-time'] |
| 462 |
type: int |
| 463 |
description: Detection Window Period. |
| 464 |
pspoll_flood: |
| 465 |
aliases: ['pspoll-flood'] |
| 466 |
type: str |
| 467 |
description: Enable/disable pspoll flood detection |
| 468 |
choices: ['disable', 'enable'] |
| 469 |
pspoll_flood_thresh: |
| 470 |
aliases: ['pspoll-flood-thresh'] |
| 471 |
type: int |
| 472 |
description: The threshold value for pspoll flood. |
| 473 |
pspoll_flood_time: |
| 474 |
aliases: ['pspoll-flood-time'] |
| 475 |
type: int |
| 476 |
description: Detection Window Period. |
| 477 |
pwsave_dos_attack: |
| 478 |
aliases: ['pwsave-dos-attack'] |
| 479 |
type: str |
| 480 |
description: Enable/disable power save DOS attack detection |
| 481 |
choices: ['disable', 'enable'] |
| 482 |
reassoc_flood: |
| 483 |
aliases: ['reassoc-flood'] |
| 484 |
type: str |
| 485 |
description: Enable/disable reassociation flood detection |
| 486 |
choices: ['disable', 'enable'] |
| 487 |
reassoc_flood_thresh: |
| 488 |
aliases: ['reassoc-flood-thresh'] |
| 489 |
type: int |
| 490 |
description: The threshold value for reassociation flood. |
| 491 |
reassoc_flood_time: |
| 492 |
aliases: ['reassoc-flood-time'] |
| 493 |
type: int |
| 494 |
description: Detection Window Period. |
| 495 |
risky_encryption: |
| 496 |
aliases: ['risky-encryption'] |
| 497 |
type: str |
| 498 |
description: Enable/disable Risky Encryption detection |
| 499 |
choices: ['disable', 'enable'] |
| 500 |
rts_flood: |
| 501 |
aliases: ['rts-flood'] |
| 502 |
type: str |
| 503 |
description: Enable/disable rts flood detection |
| 504 |
choices: ['disable', 'enable'] |
| 505 |
rts_flood_thresh: |
| 506 |
aliases: ['rts-flood-thresh'] |
| 507 |
type: int |
| 508 |
description: The threshold value for rts flood. |
| 509 |
rts_flood_time: |
| 510 |
aliases: ['rts-flood-time'] |
| 511 |
type: int |
| 512 |
description: Detection Window Period. |
| 513 |
unencrypted_valid: |
| 514 |
aliases: ['unencrypted-valid'] |
| 515 |
type: str |
| 516 |
description: Enable/disable unencrypted valid detection |
| 517 |
choices: ['disable', 'enable'] |
| 518 |
valid_client_misassociation: |
| 519 |
aliases: ['valid-client-misassociation'] |
| 520 |
type: str |
| 521 |
description: Enable/disable valid client misassociation detection |
| 522 |
choices: ['disable', 'enable'] |
| 523 |
valid_ssid_misuse: |
| 524 |
aliases: ['valid-ssid-misuse'] |
| 525 |
type: str |
| 526 |
description: Enable/disable valid SSID misuse detection |
| 527 |
choices: ['disable', 'enable'] |
| 528 |
wellenreiter: |
| 529 |
type: str |
| 530 |
description: Enable/disable wellenreiter detection |
| 531 |
choices: ['disable', 'enable'] |
| 532 |
wellenreiter_thresh: |
| 533 |
aliases: ['wellenreiter-thresh'] |
| 534 |
type: int |
| 535 |
description: The threshold value for wellenreiter. |
| 536 |
wellenreiter_time: |
| 537 |
aliases: ['wellenreiter-time'] |
| 538 |
type: int |
| 539 |
description: Detection Window Period. |
| 540 |
windows_bridge: |
| 541 |
aliases: ['windows-bridge'] |
| 542 |
type: str |
| 543 |
description: Enable/disable windows bridge detection |
| 544 |
choices: ['disable', 'enable'] |
| 545 |
wpa_ft_attack: |
| 546 |
aliases: ['wpa-ft-attack'] |
| 547 |
type: str |
| 548 |
description: Enable/disable WPA FT attack detection |
| 549 |
choices: ['disable', 'enable'] |
| 550 |
''' |
| 551 |
|
| 552 |
EXAMPLES = ''' |
| 553 |
- name: Example playbook (generated based on argument schema) |
| 554 |
hosts: fortimanagers |
| 555 |
connection: httpapi |
| 556 |
gather_facts: false |
| 557 |
tasks: |
| 558 |
- name: Configure wireless intrusion detection system |
| 559 |
fortinet.fortimanager.fmgr_widsprofile: |
| 560 |
# workspace_locking_adom: <global or your adom name> |
| 561 |
adom: <your own value> |
| 562 |
state: present # <value in [present, absent]> |
| 563 |
widsprofile: |
| 564 |
name: "your value" # Required variable, string |
| 565 |
# ap_auto_suppress: <value in [disable, enable]> |
| 566 |
# ap_bgscan_disable_day: ["sunday", "monday", "tuesday", "wednesday", "thursday", |
| 567 |
# "friday", "saturday"] |
| 568 |
# ap_bgscan_disable_end: <string> |
| 569 |
# ap_bgscan_disable_start: <string> |
| 570 |
# ap_bgscan_duration: <integer> |
| 571 |
# ap_bgscan_idle: <integer> |
| 572 |
# ap_bgscan_intv: <integer> |
| 573 |
# ap_bgscan_period: <integer> |
| 574 |
# ap_bgscan_report_intv: <integer> |
| 575 |
# ap_fgscan_report_intv: <integer> |
| 576 |
# ap_scan: <value in [disable, enable]> |
| 577 |
# ap_scan_passive: <value in [disable, enable]> |
| 578 |
# asleap_attack: <value in [disable, enable]> |
| 579 |
# assoc_flood_thresh: <integer> |
| 580 |
# assoc_flood_time: <integer> |
| 581 |
# assoc_frame_flood: <value in [disable, enable]> |
| 582 |
# auth_flood_thresh: <integer> |
| 583 |
# auth_flood_time: <integer> |
| 584 |
# auth_frame_flood: <value in [disable, enable]> |
| 585 |
# comment: <string> |
| 586 |
# deauth_broadcast: <value in [disable, enable]> |
| 587 |
# deauth_unknown_src_thresh: <integer> |
| 588 |
# eapol_fail_flood: <value in [disable, enable]> |
| 589 |
# eapol_fail_intv: <integer> |
| 590 |
# eapol_fail_thresh: <integer> |
| 591 |
# eapol_logoff_flood: <value in [disable, enable]> |
| 592 |
# eapol_logoff_intv: <integer> |
| 593 |
# eapol_logoff_thresh: <integer> |
| 594 |
# eapol_pre_fail_flood: <value in [disable, enable]> |
| 595 |
# eapol_pre_fail_intv: <integer> |
| 596 |
# eapol_pre_fail_thresh: <integer> |
| 597 |
# eapol_pre_succ_flood: <value in [disable, enable]> |
| 598 |
# eapol_pre_succ_intv: <integer> |
| 599 |
# eapol_pre_succ_thresh: <integer> |
| 600 |
# eapol_start_flood: <value in [disable, enable]> |
| 601 |
# eapol_start_intv: <integer> |
| 602 |
# eapol_start_thresh: <integer> |
| 603 |
# eapol_succ_flood: <value in [disable, enable]> |
| 604 |
# eapol_succ_intv: <integer> |
| 605 |
# eapol_succ_thresh: <integer> |
| 606 |
# invalid_mac_oui: <value in [disable, enable]> |
| 607 |
# long_duration_attack: <value in [disable, enable]> |
| 608 |
# long_duration_thresh: <integer> |
| 609 |
# null_ssid_probe_resp: <value in [disable, enable]> |
| 610 |
# sensor_mode: <value in [disable, foreign, both]> |
| 611 |
# spoofed_deauth: <value in [disable, enable]> |
| 612 |
# weak_wep_iv: <value in [disable, enable]> |
| 613 |
# wireless_bridge: <value in [disable, enable]> |
| 614 |
# ap_bgscan_disable_schedules: <list or string> |
| 615 |
# rogue_scan: <value in [disable, enable]> |
| 616 |
# ap_scan_threshold: <string> |
| 617 |
# ap_scan_channel_list_2G_5G: <list or string> |
| 618 |
# ap_scan_channel_list_6G: <list or string> |
| 619 |
# adhoc_network: <value in [disable, enable]> |
| 620 |
# adhoc_valid_ssid: <value in [disable, enable]> |
| 621 |
# air_jack: <value in [disable, enable]> |
| 622 |
# ap_impersonation: <value in [disable, enable]> |
| 623 |
# ap_spoofing: <value in [disable, enable]> |
| 624 |
# bcn_flood: <value in [disable, enable]> |
| 625 |
# bcn_flood_thresh: <integer> |
| 626 |
# bcn_flood_time: <integer> |
| 627 |
# beacon_wrong_channel: <value in [disable, enable]> |
| 628 |
# block_ack_flood: <value in [disable, enable]> |
| 629 |
# block_ack_flood_thresh: <integer> |
| 630 |
# block_ack_flood_time: <integer> |
| 631 |
# chan_based_mitm: <value in [disable, enable]> |
| 632 |
# client_flood: <value in [disable, enable]> |
| 633 |
# client_flood_thresh: <integer> |
| 634 |
# client_flood_time: <integer> |
| 635 |
# cts_flood: <value in [disable, enable]> |
| 636 |
# cts_flood_thresh: <integer> |
| 637 |
# cts_flood_time: <integer> |
| 638 |
# disassoc_broadcast: <value in [disable, enable]> |
| 639 |
# disconnect_station: <value in [disable, enable]> |
| 640 |
# eapol_key_overflow: <value in [disable, enable]> |
| 641 |
# fata_jack: <value in [disable, enable]> |
| 642 |
# fuzzed_beacon: <value in [disable, enable]> |
| 643 |
# fuzzed_probe_request: <value in [disable, enable]> |
| 644 |
# fuzzed_probe_response: <value in [disable, enable]> |
| 645 |
# hotspotter_attack: <value in [disable, enable]> |
| 646 |
# ht_40mhz_intolerance: <value in [disable, enable]> |
| 647 |
# ht_greenfield: <value in [disable, enable]> |
| 648 |
# invalid_addr_combination: <value in [disable, enable]> |
| 649 |
# malformed_association: <value in [disable, enable]> |
| 650 |
# malformed_auth: <value in [disable, enable]> |
| 651 |
# malformed_ht_ie: <value in [disable, enable]> |
| 652 |
# netstumbler: <value in [disable, enable]> |
| 653 |
# netstumbler_thresh: <integer> |
| 654 |
# netstumbler_time: <integer> |
| 655 |
# omerta_attack: <value in [disable, enable]> |
| 656 |
# overflow_ie: <value in [disable, enable]> |
| 657 |
# probe_flood: <value in [disable, enable]> |
| 658 |
# probe_flood_thresh: <integer> |
| 659 |
# probe_flood_time: <integer> |
| 660 |
# pspoll_flood: <value in [disable, enable]> |
| 661 |
# pspoll_flood_thresh: <integer> |
| 662 |
# pspoll_flood_time: <integer> |
| 663 |
# pwsave_dos_attack: <value in [disable, enable]> |
| 664 |
# reassoc_flood: <value in [disable, enable]> |
| 665 |
# reassoc_flood_thresh: <integer> |
| 666 |
# reassoc_flood_time: <integer> |
| 667 |
# risky_encryption: <value in [disable, enable]> |
| 668 |
# rts_flood: <value in [disable, enable]> |
| 669 |
# rts_flood_thresh: <integer> |
| 670 |
# rts_flood_time: <integer> |
| 671 |
# unencrypted_valid: <value in [disable, enable]> |
| 672 |
# valid_client_misassociation: <value in [disable, enable]> |
| 673 |
# valid_ssid_misuse: <value in [disable, enable]> |
| 674 |
# wellenreiter: <value in [disable, enable]> |
| 675 |
# wellenreiter_thresh: <integer> |
| 676 |
# wellenreiter_time: <integer> |
| 677 |
# windows_bridge: <value in [disable, enable]> |
| 678 |
# wpa_ft_attack: <value in [disable, enable]> |
| 679 |
''' |
| 680 |
|
| 681 |
RETURN = ''' |
| 682 |
meta: |
| 683 |
description: The result of the request. |
| 684 |
type: dict |
| 685 |
returned: always |
| 686 |
contains: |
| 687 |
request_url: |
| 688 |
description: The full url requested. |
| 689 |
returned: always |
| 690 |
type: str |
| 691 |
sample: /sys/login/user |
| 692 |
response_code: |
| 693 |
description: The status of api request. |
| 694 |
returned: always |
| 695 |
type: int |
| 696 |
sample: 0 |
| 697 |
response_data: |
| 698 |
description: The api response. |
| 699 |
type: list |
| 700 |
returned: always |
| 701 |
response_message: |
| 702 |
description: The descriptive message of the api response. |
| 703 |
type: str |
| 704 |
returned: always |
| 705 |
sample: OK. |
| 706 |
system_information: |
| 707 |
description: The information of the target system. |
| 708 |
type: dict |
| 709 |
returned: always |
| 710 |
rc: |
| 711 |
description: The status the request. |
| 712 |
type: int |
| 713 |
returned: always |
| 714 |
sample: 0 |
| 715 |
version_check_warning: |
| 716 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 717 |
type: list |
| 718 |
returned: complex |
| 719 |
''' |
| 720 |
from ansible.module_utils.basic import AnsibleModule |
| 721 |
from ansible.module_utils.connection import Connection |
| 722 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 723 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 724 |
|
| 725 |
|
| 726 |
def main(): |
| 727 |
urls_list = [ |
| 728 |
'/pm/config/adom/{adom}/obj/wireless-controller/wids-profile', |
| 729 |
'/pm/config/global/obj/wireless-controller/wids-profile' |
| 730 |
] |
| 731 |
module_arg_spec = { |
| 732 |
'adom': {'required': True, 'type': 'str'}, |
| 733 |
'revision_note': {'type': 'str'}, |
| 734 |
'widsprofile': { |
| 735 |
'type': 'dict', 'v_range': [['6.0.0', '']], |
| 736 |
'options': { |
| 737 |
'ap-auto-suppress': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 738 |
'ap-bgscan-disable-day': { |
| 739 |
'v_range': [['6.0.0', '7.2.1']], |
| 740 |
'type': 'list', |
| 741 |
'choices': ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'], |
| 742 |
'elements': 'str' |
| 743 |
}, |
| 744 |
'ap-bgscan-disable-end': {'v_range': [['6.0.0', '7.2.1']], 'type': 'str'}, |
| 745 |
'ap-bgscan-disable-start': {'v_range': [['6.0.0', '7.2.1']], 'type': 'str'}, |
| 746 |
'ap-bgscan-duration': {'type': 'int'}, |
| 747 |
'ap-bgscan-idle': {'type': 'int'}, |
| 748 |
'ap-bgscan-intv': {'type': 'int'}, |
| 749 |
'ap-bgscan-period': {'type': 'int'}, |
| 750 |
'ap-bgscan-report-intv': {'type': 'int'}, |
| 751 |
'ap-fgscan-report-intv': {'type': 'int'}, |
| 752 |
'ap-scan': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 753 |
'ap-scan-passive': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 754 |
'asleap-attack': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 755 |
'assoc-flood-thresh': {'type': 'int'}, |
| 756 |
'assoc-flood-time': {'type': 'int'}, |
| 757 |
'assoc-frame-flood': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 758 |
'auth-flood-thresh': {'type': 'int'}, |
| 759 |
'auth-flood-time': {'type': 'int'}, |
| 760 |
'auth-frame-flood': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 761 |
'comment': {'type': 'str'}, |
| 762 |
'deauth-broadcast': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 763 |
'deauth-unknown-src-thresh': {'type': 'int'}, |
| 764 |
'eapol-fail-flood': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 765 |
'eapol-fail-intv': {'type': 'int'}, |
| 766 |
'eapol-fail-thresh': {'type': 'int'}, |
| 767 |
'eapol-logoff-flood': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 768 |
'eapol-logoff-intv': {'type': 'int'}, |
| 769 |
'eapol-logoff-thresh': {'type': 'int'}, |
| 770 |
'eapol-pre-fail-flood': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 771 |
'eapol-pre-fail-intv': {'type': 'int'}, |
| 772 |
'eapol-pre-fail-thresh': {'type': 'int'}, |
| 773 |
'eapol-pre-succ-flood': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 774 |
'eapol-pre-succ-intv': {'type': 'int'}, |
| 775 |
'eapol-pre-succ-thresh': {'type': 'int'}, |
| 776 |
'eapol-start-flood': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 777 |
'eapol-start-intv': {'type': 'int'}, |
| 778 |
'eapol-start-thresh': {'type': 'int'}, |
| 779 |
'eapol-succ-flood': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 780 |
'eapol-succ-intv': {'type': 'int'}, |
| 781 |
'eapol-succ-thresh': {'type': 'int'}, |
| 782 |
'invalid-mac-oui': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 783 |
'long-duration-attack': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 784 |
'long-duration-thresh': {'type': 'int'}, |
| 785 |
'name': {'required': True, 'type': 'str'}, |
| 786 |
'null-ssid-probe-resp': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 787 |
'sensor-mode': {'choices': ['disable', 'foreign', 'both'], 'type': 'str'}, |
| 788 |
'spoofed-deauth': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 789 |
'weak-wep-iv': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 790 |
'wireless-bridge': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 791 |
'ap-bgscan-disable-schedules': {'v_range': [['6.2.1', '']], 'type': 'raw'}, |
| 792 |
'rogue-scan': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 793 |
'ap-scan-threshold': {'v_range': [['6.2.3', '']], 'type': 'str'}, |
| 794 |
'ap-scan-channel-list-2G-5G': {'v_range': [['7.4.1', '']], 'type': 'raw'}, |
| 795 |
'ap-scan-channel-list-6G': {'v_range': [['7.4.1', '']], 'type': 'raw'}, |
| 796 |
'adhoc-network': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 797 |
'adhoc-valid-ssid': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 798 |
'air-jack': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 799 |
'ap-impersonation': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 800 |
'ap-spoofing': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 801 |
'bcn-flood': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 802 |
'bcn-flood-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 803 |
'bcn-flood-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 804 |
'beacon-wrong-channel': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 805 |
'block_ack-flood': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 806 |
'block_ack-flood-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 807 |
'block_ack-flood-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 808 |
'chan-based-mitm': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 809 |
'client-flood': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 810 |
'client-flood-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 811 |
'client-flood-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 812 |
'cts-flood': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 813 |
'cts-flood-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 814 |
'cts-flood-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 815 |
'disassoc-broadcast': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 816 |
'disconnect-station': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 817 |
'eapol-key-overflow': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 818 |
'fata-jack': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 819 |
'fuzzed-beacon': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 820 |
'fuzzed-probe-request': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 821 |
'fuzzed-probe-response': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 822 |
'hotspotter-attack': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 823 |
'ht-40mhz-intolerance': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 824 |
'ht-greenfield': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 825 |
'invalid-addr-combination': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 826 |
'malformed-association': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 827 |
'malformed-auth': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 828 |
'malformed-ht-ie': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 829 |
'netstumbler': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 830 |
'netstumbler-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 831 |
'netstumbler-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 832 |
'omerta-attack': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 833 |
'overflow-ie': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 834 |
'probe-flood': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 835 |
'probe-flood-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 836 |
'probe-flood-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 837 |
'pspoll-flood': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 838 |
'pspoll-flood-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 839 |
'pspoll-flood-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 840 |
'pwsave-dos-attack': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 841 |
'reassoc-flood': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 842 |
'reassoc-flood-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 843 |
'reassoc-flood-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 844 |
'risky-encryption': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 845 |
'rts-flood': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 846 |
'rts-flood-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 847 |
'rts-flood-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 848 |
'unencrypted-valid': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 849 |
'valid-client-misassociation': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 850 |
'valid-ssid-misuse': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 851 |
'wellenreiter': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 852 |
'wellenreiter-thresh': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 853 |
'wellenreiter-time': {'v_range': [['7.6.2', '']], 'type': 'int'}, |
| 854 |
'windows-bridge': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 855 |
'wpa-ft-attack': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 856 |
} |
| 857 |
} |
| 858 |
} |
| 859 |
|
| 860 |
module_option_spec = get_module_arg_spec('full crud') |
| 861 |
module_arg_spec.update(module_option_spec) |
| 862 |
check_galaxy_version(module_arg_spec) |
| 863 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'widsprofile'), |
| 864 |
supports_check_mode=True) |
| 865 |
if not module._socket_path: |
| 866 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 867 |
connection = Connection(module._socket_path) |
| 868 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 869 |
'name', 'data', module, connection) |
| 870 |
fmgr.process_crud() |
| 871 |
module.exit_json(meta=module.params) |
| 872 |
|
| 873 |
|
| 874 |
if __name__ == '__main__': |
| 875 |
main() |