| 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_system_replacemsggroup |
| 15 |
short_description: Configure replacement message groups. |
| 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 |
system_replacemsggroup: |
| 29 |
description: The top level parameters set. |
| 30 |
required: false |
| 31 |
type: dict |
| 32 |
suboptions: |
| 33 |
admin: |
| 34 |
type: list |
| 35 |
elements: dict |
| 36 |
description: Admin. |
| 37 |
suboptions: |
| 38 |
buffer: |
| 39 |
type: str |
| 40 |
description: Message string. |
| 41 |
format: |
| 42 |
type: str |
| 43 |
description: Format flag. |
| 44 |
choices: ['none', 'text', 'html', 'wml'] |
| 45 |
header: |
| 46 |
type: str |
| 47 |
description: Header flag. |
| 48 |
choices: ['none', 'http', '8bit'] |
| 49 |
msg_type: |
| 50 |
aliases: ['msg-type'] |
| 51 |
type: str |
| 52 |
description: Message type. |
| 53 |
alertmail: |
| 54 |
type: list |
| 55 |
elements: dict |
| 56 |
description: Alertmail. |
| 57 |
suboptions: |
| 58 |
buffer: |
| 59 |
type: str |
| 60 |
description: Message string. |
| 61 |
format: |
| 62 |
type: str |
| 63 |
description: Format flag. |
| 64 |
choices: ['none', 'text', 'html', 'wml'] |
| 65 |
header: |
| 66 |
type: str |
| 67 |
description: Header flag. |
| 68 |
choices: ['none', 'http', '8bit'] |
| 69 |
msg_type: |
| 70 |
aliases: ['msg-type'] |
| 71 |
type: str |
| 72 |
description: Message type. |
| 73 |
id: |
| 74 |
type: int |
| 75 |
description: Id. |
| 76 |
auth: |
| 77 |
type: list |
| 78 |
elements: dict |
| 79 |
description: Auth. |
| 80 |
suboptions: |
| 81 |
buffer: |
| 82 |
type: str |
| 83 |
description: Message string. |
| 84 |
format: |
| 85 |
type: str |
| 86 |
description: Format flag. |
| 87 |
choices: ['none', 'text', 'html', 'wml'] |
| 88 |
header: |
| 89 |
type: str |
| 90 |
description: Header flag. |
| 91 |
choices: ['none', 'http', '8bit'] |
| 92 |
msg_type: |
| 93 |
aliases: ['msg-type'] |
| 94 |
type: str |
| 95 |
description: Message type. |
| 96 |
comment: |
| 97 |
type: str |
| 98 |
description: Comment. |
| 99 |
custom_message: |
| 100 |
aliases: ['custom-message'] |
| 101 |
type: list |
| 102 |
elements: dict |
| 103 |
description: Custom message. |
| 104 |
suboptions: |
| 105 |
buffer: |
| 106 |
type: str |
| 107 |
description: Message string. |
| 108 |
format: |
| 109 |
type: str |
| 110 |
description: Format flag. |
| 111 |
choices: ['none', 'text', 'html', 'wml'] |
| 112 |
header: |
| 113 |
type: str |
| 114 |
description: Header flag. |
| 115 |
choices: ['none', 'http', '8bit'] |
| 116 |
msg_type: |
| 117 |
aliases: ['msg-type'] |
| 118 |
type: str |
| 119 |
description: Message type. |
| 120 |
device_detection_portal: |
| 121 |
aliases: ['device-detection-portal'] |
| 122 |
type: list |
| 123 |
elements: dict |
| 124 |
description: Device detection portal. |
| 125 |
suboptions: |
| 126 |
buffer: |
| 127 |
type: str |
| 128 |
description: Message string. |
| 129 |
format: |
| 130 |
type: str |
| 131 |
description: Format flag. |
| 132 |
choices: ['none', 'text', 'html', 'wml'] |
| 133 |
header: |
| 134 |
type: str |
| 135 |
description: Header flag. |
| 136 |
choices: ['none', 'http', '8bit'] |
| 137 |
msg_type: |
| 138 |
aliases: ['msg-type'] |
| 139 |
type: str |
| 140 |
description: Message type. |
| 141 |
ec: |
| 142 |
type: list |
| 143 |
elements: dict |
| 144 |
description: Ec. |
| 145 |
suboptions: |
| 146 |
buffer: |
| 147 |
type: str |
| 148 |
description: Message string. |
| 149 |
format: |
| 150 |
type: str |
| 151 |
description: Format flag. |
| 152 |
choices: ['none', 'text', 'html', 'wml'] |
| 153 |
header: |
| 154 |
type: str |
| 155 |
description: Header flag. |
| 156 |
choices: ['none', 'http', '8bit'] |
| 157 |
msg_type: |
| 158 |
aliases: ['msg-type'] |
| 159 |
type: str |
| 160 |
description: Message type. |
| 161 |
fortiguard_wf: |
| 162 |
aliases: ['fortiguard-wf'] |
| 163 |
type: list |
| 164 |
elements: dict |
| 165 |
description: Fortiguard wf. |
| 166 |
suboptions: |
| 167 |
buffer: |
| 168 |
type: str |
| 169 |
description: Message string. |
| 170 |
format: |
| 171 |
type: str |
| 172 |
description: Format flag. |
| 173 |
choices: ['none', 'text', 'html', 'wml'] |
| 174 |
header: |
| 175 |
type: str |
| 176 |
description: Header flag. |
| 177 |
choices: ['none', 'http', '8bit'] |
| 178 |
msg_type: |
| 179 |
aliases: ['msg-type'] |
| 180 |
type: str |
| 181 |
description: Message type. |
| 182 |
ftp: |
| 183 |
type: list |
| 184 |
elements: dict |
| 185 |
description: Ftp. |
| 186 |
suboptions: |
| 187 |
buffer: |
| 188 |
type: str |
| 189 |
description: Message string. |
| 190 |
format: |
| 191 |
type: str |
| 192 |
description: Format flag. |
| 193 |
choices: ['none', 'text', 'html', 'wml'] |
| 194 |
header: |
| 195 |
type: str |
| 196 |
description: Header flag. |
| 197 |
choices: ['none', 'http', '8bit'] |
| 198 |
msg_type: |
| 199 |
aliases: ['msg-type'] |
| 200 |
type: str |
| 201 |
description: Message type. |
| 202 |
group_type: |
| 203 |
aliases: ['group-type'] |
| 204 |
type: str |
| 205 |
description: Group type. |
| 206 |
choices: ['default', 'utm', 'auth', 'ec', 'captive-portal'] |
| 207 |
http: |
| 208 |
type: list |
| 209 |
elements: dict |
| 210 |
description: Http. |
| 211 |
suboptions: |
| 212 |
buffer: |
| 213 |
type: str |
| 214 |
description: Message string. |
| 215 |
format: |
| 216 |
type: str |
| 217 |
description: Format flag. |
| 218 |
choices: ['none', 'text', 'html', 'wml'] |
| 219 |
header: |
| 220 |
type: str |
| 221 |
description: Header flag. |
| 222 |
choices: ['none', 'http', '8bit'] |
| 223 |
msg_type: |
| 224 |
aliases: ['msg-type'] |
| 225 |
type: str |
| 226 |
description: Message type. |
| 227 |
icap: |
| 228 |
type: list |
| 229 |
elements: dict |
| 230 |
description: Icap. |
| 231 |
suboptions: |
| 232 |
buffer: |
| 233 |
type: str |
| 234 |
description: Message string. |
| 235 |
format: |
| 236 |
type: str |
| 237 |
description: Format flag. |
| 238 |
choices: ['none', 'text', 'html', 'wml'] |
| 239 |
header: |
| 240 |
type: str |
| 241 |
description: Header flag. |
| 242 |
choices: ['none', 'http', '8bit'] |
| 243 |
msg_type: |
| 244 |
aliases: ['msg-type'] |
| 245 |
type: str |
| 246 |
description: Message type. |
| 247 |
mail: |
| 248 |
type: list |
| 249 |
elements: dict |
| 250 |
description: Mail. |
| 251 |
suboptions: |
| 252 |
buffer: |
| 253 |
type: str |
| 254 |
description: Message string. |
| 255 |
format: |
| 256 |
type: str |
| 257 |
description: Format flag. |
| 258 |
choices: ['none', 'text', 'html', 'wml'] |
| 259 |
header: |
| 260 |
type: str |
| 261 |
description: Header flag. |
| 262 |
choices: ['none', 'http', '8bit'] |
| 263 |
msg_type: |
| 264 |
aliases: ['msg-type'] |
| 265 |
type: str |
| 266 |
description: Message type. |
| 267 |
mm1: |
| 268 |
type: list |
| 269 |
elements: dict |
| 270 |
description: Mm1. |
| 271 |
suboptions: |
| 272 |
add_smil: |
| 273 |
aliases: ['add-smil'] |
| 274 |
type: str |
| 275 |
description: Add message encapsulation |
| 276 |
choices: ['disable', 'enable'] |
| 277 |
charset: |
| 278 |
type: str |
| 279 |
description: Character encoding used for replacement message |
| 280 |
choices: ['us-ascii', 'utf-8'] |
| 281 |
class: |
| 282 |
type: str |
| 283 |
description: Message class |
| 284 |
choices: ['personal', 'advertisement', 'information', 'automatic', |
| 285 |
'not-included'] |
| 286 |
format: |
| 287 |
type: str |
| 288 |
description: Format flag. |
| 289 |
choices: ['none', 'text', 'html', 'wml'] |
| 290 |
from: |
| 291 |
type: str |
| 292 |
description: From address |
| 293 |
from_sender: |
| 294 |
aliases: ['from-sender'] |
| 295 |
type: str |
| 296 |
description: Notification message sent from recipient |
| 297 |
choices: ['disable', 'enable'] |
| 298 |
header: |
| 299 |
type: str |
| 300 |
description: Header flag. |
| 301 |
choices: ['none', 'http', '8bit'] |
| 302 |
image: |
| 303 |
type: str |
| 304 |
description: Message string. |
| 305 |
fmgr_message: |
| 306 |
type: str |
| 307 |
description: Message text |
| 308 |
msg_type: |
| 309 |
aliases: ['msg-type'] |
| 310 |
type: str |
| 311 |
description: Message type. |
| 312 |
priority: |
| 313 |
type: str |
| 314 |
description: Message priority |
| 315 |
choices: ['low', 'normal', 'high', 'not-included'] |
| 316 |
rsp_status: |
| 317 |
aliases: ['rsp-status'] |
| 318 |
type: str |
| 319 |
description: Response status code |
| 320 |
choices: ['ok', 'err-unspecified', 'err-srv-denied', |
| 321 |
'err-msg-fmt-corrupt', 'err-snd-addr-unresolv', |
| 322 |
'err-msg-not-found', 'err-net-prob', 'err-content-not-accept', |
| 323 |
'err-unsupp-msg'] |
| 324 |
rsp_text: |
| 325 |
aliases: ['rsp-text'] |
| 326 |
type: str |
| 327 |
description: Response text |
| 328 |
sender_visibility: |
| 329 |
aliases: ['sender-visibility'] |
| 330 |
type: str |
| 331 |
description: Sender visibility |
| 332 |
choices: ['hide', 'show', 'not-specified'] |
| 333 |
smil_part: |
| 334 |
aliases: ['smil-part'] |
| 335 |
type: str |
| 336 |
description: Message encapsulation text |
| 337 |
subject: |
| 338 |
type: str |
| 339 |
description: Subject text string |
| 340 |
mm3: |
| 341 |
type: list |
| 342 |
elements: dict |
| 343 |
description: Mm3. |
| 344 |
suboptions: |
| 345 |
add_html: |
| 346 |
aliases: ['add-html'] |
| 347 |
type: str |
| 348 |
description: Add message encapsulation |
| 349 |
choices: ['disable', 'enable'] |
| 350 |
charset: |
| 351 |
type: str |
| 352 |
description: Character encoding used for replacement message |
| 353 |
choices: ['us-ascii', 'utf-8'] |
| 354 |
format: |
| 355 |
type: str |
| 356 |
description: Format flag. |
| 357 |
choices: ['none', 'text', 'html', 'wml'] |
| 358 |
from: |
| 359 |
type: str |
| 360 |
description: From address |
| 361 |
from_sender: |
| 362 |
aliases: ['from-sender'] |
| 363 |
type: str |
| 364 |
description: Notification message sent from recipient |
| 365 |
choices: ['disable', 'enable'] |
| 366 |
header: |
| 367 |
type: str |
| 368 |
description: Header flag. |
| 369 |
choices: ['none', 'http', '8bit'] |
| 370 |
html_part: |
| 371 |
aliases: ['html-part'] |
| 372 |
type: str |
| 373 |
description: Message encapsulation text |
| 374 |
image: |
| 375 |
type: str |
| 376 |
description: Message string. |
| 377 |
fmgr_message: |
| 378 |
type: str |
| 379 |
description: Message text |
| 380 |
msg_type: |
| 381 |
aliases: ['msg-type'] |
| 382 |
type: str |
| 383 |
description: Message type. |
| 384 |
priority: |
| 385 |
type: str |
| 386 |
description: Message priority |
| 387 |
choices: ['low', 'normal', 'high', 'not-included'] |
| 388 |
subject: |
| 389 |
type: str |
| 390 |
description: Subject text string |
| 391 |
mm4: |
| 392 |
type: list |
| 393 |
elements: dict |
| 394 |
description: Mm4. |
| 395 |
suboptions: |
| 396 |
add_smil: |
| 397 |
aliases: ['add-smil'] |
| 398 |
type: str |
| 399 |
description: Add message encapsulation |
| 400 |
choices: ['disable', 'enable'] |
| 401 |
charset: |
| 402 |
type: str |
| 403 |
description: Character encoding used for replacement message |
| 404 |
choices: ['us-ascii', 'utf-8'] |
| 405 |
class: |
| 406 |
type: str |
| 407 |
description: Message class |
| 408 |
choices: ['personal', 'advertisement', 'informational', 'auto', |
| 409 |
'not-included'] |
| 410 |
domain: |
| 411 |
type: str |
| 412 |
description: From address domain |
| 413 |
format: |
| 414 |
type: str |
| 415 |
description: Format flag. |
| 416 |
choices: ['none', 'text', 'html', 'wml'] |
| 417 |
from: |
| 418 |
type: str |
| 419 |
description: From address |
| 420 |
from_sender: |
| 421 |
aliases: ['from-sender'] |
| 422 |
type: str |
| 423 |
description: Notification message sent from recipient |
| 424 |
choices: ['disable', 'enable'] |
| 425 |
header: |
| 426 |
type: str |
| 427 |
description: Header flag. |
| 428 |
choices: ['none', 'http', '8bit'] |
| 429 |
image: |
| 430 |
type: str |
| 431 |
description: Message string. |
| 432 |
fmgr_message: |
| 433 |
type: str |
| 434 |
description: Message text |
| 435 |
msg_type: |
| 436 |
aliases: ['msg-type'] |
| 437 |
type: str |
| 438 |
description: Message type. |
| 439 |
priority: |
| 440 |
type: str |
| 441 |
description: Message priority |
| 442 |
choices: ['low', 'normal', 'high', 'not-included'] |
| 443 |
rsp_status: |
| 444 |
aliases: ['rsp-status'] |
| 445 |
type: str |
| 446 |
description: Response status |
| 447 |
choices: ['ok', 'err-unspecified', 'err-srv-denied', |
| 448 |
'err-msg-fmt-corrupt', 'err-snd-addr-unresolv', 'err-net-prob', |
| 449 |
'err-content-not-accept', 'err-unsupp-msg'] |
| 450 |
smil_part: |
| 451 |
aliases: ['smil-part'] |
| 452 |
type: str |
| 453 |
description: Message encapsulation text |
| 454 |
subject: |
| 455 |
type: str |
| 456 |
description: Subject text string |
| 457 |
mm7: |
| 458 |
type: list |
| 459 |
elements: dict |
| 460 |
description: Mm7. |
| 461 |
suboptions: |
| 462 |
add_smil: |
| 463 |
aliases: ['add-smil'] |
| 464 |
type: str |
| 465 |
description: Add message encapsulation |
| 466 |
choices: ['disable', 'enable'] |
| 467 |
addr_type: |
| 468 |
aliases: ['addr-type'] |
| 469 |
type: str |
| 470 |
description: From address type |
| 471 |
choices: ['rfc2822-addr', 'number', 'short-code'] |
| 472 |
allow_content_adaptation: |
| 473 |
aliases: ['allow-content-adaptation'] |
| 474 |
type: str |
| 475 |
description: Allow content adaptations |
| 476 |
choices: ['disable', 'enable'] |
| 477 |
charset: |
| 478 |
type: str |
| 479 |
description: Character encoding used for replacement message |
| 480 |
choices: ['us-ascii', 'utf-8'] |
| 481 |
class: |
| 482 |
type: str |
| 483 |
description: Message class |
| 484 |
choices: ['personal', 'advertisement', 'informational', 'auto', |
| 485 |
'not-included'] |
| 486 |
format: |
| 487 |
type: str |
| 488 |
description: Format flag. |
| 489 |
choices: ['none', 'text', 'html', 'wml'] |
| 490 |
from: |
| 491 |
type: str |
| 492 |
description: From address |
| 493 |
from_sender: |
| 494 |
aliases: ['from-sender'] |
| 495 |
type: str |
| 496 |
description: Notification message sent from recipient |
| 497 |
choices: ['disable', 'enable'] |
| 498 |
header: |
| 499 |
type: str |
| 500 |
description: Header flag. |
| 501 |
choices: ['none', 'http', '8bit'] |
| 502 |
image: |
| 503 |
type: str |
| 504 |
description: Message string. |
| 505 |
fmgr_message: |
| 506 |
type: str |
| 507 |
description: Message text |
| 508 |
msg_type: |
| 509 |
aliases: ['msg-type'] |
| 510 |
type: str |
| 511 |
description: Message type. |
| 512 |
priority: |
| 513 |
type: str |
| 514 |
description: Message priority |
| 515 |
choices: ['low', 'normal', 'high', 'not-included'] |
| 516 |
rsp_status: |
| 517 |
aliases: ['rsp-status'] |
| 518 |
type: str |
| 519 |
description: Response status |
| 520 |
choices: ['success', 'partial-success', 'client-err', 'oper-restrict', |
| 521 |
'addr-err', 'addr-not-found', 'content-refused', |
| 522 |
'msg-id-not-found', 'link-id-not-found', 'msg-fmt-corrupt', |
| 523 |
'app-id-not-found', 'repl-app-id-not-found', 'srv-err', |
| 524 |
'not-possible', 'msg-rejected', 'multiple-addr-not-supp', |
| 525 |
'app-addr-not-supp', 'gen-service-err', 'improper-ident', |
| 526 |
'unsupp-ver', 'unsupp-oper', 'validation-err', 'service-err', |
| 527 |
'service-unavail', 'service-denied', 'app-denied'] |
| 528 |
smil_part: |
| 529 |
aliases: ['smil-part'] |
| 530 |
type: str |
| 531 |
description: Message encapsulation text |
| 532 |
subject: |
| 533 |
type: str |
| 534 |
description: Subject text string |
| 535 |
mms: |
| 536 |
type: list |
| 537 |
elements: dict |
| 538 |
description: Mms. |
| 539 |
suboptions: |
| 540 |
buffer: |
| 541 |
type: str |
| 542 |
description: Message string. |
| 543 |
charset: |
| 544 |
type: str |
| 545 |
description: Character encoding used for replacement message |
| 546 |
choices: ['us-ascii', 'utf-8'] |
| 547 |
format: |
| 548 |
type: str |
| 549 |
description: Format flag. |
| 550 |
choices: ['none', 'text', 'html', 'wml'] |
| 551 |
header: |
| 552 |
type: str |
| 553 |
description: Header flag. |
| 554 |
choices: ['none', 'http', '8bit'] |
| 555 |
image: |
| 556 |
type: str |
| 557 |
description: Message string. |
| 558 |
msg_type: |
| 559 |
aliases: ['msg-type'] |
| 560 |
type: str |
| 561 |
description: Message type. |
| 562 |
nac_quar: |
| 563 |
aliases: ['nac-quar'] |
| 564 |
type: list |
| 565 |
elements: dict |
| 566 |
description: Nac quar. |
| 567 |
suboptions: |
| 568 |
buffer: |
| 569 |
type: str |
| 570 |
description: Message string. |
| 571 |
format: |
| 572 |
type: str |
| 573 |
description: Format flag. |
| 574 |
choices: ['none', 'text', 'html', 'wml'] |
| 575 |
header: |
| 576 |
type: str |
| 577 |
description: Header flag. |
| 578 |
choices: ['none', 'http', '8bit'] |
| 579 |
msg_type: |
| 580 |
aliases: ['msg-type'] |
| 581 |
type: str |
| 582 |
description: Message type. |
| 583 |
id: |
| 584 |
type: int |
| 585 |
description: Id. |
| 586 |
name: |
| 587 |
type: str |
| 588 |
description: Group name. |
| 589 |
required: true |
| 590 |
nntp: |
| 591 |
type: list |
| 592 |
elements: dict |
| 593 |
description: Nntp. |
| 594 |
suboptions: |
| 595 |
buffer: |
| 596 |
type: str |
| 597 |
description: Message string. |
| 598 |
format: |
| 599 |
type: str |
| 600 |
description: Format flag. |
| 601 |
choices: ['none', 'text', 'html', 'wml'] |
| 602 |
header: |
| 603 |
type: str |
| 604 |
description: Header flag. |
| 605 |
choices: ['none', 'http', '8bit'] |
| 606 |
msg_type: |
| 607 |
aliases: ['msg-type'] |
| 608 |
type: str |
| 609 |
description: Message type. |
| 610 |
spam: |
| 611 |
type: list |
| 612 |
elements: dict |
| 613 |
description: Spam. |
| 614 |
suboptions: |
| 615 |
buffer: |
| 616 |
type: str |
| 617 |
description: Message string. |
| 618 |
format: |
| 619 |
type: str |
| 620 |
description: Format flag. |
| 621 |
choices: ['none', 'text', 'html', 'wml'] |
| 622 |
header: |
| 623 |
type: str |
| 624 |
description: Header flag. |
| 625 |
choices: ['none', 'http', '8bit'] |
| 626 |
msg_type: |
| 627 |
aliases: ['msg-type'] |
| 628 |
type: str |
| 629 |
description: Message type. |
| 630 |
sslvpn: |
| 631 |
type: list |
| 632 |
elements: dict |
| 633 |
description: Sslvpn. |
| 634 |
suboptions: |
| 635 |
buffer: |
| 636 |
type: str |
| 637 |
description: Message string. |
| 638 |
format: |
| 639 |
type: str |
| 640 |
description: Format flag. |
| 641 |
choices: ['none', 'text', 'html', 'wml'] |
| 642 |
header: |
| 643 |
type: str |
| 644 |
description: Header flag. |
| 645 |
choices: ['none', 'http', '8bit'] |
| 646 |
msg_type: |
| 647 |
aliases: ['msg-type'] |
| 648 |
type: str |
| 649 |
description: Message type. |
| 650 |
traffic_quota: |
| 651 |
aliases: ['traffic-quota'] |
| 652 |
type: list |
| 653 |
elements: dict |
| 654 |
description: Traffic quota. |
| 655 |
suboptions: |
| 656 |
buffer: |
| 657 |
type: str |
| 658 |
description: Message string. |
| 659 |
format: |
| 660 |
type: str |
| 661 |
description: Format flag. |
| 662 |
choices: ['none', 'text', 'html', 'wml'] |
| 663 |
header: |
| 664 |
type: str |
| 665 |
description: Header flag. |
| 666 |
choices: ['none', 'http', '8bit'] |
| 667 |
msg_type: |
| 668 |
aliases: ['msg-type'] |
| 669 |
type: str |
| 670 |
description: Message type. |
| 671 |
utm: |
| 672 |
type: list |
| 673 |
elements: dict |
| 674 |
description: Utm. |
| 675 |
suboptions: |
| 676 |
buffer: |
| 677 |
type: str |
| 678 |
description: Message string. |
| 679 |
format: |
| 680 |
type: str |
| 681 |
description: Format flag. |
| 682 |
choices: ['none', 'text', 'html', 'wml'] |
| 683 |
header: |
| 684 |
type: str |
| 685 |
description: Header flag. |
| 686 |
choices: ['none', 'http', '8bit'] |
| 687 |
msg_type: |
| 688 |
aliases: ['msg-type'] |
| 689 |
type: str |
| 690 |
description: Message type. |
| 691 |
webproxy: |
| 692 |
type: list |
| 693 |
elements: dict |
| 694 |
description: Webproxy. |
| 695 |
suboptions: |
| 696 |
buffer: |
| 697 |
type: str |
| 698 |
description: Message string. |
| 699 |
format: |
| 700 |
type: str |
| 701 |
description: Format flag. |
| 702 |
choices: ['none', 'text', 'html', 'wml'] |
| 703 |
header: |
| 704 |
type: str |
| 705 |
description: Header flag. |
| 706 |
choices: ['none', 'http', '8bit'] |
| 707 |
msg_type: |
| 708 |
aliases: ['msg-type'] |
| 709 |
type: str |
| 710 |
description: Message type. |
| 711 |
automation: |
| 712 |
type: list |
| 713 |
elements: dict |
| 714 |
description: Automation. |
| 715 |
suboptions: |
| 716 |
buffer: |
| 717 |
type: str |
| 718 |
description: Message string. |
| 719 |
format: |
| 720 |
type: str |
| 721 |
description: Format flag. |
| 722 |
choices: ['none', 'text', 'html'] |
| 723 |
header: |
| 724 |
type: str |
| 725 |
description: Header flag. |
| 726 |
choices: ['none', 'http', '8bit'] |
| 727 |
msg_type: |
| 728 |
aliases: ['msg-type'] |
| 729 |
type: str |
| 730 |
description: Message type. |
| 731 |
''' |
| 732 |
|
| 733 |
EXAMPLES = ''' |
| 734 |
- name: Example playbook |
| 735 |
hosts: fortimanagers |
| 736 |
gather_facts: false |
| 737 |
connection: httpapi |
| 738 |
vars: |
| 739 |
ansible_httpapi_use_ssl: true |
| 740 |
ansible_httpapi_validate_certs: false |
| 741 |
ansible_httpapi_port: 443 |
| 742 |
tasks: |
| 743 |
- name: Configure replacement message groups. |
| 744 |
fortinet.fortimanager.fmgr_system_replacemsggroup: |
| 745 |
bypass_validation: false |
| 746 |
adom: ansible |
| 747 |
state: present |
| 748 |
system_replacemsggroup: |
| 749 |
comment: ansible-comment |
| 750 |
name: ansible-test |
| 751 |
|
| 752 |
- name: Gathering fortimanager facts |
| 753 |
hosts: fortimanagers |
| 754 |
gather_facts: false |
| 755 |
connection: httpapi |
| 756 |
vars: |
| 757 |
ansible_httpapi_use_ssl: true |
| 758 |
ansible_httpapi_validate_certs: false |
| 759 |
ansible_httpapi_port: 443 |
| 760 |
tasks: |
| 761 |
- name: Retrieve all the replacement message groups |
| 762 |
fortinet.fortimanager.fmgr_fact: |
| 763 |
facts: |
| 764 |
selector: "system_replacemsggroup" |
| 765 |
params: |
| 766 |
adom: "ansible" |
| 767 |
replacemsg_group: "your_value" |
| 768 |
''' |
| 769 |
|
| 770 |
RETURN = ''' |
| 771 |
meta: |
| 772 |
description: The result of the request. |
| 773 |
type: dict |
| 774 |
returned: always |
| 775 |
contains: |
| 776 |
request_url: |
| 777 |
description: The full url requested. |
| 778 |
returned: always |
| 779 |
type: str |
| 780 |
sample: /sys/login/user |
| 781 |
response_code: |
| 782 |
description: The status of api request. |
| 783 |
returned: always |
| 784 |
type: int |
| 785 |
sample: 0 |
| 786 |
response_data: |
| 787 |
description: The api response. |
| 788 |
type: list |
| 789 |
returned: always |
| 790 |
response_message: |
| 791 |
description: The descriptive message of the api response. |
| 792 |
type: str |
| 793 |
returned: always |
| 794 |
sample: OK. |
| 795 |
system_information: |
| 796 |
description: The information of the target system. |
| 797 |
type: dict |
| 798 |
returned: always |
| 799 |
rc: |
| 800 |
description: The status the request. |
| 801 |
type: int |
| 802 |
returned: always |
| 803 |
sample: 0 |
| 804 |
version_check_warning: |
| 805 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 806 |
type: list |
| 807 |
returned: complex |
| 808 |
''' |
| 809 |
from ansible.module_utils.basic import AnsibleModule |
| 810 |
from ansible.module_utils.connection import Connection |
| 811 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 812 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 813 |
|
| 814 |
|
| 815 |
def main(): |
| 816 |
urls_list = [ |
| 817 |
'/pm/config/adom/{adom}/obj/system/replacemsg-group', |
| 818 |
'/pm/config/global/obj/system/replacemsg-group' |
| 819 |
] |
| 820 |
module_arg_spec = { |
| 821 |
'adom': {'required': True, 'type': 'str'}, |
| 822 |
'revision_note': {'type': 'str'}, |
| 823 |
'system_replacemsggroup': { |
| 824 |
'type': 'dict', 'v_range': [['6.0.0', '']], |
| 825 |
'options': { |
| 826 |
'admin': { |
| 827 |
'type': 'list', |
| 828 |
'options': { |
| 829 |
'buffer': {'type': 'str'}, |
| 830 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 831 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 832 |
'msg-type': {'type': 'str'} |
| 833 |
}, |
| 834 |
'elements': 'dict' |
| 835 |
}, |
| 836 |
'alertmail': { |
| 837 |
'type': 'list', |
| 838 |
'options': { |
| 839 |
'buffer': {'type': 'str'}, |
| 840 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 841 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 842 |
'msg-type': {'type': 'str'}, |
| 843 |
'id': {'v_range': [['6.4.11', '6.4.15'], ['7.0.6', '7.0.16'], ['7.2.3', '']], 'type': 'int'} |
| 844 |
}, |
| 845 |
'elements': 'dict' |
| 846 |
}, |
| 847 |
'auth': { |
| 848 |
'type': 'list', |
| 849 |
'options': { |
| 850 |
'buffer': {'type': 'str'}, |
| 851 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 852 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 853 |
'msg-type': {'type': 'str'} |
| 854 |
}, |
| 855 |
'elements': 'dict' |
| 856 |
}, |
| 857 |
'comment': {'type': 'str'}, |
| 858 |
'custom-message': { |
| 859 |
'type': 'list', |
| 860 |
'options': { |
| 861 |
'buffer': {'type': 'str'}, |
| 862 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 863 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 864 |
'msg-type': {'type': 'str'} |
| 865 |
}, |
| 866 |
'elements': 'dict' |
| 867 |
}, |
| 868 |
'device-detection-portal': { |
| 869 |
'type': 'list', |
| 870 |
'options': { |
| 871 |
'buffer': {'type': 'str'}, |
| 872 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 873 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 874 |
'msg-type': {'type': 'str'} |
| 875 |
}, |
| 876 |
'elements': 'dict' |
| 877 |
}, |
| 878 |
'ec': { |
| 879 |
'v_range': [['6.0.0', '7.2.1'], ['7.4.8', '7.4.10']], |
| 880 |
'type': 'list', |
| 881 |
'options': { |
| 882 |
'buffer': {'v_range': [['6.0.0', '7.2.1'], ['7.4.8', '7.4.10']], 'type': 'str'}, |
| 883 |
'format': {'v_range': [['6.0.0', '7.2.1'], ['7.4.8', '7.4.10']], 'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 884 |
'header': {'v_range': [['6.0.0', '7.2.1'], ['7.4.8', '7.4.10']], 'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 885 |
'msg-type': {'v_range': [['6.0.0', '7.2.1'], ['7.4.8', '7.4.10']], 'type': 'str'} |
| 886 |
}, |
| 887 |
'elements': 'dict' |
| 888 |
}, |
| 889 |
'fortiguard-wf': { |
| 890 |
'type': 'list', |
| 891 |
'options': { |
| 892 |
'buffer': {'type': 'str'}, |
| 893 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 894 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 895 |
'msg-type': {'type': 'str'} |
| 896 |
}, |
| 897 |
'elements': 'dict' |
| 898 |
}, |
| 899 |
'ftp': { |
| 900 |
'type': 'list', |
| 901 |
'options': { |
| 902 |
'buffer': {'type': 'str'}, |
| 903 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 904 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 905 |
'msg-type': {'type': 'str'} |
| 906 |
}, |
| 907 |
'elements': 'dict' |
| 908 |
}, |
| 909 |
'group-type': {'choices': ['default', 'utm', 'auth', 'ec', 'captive-portal'], 'type': 'str'}, |
| 910 |
'http': { |
| 911 |
'type': 'list', |
| 912 |
'options': { |
| 913 |
'buffer': {'type': 'str'}, |
| 914 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 915 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 916 |
'msg-type': {'type': 'str'} |
| 917 |
}, |
| 918 |
'elements': 'dict' |
| 919 |
}, |
| 920 |
'icap': { |
| 921 |
'type': 'list', |
| 922 |
'options': { |
| 923 |
'buffer': {'type': 'str'}, |
| 924 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 925 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 926 |
'msg-type': {'type': 'str'} |
| 927 |
}, |
| 928 |
'elements': 'dict' |
| 929 |
}, |
| 930 |
'mail': { |
| 931 |
'type': 'list', |
| 932 |
'options': { |
| 933 |
'buffer': {'type': 'str'}, |
| 934 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 935 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 936 |
'msg-type': {'type': 'str'} |
| 937 |
}, |
| 938 |
'elements': 'dict' |
| 939 |
}, |
| 940 |
'mm1': { |
| 941 |
'v_range': [['6.0.0', '7.6.2']], |
| 942 |
'type': 'list', |
| 943 |
'options': { |
| 944 |
'add-smil': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 945 |
'charset': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['us-ascii', 'utf-8'], 'type': 'str'}, |
| 946 |
'class': { |
| 947 |
'v_range': [['6.0.0', '7.6.2']], |
| 948 |
'choices': ['personal', 'advertisement', 'information', 'automatic', 'not-included'], |
| 949 |
'type': 'str' |
| 950 |
}, |
| 951 |
'format': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 952 |
'from': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 953 |
'from-sender': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 954 |
'header': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 955 |
'image': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 956 |
'fmgr_message': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 957 |
'msg-type': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 958 |
'priority': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['low', 'normal', 'high', 'not-included'], 'type': 'str'}, |
| 959 |
'rsp-status': { |
| 960 |
'v_range': [['6.0.0', '7.6.2']], |
| 961 |
'choices': [ |
| 962 |
'ok', 'err-unspecified', 'err-srv-denied', 'err-msg-fmt-corrupt', 'err-snd-addr-unresolv', 'err-msg-not-found', |
| 963 |
'err-net-prob', 'err-content-not-accept', 'err-unsupp-msg' |
| 964 |
], |
| 965 |
'type': 'str' |
| 966 |
}, |
| 967 |
'rsp-text': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 968 |
'sender-visibility': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['hide', 'show', 'not-specified'], 'type': 'str'}, |
| 969 |
'smil-part': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 970 |
'subject': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'} |
| 971 |
}, |
| 972 |
'elements': 'dict' |
| 973 |
}, |
| 974 |
'mm3': { |
| 975 |
'v_range': [['6.0.0', '7.6.2']], |
| 976 |
'type': 'list', |
| 977 |
'options': { |
| 978 |
'add-html': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 979 |
'charset': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['us-ascii', 'utf-8'], 'type': 'str'}, |
| 980 |
'format': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 981 |
'from': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 982 |
'from-sender': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 983 |
'header': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 984 |
'html-part': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 985 |
'image': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 986 |
'fmgr_message': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 987 |
'msg-type': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 988 |
'priority': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['low', 'normal', 'high', 'not-included'], 'type': 'str'}, |
| 989 |
'subject': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'} |
| 990 |
}, |
| 991 |
'elements': 'dict' |
| 992 |
}, |
| 993 |
'mm4': { |
| 994 |
'v_range': [['6.0.0', '7.6.2']], |
| 995 |
'type': 'list', |
| 996 |
'options': { |
| 997 |
'add-smil': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 998 |
'charset': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['us-ascii', 'utf-8'], 'type': 'str'}, |
| 999 |
'class': { |
| 1000 |
'v_range': [['6.0.0', '7.6.2']], |
| 1001 |
'choices': ['personal', 'advertisement', 'informational', 'auto', 'not-included'], |
| 1002 |
'type': 'str' |
| 1003 |
}, |
| 1004 |
'domain': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1005 |
'format': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1006 |
'from': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1007 |
'from-sender': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1008 |
'header': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1009 |
'image': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1010 |
'fmgr_message': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1011 |
'msg-type': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1012 |
'priority': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['low', 'normal', 'high', 'not-included'], 'type': 'str'}, |
| 1013 |
'rsp-status': { |
| 1014 |
'v_range': [['6.0.0', '7.6.2']], |
| 1015 |
'choices': [ |
| 1016 |
'ok', 'err-unspecified', 'err-srv-denied', 'err-msg-fmt-corrupt', 'err-snd-addr-unresolv', 'err-net-prob', |
| 1017 |
'err-content-not-accept', 'err-unsupp-msg' |
| 1018 |
], |
| 1019 |
'type': 'str' |
| 1020 |
}, |
| 1021 |
'smil-part': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1022 |
'subject': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'} |
| 1023 |
}, |
| 1024 |
'elements': 'dict' |
| 1025 |
}, |
| 1026 |
'mm7': { |
| 1027 |
'v_range': [['6.0.0', '7.6.2']], |
| 1028 |
'type': 'list', |
| 1029 |
'options': { |
| 1030 |
'add-smil': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1031 |
'addr-type': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['rfc2822-addr', 'number', 'short-code'], 'type': 'str'}, |
| 1032 |
'allow-content-adaptation': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1033 |
'charset': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['us-ascii', 'utf-8'], 'type': 'str'}, |
| 1034 |
'class': { |
| 1035 |
'v_range': [['6.0.0', '7.6.2']], |
| 1036 |
'choices': ['personal', 'advertisement', 'informational', 'auto', 'not-included'], |
| 1037 |
'type': 'str' |
| 1038 |
}, |
| 1039 |
'format': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1040 |
'from': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1041 |
'from-sender': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1042 |
'header': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1043 |
'image': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1044 |
'fmgr_message': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1045 |
'msg-type': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1046 |
'priority': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['low', 'normal', 'high', 'not-included'], 'type': 'str'}, |
| 1047 |
'rsp-status': { |
| 1048 |
'v_range': [['6.0.0', '7.6.2']], |
| 1049 |
'choices': [ |
| 1050 |
'success', 'partial-success', 'client-err', 'oper-restrict', 'addr-err', 'addr-not-found', 'content-refused', |
| 1051 |
'msg-id-not-found', 'link-id-not-found', 'msg-fmt-corrupt', 'app-id-not-found', 'repl-app-id-not-found', 'srv-err', |
| 1052 |
'not-possible', 'msg-rejected', 'multiple-addr-not-supp', 'app-addr-not-supp', 'gen-service-err', 'improper-ident', |
| 1053 |
'unsupp-ver', 'unsupp-oper', 'validation-err', 'service-err', 'service-unavail', 'service-denied', 'app-denied' |
| 1054 |
], |
| 1055 |
'type': 'str' |
| 1056 |
}, |
| 1057 |
'smil-part': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1058 |
'subject': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'} |
| 1059 |
}, |
| 1060 |
'elements': 'dict' |
| 1061 |
}, |
| 1062 |
'mms': { |
| 1063 |
'v_range': [['6.0.0', '7.6.2']], |
| 1064 |
'type': 'list', |
| 1065 |
'options': { |
| 1066 |
'buffer': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1067 |
'charset': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['us-ascii', 'utf-8'], 'type': 'str'}, |
| 1068 |
'format': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1069 |
'header': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1070 |
'image': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'}, |
| 1071 |
'msg-type': {'v_range': [['6.0.0', '7.6.2']], 'type': 'str'} |
| 1072 |
}, |
| 1073 |
'elements': 'dict' |
| 1074 |
}, |
| 1075 |
'nac-quar': { |
| 1076 |
'type': 'list', |
| 1077 |
'options': { |
| 1078 |
'buffer': {'type': 'str'}, |
| 1079 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1080 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1081 |
'msg-type': {'type': 'str'}, |
| 1082 |
'id': {'v_range': [['6.4.11', '6.4.15'], ['7.0.6', '7.0.16'], ['7.2.3', '']], 'type': 'int'} |
| 1083 |
}, |
| 1084 |
'elements': 'dict' |
| 1085 |
}, |
| 1086 |
'name': {'required': True, 'type': 'str'}, |
| 1087 |
'nntp': { |
| 1088 |
'type': 'list', |
| 1089 |
'options': { |
| 1090 |
'buffer': {'type': 'str'}, |
| 1091 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1092 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1093 |
'msg-type': {'type': 'str'} |
| 1094 |
}, |
| 1095 |
'elements': 'dict' |
| 1096 |
}, |
| 1097 |
'spam': { |
| 1098 |
'type': 'list', |
| 1099 |
'options': { |
| 1100 |
'buffer': {'type': 'str'}, |
| 1101 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1102 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1103 |
'msg-type': {'type': 'str'} |
| 1104 |
}, |
| 1105 |
'elements': 'dict' |
| 1106 |
}, |
| 1107 |
'sslvpn': { |
| 1108 |
'type': 'list', |
| 1109 |
'options': { |
| 1110 |
'buffer': {'type': 'str'}, |
| 1111 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1112 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1113 |
'msg-type': {'type': 'str'} |
| 1114 |
}, |
| 1115 |
'elements': 'dict' |
| 1116 |
}, |
| 1117 |
'traffic-quota': { |
| 1118 |
'type': 'list', |
| 1119 |
'options': { |
| 1120 |
'buffer': {'type': 'str'}, |
| 1121 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1122 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1123 |
'msg-type': {'type': 'str'} |
| 1124 |
}, |
| 1125 |
'elements': 'dict' |
| 1126 |
}, |
| 1127 |
'utm': { |
| 1128 |
'type': 'list', |
| 1129 |
'options': { |
| 1130 |
'buffer': {'type': 'str'}, |
| 1131 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1132 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1133 |
'msg-type': {'type': 'str'} |
| 1134 |
}, |
| 1135 |
'elements': 'dict' |
| 1136 |
}, |
| 1137 |
'webproxy': { |
| 1138 |
'type': 'list', |
| 1139 |
'options': { |
| 1140 |
'buffer': {'type': 'str'}, |
| 1141 |
'format': {'choices': ['none', 'text', 'html', 'wml'], 'type': 'str'}, |
| 1142 |
'header': {'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1143 |
'msg-type': {'type': 'str'} |
| 1144 |
}, |
| 1145 |
'elements': 'dict' |
| 1146 |
}, |
| 1147 |
'automation': { |
| 1148 |
'v_range': [['7.0.0', '']], |
| 1149 |
'type': 'list', |
| 1150 |
'options': { |
| 1151 |
'buffer': {'v_range': [['7.0.0', '']], 'type': 'str'}, |
| 1152 |
'format': {'v_range': [['7.0.0', '']], 'choices': ['none', 'text', 'html'], 'type': 'str'}, |
| 1153 |
'header': {'v_range': [['7.0.0', '']], 'choices': ['none', 'http', '8bit'], 'type': 'str'}, |
| 1154 |
'msg-type': {'v_range': [['7.0.0', '']], 'type': 'str'} |
| 1155 |
}, |
| 1156 |
'elements': 'dict' |
| 1157 |
} |
| 1158 |
} |
| 1159 |
} |
| 1160 |
} |
| 1161 |
|
| 1162 |
module_option_spec = get_module_arg_spec('full crud') |
| 1163 |
module_arg_spec.update(module_option_spec) |
| 1164 |
check_galaxy_version(module_arg_spec) |
| 1165 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'system_replacemsggroup'), |
| 1166 |
supports_check_mode=True) |
| 1167 |
if not module._socket_path: |
| 1168 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 1169 |
connection = Connection(module._socket_path) |
| 1170 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 1171 |
'name', 'data', module, connection) |
| 1172 |
fmgr.process_crud() |
| 1173 |
module.exit_json(meta=module.params) |
| 1174 |
|
| 1175 |
|
| 1176 |
if __name__ == '__main__': |
| 1177 |
main() |