| 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_firewall_mmsprofile |
| 15 |
short_description: Configure MMS profiles. |
| 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 |
firewall_mmsprofile: |
| 29 |
description: The top level parameters set. |
| 30 |
required: false |
| 31 |
type: dict |
| 32 |
suboptions: |
| 33 |
avnotificationtable: |
| 34 |
type: str |
| 35 |
description: AntiVirus notification table ID. |
| 36 |
bwordtable: |
| 37 |
type: str |
| 38 |
description: MMS banned word table ID. |
| 39 |
carrier_endpoint_prefix: |
| 40 |
aliases: ['carrier-endpoint-prefix'] |
| 41 |
type: str |
| 42 |
description: Enable/disable prefixing of end point values. |
| 43 |
choices: ['disable', 'enable'] |
| 44 |
carrier_endpoint_prefix_range_max: |
| 45 |
aliases: ['carrier-endpoint-prefix-range-max'] |
| 46 |
type: int |
| 47 |
description: Maximum length of end point value that can be prefixed |
| 48 |
carrier_endpoint_prefix_range_min: |
| 49 |
aliases: ['carrier-endpoint-prefix-range-min'] |
| 50 |
type: int |
| 51 |
description: Minimum end point length to be prefixed |
| 52 |
carrier_endpoint_prefix_string: |
| 53 |
aliases: ['carrier-endpoint-prefix-string'] |
| 54 |
type: str |
| 55 |
description: String with which to prefix End point values. |
| 56 |
carrierendpointbwltable: |
| 57 |
type: str |
| 58 |
description: Carrier end point filter table ID. |
| 59 |
comment: |
| 60 |
type: str |
| 61 |
description: Comment. |
| 62 |
mm1: |
| 63 |
type: list |
| 64 |
elements: str |
| 65 |
description: MM1 options. |
| 66 |
choices: ['avmonitor', 'block', 'oversize', 'quarantine', 'scan', 'avquery', |
| 67 |
'bannedword', 'no-content-summary', 'archive-summary', 'archive-full', |
| 68 |
'carrier-endpoint-bwl', 'remove-blocked', 'chunkedbypass', |
| 69 |
'clientcomfort', 'servercomfort', 'strict-file', 'mms-checksum'] |
| 70 |
mm1_addr_hdr: |
| 71 |
aliases: ['mm1-addr-hdr'] |
| 72 |
type: str |
| 73 |
description: HTTP header field |
| 74 |
mm1_addr_source: |
| 75 |
aliases: ['mm1-addr-source'] |
| 76 |
type: str |
| 77 |
description: Source for MM1 user address. |
| 78 |
choices: ['http-header', 'cookie'] |
| 79 |
mm1_convert_hex: |
| 80 |
aliases: ['mm1-convert-hex'] |
| 81 |
type: str |
| 82 |
description: Enable/disable converting user address from HEX string for MM1. |
| 83 |
choices: ['disable', 'enable'] |
| 84 |
mm1_outbreak_prevention: |
| 85 |
aliases: ['mm1-outbreak-prevention'] |
| 86 |
type: str |
| 87 |
description: Enable FortiGuard Virus Outbreak Prevention service. |
| 88 |
choices: ['disabled', 'files', 'full-archive'] |
| 89 |
mm1_retr_dupe: |
| 90 |
aliases: ['mm1-retr-dupe'] |
| 91 |
type: str |
| 92 |
description: Enable/disable duplicate scanning of MM1 retr. |
| 93 |
choices: ['disable', 'enable'] |
| 94 |
mm1_retrieve_scan: |
| 95 |
aliases: ['mm1-retrieve-scan'] |
| 96 |
type: str |
| 97 |
description: Enable/disable scanning on MM1 retrieve configuration messages. |
| 98 |
choices: ['disable', 'enable'] |
| 99 |
mm1comfortamount: |
| 100 |
type: int |
| 101 |
description: MM1 comfort amount |
| 102 |
mm1comfortinterval: |
| 103 |
type: int |
| 104 |
description: MM1 comfort interval |
| 105 |
mm1oversizelimit: |
| 106 |
type: int |
| 107 |
description: Maximum file size to scan |
| 108 |
mm3: |
| 109 |
type: list |
| 110 |
elements: str |
| 111 |
description: MM3 options. |
| 112 |
choices: ['avmonitor', 'block', 'oversize', 'quarantine', 'scan', 'avquery', |
| 113 |
'bannedword', 'no-content-summary', 'archive-summary', 'archive-full', |
| 114 |
'carrier-endpoint-bwl', 'remove-blocked', 'fragmail', 'splice', |
| 115 |
'mms-checksum'] |
| 116 |
mm3_outbreak_prevention: |
| 117 |
aliases: ['mm3-outbreak-prevention'] |
| 118 |
type: str |
| 119 |
description: Enable FortiGuard Virus Outbreak Prevention service. |
| 120 |
choices: ['disabled', 'files', 'full-archive'] |
| 121 |
mm3oversizelimit: |
| 122 |
type: int |
| 123 |
description: Maximum file size to scan |
| 124 |
mm4: |
| 125 |
type: list |
| 126 |
elements: str |
| 127 |
description: MM4 options. |
| 128 |
choices: ['avmonitor', 'block', 'oversize', 'quarantine', 'scan', 'avquery', |
| 129 |
'bannedword', 'no-content-summary', 'archive-summary', 'archive-full', |
| 130 |
'carrier-endpoint-bwl', 'remove-blocked', 'fragmail', 'splice', |
| 131 |
'mms-checksum'] |
| 132 |
mm4_outbreak_prevention: |
| 133 |
aliases: ['mm4-outbreak-prevention'] |
| 134 |
type: str |
| 135 |
description: Enable FortiGuard Virus Outbreak Prevention service. |
| 136 |
choices: ['disabled', 'files', 'full-archive'] |
| 137 |
mm4oversizelimit: |
| 138 |
type: int |
| 139 |
description: Maximum file size to scan |
| 140 |
mm7: |
| 141 |
type: list |
| 142 |
elements: str |
| 143 |
description: MM7 options. |
| 144 |
choices: ['avmonitor', 'block', 'oversize', 'quarantine', 'scan', 'avquery', |
| 145 |
'bannedword', 'no-content-summary', 'archive-summary', 'archive-full', |
| 146 |
'carrier-endpoint-bwl', 'remove-blocked', 'chunkedbypass', |
| 147 |
'clientcomfort', 'servercomfort', 'strict-file', 'mms-checksum'] |
| 148 |
mm7_addr_hdr: |
| 149 |
aliases: ['mm7-addr-hdr'] |
| 150 |
type: str |
| 151 |
description: HTTP header field |
| 152 |
mm7_addr_source: |
| 153 |
aliases: ['mm7-addr-source'] |
| 154 |
type: str |
| 155 |
description: Source for MM7 user address. |
| 156 |
choices: ['http-header', 'cookie'] |
| 157 |
mm7_convert_hex: |
| 158 |
aliases: ['mm7-convert-hex'] |
| 159 |
type: str |
| 160 |
description: Enable/disable conversion of user address from HEX string for MM7. |
| 161 |
choices: ['disable', 'enable'] |
| 162 |
mm7_outbreak_prevention: |
| 163 |
aliases: ['mm7-outbreak-prevention'] |
| 164 |
type: str |
| 165 |
description: Enable FortiGuard Virus Outbreak Prevention service. |
| 166 |
choices: ['disabled', 'files', 'full-archive'] |
| 167 |
mm7comfortamount: |
| 168 |
type: int |
| 169 |
description: MM7 comfort amount |
| 170 |
mm7comfortinterval: |
| 171 |
type: int |
| 172 |
description: MM7 comfort interval |
| 173 |
mm7oversizelimit: |
| 174 |
type: int |
| 175 |
description: Maximum file size to scan |
| 176 |
mms_antispam_mass_log: |
| 177 |
aliases: ['mms-antispam-mass-log'] |
| 178 |
type: str |
| 179 |
description: Enable/disable logging for MMS antispam mass. |
| 180 |
choices: ['disable', 'enable'] |
| 181 |
mms_av_block_log: |
| 182 |
aliases: ['mms-av-block-log'] |
| 183 |
type: str |
| 184 |
description: Enable/disable logging for MMS antivirus file blocking. |
| 185 |
choices: ['disable', 'enable'] |
| 186 |
mms_av_oversize_log: |
| 187 |
aliases: ['mms-av-oversize-log'] |
| 188 |
type: str |
| 189 |
description: Enable/disable logging for MMS antivirus oversize file blocking. |
| 190 |
choices: ['disable', 'enable'] |
| 191 |
mms_av_virus_log: |
| 192 |
aliases: ['mms-av-virus-log'] |
| 193 |
type: str |
| 194 |
description: Enable/disable logging for MMS antivirus scanning. |
| 195 |
choices: ['disable', 'enable'] |
| 196 |
mms_carrier_endpoint_filter_log: |
| 197 |
aliases: ['mms-carrier-endpoint-filter-log'] |
| 198 |
type: str |
| 199 |
description: Enable/disable logging for MMS end point filter blocking. |
| 200 |
choices: ['disable', 'enable'] |
| 201 |
mms_checksum_log: |
| 202 |
aliases: ['mms-checksum-log'] |
| 203 |
type: str |
| 204 |
description: Enable/disable MMS content checksum logging. |
| 205 |
choices: ['disable', 'enable'] |
| 206 |
mms_checksum_table: |
| 207 |
aliases: ['mms-checksum-table'] |
| 208 |
type: str |
| 209 |
description: MMS content checksum table ID. |
| 210 |
mms_notification_log: |
| 211 |
aliases: ['mms-notification-log'] |
| 212 |
type: str |
| 213 |
description: Enable/disable logging for MMS notification messages. |
| 214 |
choices: ['disable', 'enable'] |
| 215 |
mms_web_content_log: |
| 216 |
aliases: ['mms-web-content-log'] |
| 217 |
type: str |
| 218 |
description: Enable/disable logging for MMS web content blocking. |
| 219 |
choices: ['disable', 'enable'] |
| 220 |
mmsbwordthreshold: |
| 221 |
type: int |
| 222 |
description: MMS banned word threshold. |
| 223 |
name: |
| 224 |
type: str |
| 225 |
description: Profile name. |
| 226 |
required: true |
| 227 |
notif_msisdn: |
| 228 |
aliases: ['notif-msisdn'] |
| 229 |
type: list |
| 230 |
elements: dict |
| 231 |
description: Notif msisdn. |
| 232 |
suboptions: |
| 233 |
msisdn: |
| 234 |
type: str |
| 235 |
description: Recipient MSISDN. |
| 236 |
threshold: |
| 237 |
type: list |
| 238 |
elements: str |
| 239 |
description: Thresholds on which this MSISDN will receive an alert. |
| 240 |
choices: ['flood-thresh-1', 'flood-thresh-2', 'flood-thresh-3', |
| 241 |
'dupe-thresh-1', 'dupe-thresh-2', 'dupe-thresh-3'] |
| 242 |
remove_blocked_const_length: |
| 243 |
aliases: ['remove-blocked-const-length'] |
| 244 |
type: str |
| 245 |
description: Enable/disable MMS replacement of blocked file constant length. |
| 246 |
choices: ['disable', 'enable'] |
| 247 |
replacemsg_group: |
| 248 |
aliases: ['replacemsg-group'] |
| 249 |
type: str |
| 250 |
description: Replacement message group. |
| 251 |
dupe: |
| 252 |
type: dict |
| 253 |
description: Dupe. |
| 254 |
suboptions: |
| 255 |
action1: |
| 256 |
type: list |
| 257 |
elements: str |
| 258 |
description: Action to take when threshold reached. |
| 259 |
choices: ['log', 'archive', 'intercept', 'block', 'archive-first', |
| 260 |
'alert-notif'] |
| 261 |
action2: |
| 262 |
type: list |
| 263 |
elements: str |
| 264 |
description: Action to take when threshold reached. |
| 265 |
choices: ['log', 'archive', 'intercept', 'block', 'archive-first', |
| 266 |
'alert-notif'] |
| 267 |
action3: |
| 268 |
type: list |
| 269 |
elements: str |
| 270 |
description: Action to take when threshold reached. |
| 271 |
choices: ['log', 'archive', 'intercept', 'block', 'archive-first', |
| 272 |
'alert-notif'] |
| 273 |
block_time1: |
| 274 |
aliases: ['block-time1'] |
| 275 |
type: int |
| 276 |
description: Duration for which action takes effect |
| 277 |
block_time2: |
| 278 |
aliases: ['block-time2'] |
| 279 |
type: int |
| 280 |
description: Duration for which action takes effect |
| 281 |
block_time3: |
| 282 |
aliases: ['block-time3'] |
| 283 |
type: int |
| 284 |
description: Duration action takes effect |
| 285 |
limit1: |
| 286 |
type: int |
| 287 |
description: Maximum number of messages allowed. |
| 288 |
limit2: |
| 289 |
type: int |
| 290 |
description: Maximum number of messages allowed. |
| 291 |
limit3: |
| 292 |
type: int |
| 293 |
description: Maximum number of messages allowed. |
| 294 |
protocol: |
| 295 |
type: str |
| 296 |
description: Protocol. |
| 297 |
status1: |
| 298 |
type: str |
| 299 |
description: Enable/disable status1 detection. |
| 300 |
choices: ['disable', 'enable'] |
| 301 |
status2: |
| 302 |
type: str |
| 303 |
description: Enable/disable status2 detection. |
| 304 |
choices: ['disable', 'enable'] |
| 305 |
status3: |
| 306 |
type: str |
| 307 |
description: Enable/disable status3 detection. |
| 308 |
choices: ['disable', 'enable'] |
| 309 |
window1: |
| 310 |
type: int |
| 311 |
description: Window to count messages over |
| 312 |
window2: |
| 313 |
type: int |
| 314 |
description: Window to count messages over |
| 315 |
window3: |
| 316 |
type: int |
| 317 |
description: Window to count messages over |
| 318 |
flood: |
| 319 |
type: dict |
| 320 |
description: Flood. |
| 321 |
suboptions: |
| 322 |
action1: |
| 323 |
type: list |
| 324 |
elements: str |
| 325 |
description: Action to take when threshold reached. |
| 326 |
choices: ['log', 'archive', 'intercept', 'block', 'archive-first', |
| 327 |
'alert-notif'] |
| 328 |
action2: |
| 329 |
type: list |
| 330 |
elements: str |
| 331 |
description: Action to take when threshold reached. |
| 332 |
choices: ['log', 'archive', 'intercept', 'block', 'archive-first', |
| 333 |
'alert-notif'] |
| 334 |
action3: |
| 335 |
type: list |
| 336 |
elements: str |
| 337 |
description: Action to take when threshold reached. |
| 338 |
choices: ['log', 'archive', 'intercept', 'block', 'archive-first', |
| 339 |
'alert-notif'] |
| 340 |
block_time1: |
| 341 |
aliases: ['block-time1'] |
| 342 |
type: int |
| 343 |
description: Duration for which action takes effect |
| 344 |
block_time2: |
| 345 |
aliases: ['block-time2'] |
| 346 |
type: int |
| 347 |
description: Duration for which action takes effect |
| 348 |
block_time3: |
| 349 |
aliases: ['block-time3'] |
| 350 |
type: int |
| 351 |
description: Duration action takes effect |
| 352 |
limit1: |
| 353 |
type: int |
| 354 |
description: Maximum number of messages allowed. |
| 355 |
limit2: |
| 356 |
type: int |
| 357 |
description: Maximum number of messages allowed. |
| 358 |
limit3: |
| 359 |
type: int |
| 360 |
description: Maximum number of messages allowed. |
| 361 |
protocol: |
| 362 |
type: str |
| 363 |
description: Protocol. |
| 364 |
status1: |
| 365 |
type: str |
| 366 |
description: Enable/disable status1 detection. |
| 367 |
choices: ['disable', 'enable'] |
| 368 |
status2: |
| 369 |
type: str |
| 370 |
description: Enable/disable status2 detection. |
| 371 |
choices: ['disable', 'enable'] |
| 372 |
status3: |
| 373 |
type: str |
| 374 |
description: Enable/disable status3 detection. |
| 375 |
choices: ['disable', 'enable'] |
| 376 |
window1: |
| 377 |
type: int |
| 378 |
description: Window to count messages over |
| 379 |
window2: |
| 380 |
type: int |
| 381 |
description: Window to count messages over |
| 382 |
window3: |
| 383 |
type: int |
| 384 |
description: Window to count messages over |
| 385 |
notification: |
| 386 |
type: dict |
| 387 |
description: Notification. |
| 388 |
suboptions: |
| 389 |
alert_int: |
| 390 |
aliases: ['alert-int'] |
| 391 |
type: int |
| 392 |
description: Alert notification send interval. |
| 393 |
alert_int_mode: |
| 394 |
aliases: ['alert-int-mode'] |
| 395 |
type: str |
| 396 |
description: Alert notification interval mode. |
| 397 |
choices: ['hours', 'minutes'] |
| 398 |
alert_src_msisdn: |
| 399 |
aliases: ['alert-src-msisdn'] |
| 400 |
type: str |
| 401 |
description: Specify from address for alert messages. |
| 402 |
alert_status: |
| 403 |
aliases: ['alert-status'] |
| 404 |
type: str |
| 405 |
description: Alert notification status. |
| 406 |
choices: ['disable', 'enable'] |
| 407 |
bword_int: |
| 408 |
aliases: ['bword-int'] |
| 409 |
type: int |
| 410 |
description: Banned word notification send interval. |
| 411 |
bword_int_mode: |
| 412 |
aliases: ['bword-int-mode'] |
| 413 |
type: str |
| 414 |
description: Banned word notification interval mode. |
| 415 |
choices: ['hours', 'minutes'] |
| 416 |
bword_status: |
| 417 |
aliases: ['bword-status'] |
| 418 |
type: str |
| 419 |
description: Banned word notification status. |
| 420 |
choices: ['disable', 'enable'] |
| 421 |
carrier_endpoint_bwl_int: |
| 422 |
aliases: ['carrier-endpoint-bwl-int'] |
| 423 |
type: int |
| 424 |
description: Carrier end point black/white list notification send interval. |
| 425 |
carrier_endpoint_bwl_int_mode: |
| 426 |
aliases: ['carrier-endpoint-bwl-int-mode'] |
| 427 |
type: str |
| 428 |
description: Carrier end point black/white list notification interval mode. |
| 429 |
choices: ['hours', 'minutes'] |
| 430 |
carrier_endpoint_bwl_status: |
| 431 |
aliases: ['carrier-endpoint-bwl-status'] |
| 432 |
type: str |
| 433 |
description: Carrier end point black/white list notification status. |
| 434 |
choices: ['disable', 'enable'] |
| 435 |
days_allowed: |
| 436 |
aliases: ['days-allowed'] |
| 437 |
type: list |
| 438 |
elements: str |
| 439 |
description: Weekdays on which notification messages may be sent. |
| 440 |
choices: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', |
| 441 |
'friday', 'saturday'] |
| 442 |
detect_server: |
| 443 |
aliases: ['detect-server'] |
| 444 |
type: str |
| 445 |
description: Enable/disable automatic server address determination. |
| 446 |
choices: ['disable', 'enable'] |
| 447 |
dupe_int: |
| 448 |
aliases: ['dupe-int'] |
| 449 |
type: int |
| 450 |
description: Duplicate notification send interval. |
| 451 |
dupe_int_mode: |
| 452 |
aliases: ['dupe-int-mode'] |
| 453 |
type: str |
| 454 |
description: Duplicate notification interval mode. |
| 455 |
choices: ['hours', 'minutes'] |
| 456 |
dupe_status: |
| 457 |
aliases: ['dupe-status'] |
| 458 |
type: str |
| 459 |
description: Duplicate notification status. |
| 460 |
choices: ['disable', 'enable'] |
| 461 |
file_block_int: |
| 462 |
aliases: ['file-block-int'] |
| 463 |
type: int |
| 464 |
description: File block notification send interval. |
| 465 |
file_block_int_mode: |
| 466 |
aliases: ['file-block-int-mode'] |
| 467 |
type: str |
| 468 |
description: File block notification interval mode. |
| 469 |
choices: ['hours', 'minutes'] |
| 470 |
file_block_status: |
| 471 |
aliases: ['file-block-status'] |
| 472 |
type: str |
| 473 |
description: File block notification status. |
| 474 |
choices: ['disable', 'enable'] |
| 475 |
flood_int: |
| 476 |
aliases: ['flood-int'] |
| 477 |
type: int |
| 478 |
description: Flood notification send interval. |
| 479 |
flood_int_mode: |
| 480 |
aliases: ['flood-int-mode'] |
| 481 |
type: str |
| 482 |
description: Flood notification interval mode. |
| 483 |
choices: ['hours', 'minutes'] |
| 484 |
flood_status: |
| 485 |
aliases: ['flood-status'] |
| 486 |
type: str |
| 487 |
description: Flood notification status. |
| 488 |
choices: ['disable', 'enable'] |
| 489 |
from_in_header: |
| 490 |
aliases: ['from-in-header'] |
| 491 |
type: str |
| 492 |
description: Enable/disable insertion of from address in HTTP header. |
| 493 |
choices: ['disable', 'enable'] |
| 494 |
mms_checksum_int: |
| 495 |
aliases: ['mms-checksum-int'] |
| 496 |
type: int |
| 497 |
description: MMS checksum notification send interval. |
| 498 |
mms_checksum_int_mode: |
| 499 |
aliases: ['mms-checksum-int-mode'] |
| 500 |
type: str |
| 501 |
description: MMS checksum notification interval mode. |
| 502 |
choices: ['hours', 'minutes'] |
| 503 |
mms_checksum_status: |
| 504 |
aliases: ['mms-checksum-status'] |
| 505 |
type: str |
| 506 |
description: MMS checksum notification status. |
| 507 |
choices: ['disable', 'enable'] |
| 508 |
mmsc_hostname: |
| 509 |
aliases: ['mmsc-hostname'] |
| 510 |
type: str |
| 511 |
description: Host name or IP address of the MMSC. |
| 512 |
mmsc_password: |
| 513 |
aliases: ['mmsc-password'] |
| 514 |
type: raw |
| 515 |
description: (list) Password required for authentication with the MMSC. |
| 516 |
mmsc_port: |
| 517 |
aliases: ['mmsc-port'] |
| 518 |
type: int |
| 519 |
description: Port used on the MMSC for sending MMS messages |
| 520 |
mmsc_url: |
| 521 |
aliases: ['mmsc-url'] |
| 522 |
type: str |
| 523 |
description: URL used on the MMSC for sending MMS messages. |
| 524 |
mmsc_username: |
| 525 |
aliases: ['mmsc-username'] |
| 526 |
type: str |
| 527 |
description: User name required for authentication with the MMSC. |
| 528 |
msg_protocol: |
| 529 |
aliases: ['msg-protocol'] |
| 530 |
type: str |
| 531 |
description: Protocol to use for sending notification messages. |
| 532 |
choices: ['mm1', 'mm3', 'mm4', 'mm7'] |
| 533 |
msg_type: |
| 534 |
aliases: ['msg-type'] |
| 535 |
type: str |
| 536 |
description: MM7 message type. |
| 537 |
choices: ['submit-req', 'deliver-req'] |
| 538 |
protocol: |
| 539 |
type: str |
| 540 |
description: Protocol. |
| 541 |
rate_limit: |
| 542 |
aliases: ['rate-limit'] |
| 543 |
type: int |
| 544 |
description: Rate limit for sending notification messages |
| 545 |
tod_window_duration: |
| 546 |
aliases: ['tod-window-duration'] |
| 547 |
type: str |
| 548 |
description: Time of day window duration. |
| 549 |
tod_window_end: |
| 550 |
aliases: ['tod-window-end'] |
| 551 |
type: str |
| 552 |
description: Obsolete. |
| 553 |
tod_window_start: |
| 554 |
aliases: ['tod-window-start'] |
| 555 |
type: str |
| 556 |
description: Time of day window start. |
| 557 |
user_domain: |
| 558 |
aliases: ['user-domain'] |
| 559 |
type: str |
| 560 |
description: Domain name to which the user addresses belong. |
| 561 |
vas_id: |
| 562 |
aliases: ['vas-id'] |
| 563 |
type: str |
| 564 |
description: VAS identifier. |
| 565 |
vasp_id: |
| 566 |
aliases: ['vasp-id'] |
| 567 |
type: str |
| 568 |
description: VASP identifier. |
| 569 |
virus_int: |
| 570 |
aliases: ['virus-int'] |
| 571 |
type: int |
| 572 |
description: Virus notification send interval. |
| 573 |
virus_int_mode: |
| 574 |
aliases: ['virus-int-mode'] |
| 575 |
type: str |
| 576 |
description: Virus notification interval mode. |
| 577 |
choices: ['hours', 'minutes'] |
| 578 |
virus_status: |
| 579 |
aliases: ['virus-status'] |
| 580 |
type: str |
| 581 |
description: Virus notification status. |
| 582 |
choices: ['disable', 'enable'] |
| 583 |
outbreak_prevention: |
| 584 |
aliases: ['outbreak-prevention'] |
| 585 |
type: dict |
| 586 |
description: Outbreak prevention. |
| 587 |
suboptions: |
| 588 |
external_blocklist: |
| 589 |
aliases: ['external-blocklist'] |
| 590 |
type: str |
| 591 |
description: Enable/disable external malware blocklist. |
| 592 |
choices: ['disable', 'enable'] |
| 593 |
ftgd_service: |
| 594 |
aliases: ['ftgd-service'] |
| 595 |
type: str |
| 596 |
description: Enable/disable FortiGuard Virus outbreak prevention service. |
| 597 |
choices: ['disable', 'enable'] |
| 598 |
''' |
| 599 |
|
| 600 |
EXAMPLES = ''' |
| 601 |
- name: Example playbook |
| 602 |
hosts: fortimanagers |
| 603 |
gather_facts: false |
| 604 |
connection: httpapi |
| 605 |
vars: |
| 606 |
ansible_httpapi_use_ssl: true |
| 607 |
ansible_httpapi_validate_certs: false |
| 608 |
ansible_httpapi_port: 443 |
| 609 |
tasks: |
| 610 |
- name: Configure MMS profiles. |
| 611 |
fortinet.fortimanager.fmgr_firewall_mmsprofile: |
| 612 |
bypass_validation: false |
| 613 |
adom: FortiCarrier # FortiCarrier only object, need a FortiCarrier adom |
| 614 |
state: present |
| 615 |
firewall_mmsprofile: |
| 616 |
comment: "ansible-comment" |
| 617 |
# extended_utm_log: disable |
| 618 |
mm1: |
| 619 |
- avmonitor |
| 620 |
- block |
| 621 |
- oversize |
| 622 |
- quarantine |
| 623 |
- scan |
| 624 |
- avquery |
| 625 |
- bannedword |
| 626 |
- no-content-summary |
| 627 |
- archive-summary |
| 628 |
- archive-full |
| 629 |
- carrier-endpoint-bwl |
| 630 |
- remove-blocked |
| 631 |
- chunkedbypass |
| 632 |
- clientcomfort |
| 633 |
- servercomfort |
| 634 |
- strict-file |
| 635 |
- mms-checksum |
| 636 |
mm3: |
| 637 |
- avmonitor |
| 638 |
- block |
| 639 |
- oversize |
| 640 |
- quarantine |
| 641 |
- scan |
| 642 |
- avquery |
| 643 |
- bannedword |
| 644 |
- no-content-summary |
| 645 |
- archive-summary |
| 646 |
- archive-full |
| 647 |
- carrier-endpoint-bwl |
| 648 |
- remove-blocked |
| 649 |
- fragmail |
| 650 |
- splice |
| 651 |
- mms-checksum |
| 652 |
mm4: |
| 653 |
- avmonitor |
| 654 |
- block |
| 655 |
- oversize |
| 656 |
- quarantine |
| 657 |
- scan |
| 658 |
- avquery |
| 659 |
- bannedword |
| 660 |
- no-content-summary |
| 661 |
- archive-summary |
| 662 |
- archive-full |
| 663 |
- carrier-endpoint-bwl |
| 664 |
- remove-blocked |
| 665 |
- fragmail |
| 666 |
- splice |
| 667 |
- mms-checksum |
| 668 |
mm7: |
| 669 |
- avmonitor |
| 670 |
- block |
| 671 |
- oversize |
| 672 |
- quarantine |
| 673 |
- scan |
| 674 |
- avquery |
| 675 |
- bannedword |
| 676 |
- no-content-summary |
| 677 |
- archive-summary |
| 678 |
- archive-full |
| 679 |
- carrier-endpoint-bwl |
| 680 |
- remove-blocked |
| 681 |
- chunkedbypass |
| 682 |
- clientcomfort |
| 683 |
- servercomfort |
| 684 |
- strict-file |
| 685 |
- mms-checksum |
| 686 |
name: "ansible-test" |
| 687 |
|
| 688 |
- name: Gathering fortimanager facts |
| 689 |
hosts: fortimanagers |
| 690 |
gather_facts: false |
| 691 |
connection: httpapi |
| 692 |
vars: |
| 693 |
ansible_httpapi_use_ssl: true |
| 694 |
ansible_httpapi_validate_certs: false |
| 695 |
ansible_httpapi_port: 443 |
| 696 |
tasks: |
| 697 |
- name: Retrieve all the MMS profiles |
| 698 |
fortinet.fortimanager.fmgr_fact: |
| 699 |
facts: |
| 700 |
selector: "firewall_mmsprofile" |
| 701 |
params: |
| 702 |
adom: "FortiCarrier" # FortiCarrier only object, need a FortiCarrier adom |
| 703 |
mms_profile: "your_value" |
| 704 |
''' |
| 705 |
|
| 706 |
RETURN = ''' |
| 707 |
meta: |
| 708 |
description: The result of the request. |
| 709 |
type: dict |
| 710 |
returned: always |
| 711 |
contains: |
| 712 |
request_url: |
| 713 |
description: The full url requested. |
| 714 |
returned: always |
| 715 |
type: str |
| 716 |
sample: /sys/login/user |
| 717 |
response_code: |
| 718 |
description: The status of api request. |
| 719 |
returned: always |
| 720 |
type: int |
| 721 |
sample: 0 |
| 722 |
response_data: |
| 723 |
description: The api response. |
| 724 |
type: list |
| 725 |
returned: always |
| 726 |
response_message: |
| 727 |
description: The descriptive message of the api response. |
| 728 |
type: str |
| 729 |
returned: always |
| 730 |
sample: OK. |
| 731 |
system_information: |
| 732 |
description: The information of the target system. |
| 733 |
type: dict |
| 734 |
returned: always |
| 735 |
rc: |
| 736 |
description: The status the request. |
| 737 |
type: int |
| 738 |
returned: always |
| 739 |
sample: 0 |
| 740 |
version_check_warning: |
| 741 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 742 |
type: list |
| 743 |
returned: complex |
| 744 |
''' |
| 745 |
from ansible.module_utils.basic import AnsibleModule |
| 746 |
from ansible.module_utils.connection import Connection |
| 747 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 748 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 749 |
|
| 750 |
|
| 751 |
def main(): |
| 752 |
urls_list = [ |
| 753 |
'/pm/config/adom/{adom}/obj/firewall/mms-profile', |
| 754 |
'/pm/config/global/obj/firewall/mms-profile' |
| 755 |
] |
| 756 |
module_arg_spec = { |
| 757 |
'adom': {'required': True, 'type': 'str'}, |
| 758 |
'revision_note': {'type': 'str'}, |
| 759 |
'firewall_mmsprofile': { |
| 760 |
'type': 'dict', 'v_range': [['6.0.0', '7.6.2']], |
| 761 |
'options': { |
| 762 |
'avnotificationtable': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 763 |
'bwordtable': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 764 |
'carrier-endpoint-prefix': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 765 |
'carrier-endpoint-prefix-range-max': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 766 |
'carrier-endpoint-prefix-range-min': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 767 |
'carrier-endpoint-prefix-string': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 768 |
'carrierendpointbwltable': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 769 |
'comment': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 770 |
'mm1': { |
| 771 |
'v_range': [['6.0.0', '7.6.2']], |
| 772 |
'type': 'list', |
| 773 |
'choices': [ |
| 774 |
'avmonitor', 'block', 'oversize', 'quarantine', 'scan', 'avquery', 'bannedword', 'no-content-summary', 'archive-summary', |
| 775 |
'archive-full', 'carrier-endpoint-bwl', 'remove-blocked', 'chunkedbypass', 'clientcomfort', 'servercomfort', 'strict-file', |
| 776 |
'mms-checksum' |
| 777 |
], |
| 778 |
'elements': 'str' |
| 779 |
}, |
| 780 |
'mm1-addr-hdr': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 781 |
'mm1-addr-source': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['http-header', 'cookie'], 'type': 'str'}, |
| 782 |
'mm1-convert-hex': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 783 |
'mm1-outbreak-prevention': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disabled', 'files', 'full-archive'], 'type': 'str'}, |
| 784 |
'mm1-retr-dupe': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 785 |
'mm1-retrieve-scan': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 786 |
'mm1comfortamount': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 787 |
'mm1comfortinterval': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 788 |
'mm1oversizelimit': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 789 |
'mm3': { |
| 790 |
'v_range': [['6.0.0', '7.6.2']], |
| 791 |
'type': 'list', |
| 792 |
'choices': [ |
| 793 |
'avmonitor', 'block', 'oversize', 'quarantine', 'scan', 'avquery', 'bannedword', 'no-content-summary', 'archive-summary', |
| 794 |
'archive-full', 'carrier-endpoint-bwl', 'remove-blocked', 'fragmail', 'splice', 'mms-checksum' |
| 795 |
], |
| 796 |
'elements': 'str' |
| 797 |
}, |
| 798 |
'mm3-outbreak-prevention': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disabled', 'files', 'full-archive'], 'type': 'str'}, |
| 799 |
'mm3oversizelimit': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 800 |
'mm4': { |
| 801 |
'v_range': [['6.0.0', '7.6.2']], |
| 802 |
'type': 'list', |
| 803 |
'choices': [ |
| 804 |
'avmonitor', 'block', 'oversize', 'quarantine', 'scan', 'avquery', 'bannedword', 'no-content-summary', 'archive-summary', |
| 805 |
'archive-full', 'carrier-endpoint-bwl', 'remove-blocked', 'fragmail', 'splice', 'mms-checksum' |
| 806 |
], |
| 807 |
'elements': 'str' |
| 808 |
}, |
| 809 |
'mm4-outbreak-prevention': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disabled', 'files', 'full-archive'], 'type': 'str'}, |
| 810 |
'mm4oversizelimit': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 811 |
'mm7': { |
| 812 |
'v_range': [['6.0.0', '7.6.2']], |
| 813 |
'type': 'list', |
| 814 |
'choices': [ |
| 815 |
'avmonitor', 'block', 'oversize', 'quarantine', 'scan', 'avquery', 'bannedword', 'no-content-summary', 'archive-summary', |
| 816 |
'archive-full', 'carrier-endpoint-bwl', 'remove-blocked', 'chunkedbypass', 'clientcomfort', 'servercomfort', 'strict-file', |
| 817 |
'mms-checksum' |
| 818 |
], |
| 819 |
'elements': 'str' |
| 820 |
}, |
| 821 |
'mm7-addr-hdr': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 822 |
'mm7-addr-source': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['http-header', 'cookie'], 'type': 'str'}, |
| 823 |
'mm7-convert-hex': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 824 |
'mm7-outbreak-prevention': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disabled', 'files', 'full-archive'], 'type': 'str'}, |
| 825 |
'mm7comfortamount': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 826 |
'mm7comfortinterval': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 827 |
'mm7oversizelimit': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 828 |
'mms-antispam-mass-log': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 829 |
'mms-av-block-log': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 830 |
'mms-av-oversize-log': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 831 |
'mms-av-virus-log': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 832 |
'mms-carrier-endpoint-filter-log': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 833 |
'mms-checksum-log': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 834 |
'mms-checksum-table': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 835 |
'mms-notification-log': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 836 |
'mms-web-content-log': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 837 |
'mmsbwordthreshold': {'v_range': [['6.0.0', '7.6.2']], 'type': 'int'}, |
| 838 |
'name': {'v_range': [['6.0.0', '7.6.2']], 'required': True, 'type': 'str'}, |
| 839 |
'notif-msisdn': { |
| 840 |
'v_range': [['6.0.0', '7.6.2']], |
| 841 |
'type': 'list', |
| 842 |
'options': { |
| 843 |
'msisdn': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 844 |
'threshold': { |
| 845 |
'v_range': [['6.0.0', '7.6.2']], |
| 846 |
'type': 'list', |
| 847 |
'choices': ['flood-thresh-1', 'flood-thresh-2', 'flood-thresh-3', 'dupe-thresh-1', 'dupe-thresh-2', 'dupe-thresh-3'], |
| 848 |
'elements': 'str' |
| 849 |
} |
| 850 |
}, |
| 851 |
'elements': 'dict' |
| 852 |
}, |
| 853 |
'remove-blocked-const-length': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 854 |
'replacemsg-group': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 855 |
'dupe': { |
| 856 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 857 |
'type': 'dict', |
| 858 |
'options': { |
| 859 |
'action1': { |
| 860 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 861 |
'type': 'list', |
| 862 |
'choices': ['log', 'archive', 'intercept', 'block', 'archive-first', 'alert-notif'], |
| 863 |
'elements': 'str' |
| 864 |
}, |
| 865 |
'action2': { |
| 866 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 867 |
'type': 'list', |
| 868 |
'choices': ['log', 'archive', 'intercept', 'block', 'archive-first', 'alert-notif'], |
| 869 |
'elements': 'str' |
| 870 |
}, |
| 871 |
'action3': { |
| 872 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 873 |
'type': 'list', |
| 874 |
'choices': ['log', 'archive', 'intercept', 'block', 'archive-first', 'alert-notif'], |
| 875 |
'elements': 'str' |
| 876 |
}, |
| 877 |
'block-time1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 878 |
'block-time2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 879 |
'block-time3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 880 |
'limit1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 881 |
'limit2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 882 |
'limit3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 883 |
'protocol': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 884 |
'status1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 885 |
'status2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 886 |
'status3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 887 |
'window1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 888 |
'window2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 889 |
'window3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'} |
| 890 |
} |
| 891 |
}, |
| 892 |
'flood': { |
| 893 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 894 |
'type': 'dict', |
| 895 |
'options': { |
| 896 |
'action1': { |
| 897 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 898 |
'type': 'list', |
| 899 |
'choices': ['log', 'archive', 'intercept', 'block', 'archive-first', 'alert-notif'], |
| 900 |
'elements': 'str' |
| 901 |
}, |
| 902 |
'action2': { |
| 903 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 904 |
'type': 'list', |
| 905 |
'choices': ['log', 'archive', 'intercept', 'block', 'archive-first', 'alert-notif'], |
| 906 |
'elements': 'str' |
| 907 |
}, |
| 908 |
'action3': { |
| 909 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 910 |
'type': 'list', |
| 911 |
'choices': ['log', 'archive', 'intercept', 'block', 'archive-first', 'alert-notif'], |
| 912 |
'elements': 'str' |
| 913 |
}, |
| 914 |
'block-time1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 915 |
'block-time2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 916 |
'block-time3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 917 |
'limit1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 918 |
'limit2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 919 |
'limit3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 920 |
'protocol': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 921 |
'status1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 922 |
'status2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 923 |
'status3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 924 |
'window1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 925 |
'window2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 926 |
'window3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'} |
| 927 |
} |
| 928 |
}, |
| 929 |
'notification': { |
| 930 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 931 |
'type': 'dict', |
| 932 |
'options': { |
| 933 |
'alert-int': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 934 |
'alert-int-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['hours', 'minutes'], 'type': 'str'}, |
| 935 |
'alert-src-msisdn': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 936 |
'alert-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 937 |
'bword-int': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 938 |
'bword-int-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['hours', 'minutes'], 'type': 'str'}, |
| 939 |
'bword-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 940 |
'carrier-endpoint-bwl-int': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 941 |
'carrier-endpoint-bwl-int-mode': { |
| 942 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 943 |
'choices': ['hours', 'minutes'], |
| 944 |
'type': 'str' |
| 945 |
}, |
| 946 |
'carrier-endpoint-bwl-status': { |
| 947 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 948 |
'choices': ['disable', 'enable'], |
| 949 |
'type': 'str' |
| 950 |
}, |
| 951 |
'days-allowed': { |
| 952 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 953 |
'type': 'list', |
| 954 |
'choices': ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'], |
| 955 |
'elements': 'str' |
| 956 |
}, |
| 957 |
'detect-server': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 958 |
'dupe-int': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 959 |
'dupe-int-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['hours', 'minutes'], 'type': 'str'}, |
| 960 |
'dupe-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 961 |
'file-block-int': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 962 |
'file-block-int-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['hours', 'minutes'], 'type': 'str'}, |
| 963 |
'file-block-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 964 |
'flood-int': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 965 |
'flood-int-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['hours', 'minutes'], 'type': 'str'}, |
| 966 |
'flood-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 967 |
'from-in-header': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 968 |
'mms-checksum-int': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 969 |
'mms-checksum-int-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['hours', 'minutes'], 'type': 'str'}, |
| 970 |
'mms-checksum-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 971 |
'mmsc-hostname': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 972 |
'mmsc-password': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'no_log': True, 'type': 'raw'}, |
| 973 |
'mmsc-port': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 974 |
'mmsc-url': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 975 |
'mmsc-username': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 976 |
'msg-protocol': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['mm1', 'mm3', 'mm4', 'mm7'], 'type': 'str'}, |
| 977 |
'msg-type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['submit-req', 'deliver-req'], 'type': 'str'}, |
| 978 |
'protocol': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 979 |
'rate-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 980 |
'tod-window-duration': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 981 |
'tod-window-end': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.2.0']], 'type': 'str'}, |
| 982 |
'tod-window-start': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 983 |
'user-domain': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 984 |
'vas-id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 985 |
'vasp-id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'str'}, |
| 986 |
'virus-int': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'type': 'int'}, |
| 987 |
'virus-int-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['hours', 'minutes'], 'type': 'str'}, |
| 988 |
'virus-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 989 |
} |
| 990 |
}, |
| 991 |
'outbreak-prevention': { |
| 992 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], |
| 993 |
'type': 'dict', |
| 994 |
'options': { |
| 995 |
'external-blocklist': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 996 |
'ftgd-service': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 997 |
} |
| 998 |
} |
| 999 |
} |
| 1000 |
} |
| 1001 |
} |
| 1002 |
|
| 1003 |
module_option_spec = get_module_arg_spec('full crud') |
| 1004 |
module_arg_spec.update(module_option_spec) |
| 1005 |
check_galaxy_version(module_arg_spec) |
| 1006 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'firewall_mmsprofile'), |
| 1007 |
supports_check_mode=True) |
| 1008 |
if not module._socket_path: |
| 1009 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 1010 |
connection = Connection(module._socket_path) |
| 1011 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 1012 |
'name', 'data', module, connection) |
| 1013 |
fmgr.process_crud() |
| 1014 |
module.exit_json(meta=module.params) |
| 1015 |
|
| 1016 |
|
| 1017 |
if __name__ == '__main__': |
| 1018 |
main() |