| 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_voip_profile |
| 15 |
short_description: Configure VoIP profiles. |
| 16 |
version_added: "1.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 |
voip_profile: |
| 29 |
description: The top level parameters set. |
| 30 |
required: false |
| 31 |
type: dict |
| 32 |
suboptions: |
| 33 |
comment: |
| 34 |
type: str |
| 35 |
description: Comment. |
| 36 |
name: |
| 37 |
type: str |
| 38 |
description: Profile name. |
| 39 |
required: true |
| 40 |
sccp: |
| 41 |
type: dict |
| 42 |
description: Sccp. |
| 43 |
suboptions: |
| 44 |
block_mcast: |
| 45 |
aliases: ['block-mcast'] |
| 46 |
type: str |
| 47 |
description: Enable/disable block multicast RTP connections. |
| 48 |
choices: ['disable', 'enable'] |
| 49 |
log_call_summary: |
| 50 |
aliases: ['log-call-summary'] |
| 51 |
type: str |
| 52 |
description: Enable/disable log summary of SCCP calls. |
| 53 |
choices: ['disable', 'enable'] |
| 54 |
log_violations: |
| 55 |
aliases: ['log-violations'] |
| 56 |
type: str |
| 57 |
description: Enable/disable logging of SCCP violations. |
| 58 |
choices: ['disable', 'enable'] |
| 59 |
max_calls: |
| 60 |
aliases: ['max-calls'] |
| 61 |
type: int |
| 62 |
description: Maximum calls per minute per SCCP client |
| 63 |
status: |
| 64 |
type: str |
| 65 |
description: Enable/disable SCCP. |
| 66 |
choices: ['disable', 'enable'] |
| 67 |
verify_header: |
| 68 |
aliases: ['verify-header'] |
| 69 |
type: str |
| 70 |
description: Enable/disable verify SCCP header content. |
| 71 |
choices: ['disable', 'enable'] |
| 72 |
sip: |
| 73 |
type: dict |
| 74 |
description: Sip. |
| 75 |
suboptions: |
| 76 |
ack_rate: |
| 77 |
aliases: ['ack-rate'] |
| 78 |
type: int |
| 79 |
description: ACK request rate limit |
| 80 |
block_ack: |
| 81 |
aliases: ['block-ack'] |
| 82 |
type: str |
| 83 |
description: Enable/disable block ACK requests. |
| 84 |
choices: ['disable', 'enable'] |
| 85 |
block_bye: |
| 86 |
aliases: ['block-bye'] |
| 87 |
type: str |
| 88 |
description: Enable/disable block BYE requests. |
| 89 |
choices: ['disable', 'enable'] |
| 90 |
block_cancel: |
| 91 |
aliases: ['block-cancel'] |
| 92 |
type: str |
| 93 |
description: Enable/disable block CANCEL requests. |
| 94 |
choices: ['disable', 'enable'] |
| 95 |
block_geo_red_options: |
| 96 |
aliases: ['block-geo-red-options'] |
| 97 |
type: str |
| 98 |
description: Enable/disable block OPTIONS requests, but OPTIONS requests still notify for redundancy. |
| 99 |
choices: ['disable', 'enable'] |
| 100 |
block_info: |
| 101 |
aliases: ['block-info'] |
| 102 |
type: str |
| 103 |
description: Enable/disable block INFO requests. |
| 104 |
choices: ['disable', 'enable'] |
| 105 |
block_invite: |
| 106 |
aliases: ['block-invite'] |
| 107 |
type: str |
| 108 |
description: Enable/disable block INVITE requests. |
| 109 |
choices: ['disable', 'enable'] |
| 110 |
block_long_lines: |
| 111 |
aliases: ['block-long-lines'] |
| 112 |
type: str |
| 113 |
description: Enable/disable block requests with headers exceeding max-line-length. |
| 114 |
choices: ['disable', 'enable'] |
| 115 |
block_message: |
| 116 |
aliases: ['block-message'] |
| 117 |
type: str |
| 118 |
description: Enable/disable block MESSAGE requests. |
| 119 |
choices: ['disable', 'enable'] |
| 120 |
block_notify: |
| 121 |
aliases: ['block-notify'] |
| 122 |
type: str |
| 123 |
description: Enable/disable block NOTIFY requests. |
| 124 |
choices: ['disable', 'enable'] |
| 125 |
block_options: |
| 126 |
aliases: ['block-options'] |
| 127 |
type: str |
| 128 |
description: Enable/disable block OPTIONS requests and no OPTIONS as notifying message for redundancy either. |
| 129 |
choices: ['disable', 'enable'] |
| 130 |
block_prack: |
| 131 |
aliases: ['block-prack'] |
| 132 |
type: str |
| 133 |
description: Enable/disable block prack requests. |
| 134 |
choices: ['disable', 'enable'] |
| 135 |
block_publish: |
| 136 |
aliases: ['block-publish'] |
| 137 |
type: str |
| 138 |
description: Enable/disable block PUBLISH requests. |
| 139 |
choices: ['disable', 'enable'] |
| 140 |
block_refer: |
| 141 |
aliases: ['block-refer'] |
| 142 |
type: str |
| 143 |
description: Enable/disable block REFER requests. |
| 144 |
choices: ['disable', 'enable'] |
| 145 |
block_register: |
| 146 |
aliases: ['block-register'] |
| 147 |
type: str |
| 148 |
description: Enable/disable block REGISTER requests. |
| 149 |
choices: ['disable', 'enable'] |
| 150 |
block_subscribe: |
| 151 |
aliases: ['block-subscribe'] |
| 152 |
type: str |
| 153 |
description: Enable/disable block SUBSCRIBE requests. |
| 154 |
choices: ['disable', 'enable'] |
| 155 |
block_unknown: |
| 156 |
aliases: ['block-unknown'] |
| 157 |
type: str |
| 158 |
description: Block unrecognized SIP requests |
| 159 |
choices: ['disable', 'enable'] |
| 160 |
block_update: |
| 161 |
aliases: ['block-update'] |
| 162 |
type: str |
| 163 |
description: Enable/disable block UPDATE requests. |
| 164 |
choices: ['disable', 'enable'] |
| 165 |
bye_rate: |
| 166 |
aliases: ['bye-rate'] |
| 167 |
type: int |
| 168 |
description: BYE request rate limit |
| 169 |
call_keepalive: |
| 170 |
aliases: ['call-keepalive'] |
| 171 |
type: int |
| 172 |
description: Continue tracking calls with no RTP for this many minutes. |
| 173 |
cancel_rate: |
| 174 |
aliases: ['cancel-rate'] |
| 175 |
type: int |
| 176 |
description: CANCEL request rate limit |
| 177 |
contact_fixup: |
| 178 |
aliases: ['contact-fixup'] |
| 179 |
type: str |
| 180 |
description: Fixup contact anyway even if contacts IP |
| 181 |
choices: ['disable', 'enable'] |
| 182 |
hnt_restrict_source_ip: |
| 183 |
aliases: ['hnt-restrict-source-ip'] |
| 184 |
type: str |
| 185 |
description: Enable/disable restrict RTP source IP to be the same as SIP source IP when HNT is enabled. |
| 186 |
choices: ['disable', 'enable'] |
| 187 |
hosted_nat_traversal: |
| 188 |
aliases: ['hosted-nat-traversal'] |
| 189 |
type: str |
| 190 |
description: Hosted NAT Traversal |
| 191 |
choices: ['disable', 'enable'] |
| 192 |
info_rate: |
| 193 |
aliases: ['info-rate'] |
| 194 |
type: int |
| 195 |
description: INFO request rate limit |
| 196 |
invite_rate: |
| 197 |
aliases: ['invite-rate'] |
| 198 |
type: int |
| 199 |
description: INVITE request rate limit |
| 200 |
ips_rtp: |
| 201 |
aliases: ['ips-rtp'] |
| 202 |
type: str |
| 203 |
description: Enable/disable allow IPS on RTP. |
| 204 |
choices: ['disable', 'enable'] |
| 205 |
log_call_summary: |
| 206 |
aliases: ['log-call-summary'] |
| 207 |
type: str |
| 208 |
description: Enable/disable logging of SIP call summary. |
| 209 |
choices: ['disable', 'enable'] |
| 210 |
log_violations: |
| 211 |
aliases: ['log-violations'] |
| 212 |
type: str |
| 213 |
description: Enable/disable logging of SIP violations. |
| 214 |
choices: ['disable', 'enable'] |
| 215 |
malformed_header_allow: |
| 216 |
aliases: ['malformed-header-allow'] |
| 217 |
type: str |
| 218 |
description: Action for malformed Allow header. |
| 219 |
choices: ['pass', 'discard', 'respond'] |
| 220 |
malformed_header_call_id: |
| 221 |
aliases: ['malformed-header-call-id'] |
| 222 |
type: str |
| 223 |
description: Action for malformed Call-ID header. |
| 224 |
choices: ['pass', 'discard', 'respond'] |
| 225 |
malformed_header_contact: |
| 226 |
aliases: ['malformed-header-contact'] |
| 227 |
type: str |
| 228 |
description: Action for malformed Contact header. |
| 229 |
choices: ['pass', 'discard', 'respond'] |
| 230 |
malformed_header_content_length: |
| 231 |
aliases: ['malformed-header-content-length'] |
| 232 |
type: str |
| 233 |
description: Action for malformed Content-Length header. |
| 234 |
choices: ['pass', 'discard', 'respond'] |
| 235 |
malformed_header_content_type: |
| 236 |
aliases: ['malformed-header-content-type'] |
| 237 |
type: str |
| 238 |
description: Action for malformed Content-Type header. |
| 239 |
choices: ['pass', 'discard', 'respond'] |
| 240 |
malformed_header_cseq: |
| 241 |
aliases: ['malformed-header-cseq'] |
| 242 |
type: str |
| 243 |
description: Action for malformed CSeq header. |
| 244 |
choices: ['pass', 'discard', 'respond'] |
| 245 |
malformed_header_expires: |
| 246 |
aliases: ['malformed-header-expires'] |
| 247 |
type: str |
| 248 |
description: Action for malformed Expires header. |
| 249 |
choices: ['pass', 'discard', 'respond'] |
| 250 |
malformed_header_from: |
| 251 |
aliases: ['malformed-header-from'] |
| 252 |
type: str |
| 253 |
description: Action for malformed From header. |
| 254 |
choices: ['pass', 'discard', 'respond'] |
| 255 |
malformed_header_max_forwards: |
| 256 |
aliases: ['malformed-header-max-forwards'] |
| 257 |
type: str |
| 258 |
description: Action for malformed Max-Forwards header. |
| 259 |
choices: ['pass', 'discard', 'respond'] |
| 260 |
malformed_header_p_asserted_identity: |
| 261 |
aliases: ['malformed-header-p-asserted-identity'] |
| 262 |
type: str |
| 263 |
description: Action for malformed P-Asserted-Identity header. |
| 264 |
choices: ['pass', 'discard', 'respond'] |
| 265 |
malformed_header_rack: |
| 266 |
aliases: ['malformed-header-rack'] |
| 267 |
type: str |
| 268 |
description: Action for malformed RAck header. |
| 269 |
choices: ['pass', 'discard', 'respond'] |
| 270 |
malformed_header_record_route: |
| 271 |
aliases: ['malformed-header-record-route'] |
| 272 |
type: str |
| 273 |
description: Action for malformed Record-Route header. |
| 274 |
choices: ['pass', 'discard', 'respond'] |
| 275 |
malformed_header_route: |
| 276 |
aliases: ['malformed-header-route'] |
| 277 |
type: str |
| 278 |
description: Action for malformed Route header. |
| 279 |
choices: ['pass', 'discard', 'respond'] |
| 280 |
malformed_header_rseq: |
| 281 |
aliases: ['malformed-header-rseq'] |
| 282 |
type: str |
| 283 |
description: Action for malformed RSeq header. |
| 284 |
choices: ['pass', 'discard', 'respond'] |
| 285 |
malformed_header_sdp_a: |
| 286 |
aliases: ['malformed-header-sdp-a'] |
| 287 |
type: str |
| 288 |
description: Action for malformed SDP a line. |
| 289 |
choices: ['pass', 'discard', 'respond'] |
| 290 |
malformed_header_sdp_b: |
| 291 |
aliases: ['malformed-header-sdp-b'] |
| 292 |
type: str |
| 293 |
description: Action for malformed SDP b line. |
| 294 |
choices: ['pass', 'discard', 'respond'] |
| 295 |
malformed_header_sdp_c: |
| 296 |
aliases: ['malformed-header-sdp-c'] |
| 297 |
type: str |
| 298 |
description: Action for malformed SDP c line. |
| 299 |
choices: ['pass', 'discard', 'respond'] |
| 300 |
malformed_header_sdp_i: |
| 301 |
aliases: ['malformed-header-sdp-i'] |
| 302 |
type: str |
| 303 |
description: Action for malformed SDP i line. |
| 304 |
choices: ['pass', 'discard', 'respond'] |
| 305 |
malformed_header_sdp_k: |
| 306 |
aliases: ['malformed-header-sdp-k'] |
| 307 |
type: str |
| 308 |
description: Action for malformed SDP k line. |
| 309 |
choices: ['pass', 'discard', 'respond'] |
| 310 |
malformed_header_sdp_m: |
| 311 |
aliases: ['malformed-header-sdp-m'] |
| 312 |
type: str |
| 313 |
description: Action for malformed SDP m line. |
| 314 |
choices: ['pass', 'discard', 'respond'] |
| 315 |
malformed_header_sdp_o: |
| 316 |
aliases: ['malformed-header-sdp-o'] |
| 317 |
type: str |
| 318 |
description: Action for malformed SDP o line. |
| 319 |
choices: ['pass', 'discard', 'respond'] |
| 320 |
malformed_header_sdp_r: |
| 321 |
aliases: ['malformed-header-sdp-r'] |
| 322 |
type: str |
| 323 |
description: Action for malformed SDP r line. |
| 324 |
choices: ['pass', 'discard', 'respond'] |
| 325 |
malformed_header_sdp_s: |
| 326 |
aliases: ['malformed-header-sdp-s'] |
| 327 |
type: str |
| 328 |
description: Action for malformed SDP s line. |
| 329 |
choices: ['pass', 'discard', 'respond'] |
| 330 |
malformed_header_sdp_t: |
| 331 |
aliases: ['malformed-header-sdp-t'] |
| 332 |
type: str |
| 333 |
description: Action for malformed SDP t line. |
| 334 |
choices: ['pass', 'discard', 'respond'] |
| 335 |
malformed_header_sdp_v: |
| 336 |
aliases: ['malformed-header-sdp-v'] |
| 337 |
type: str |
| 338 |
description: Action for malformed SDP v line. |
| 339 |
choices: ['pass', 'discard', 'respond'] |
| 340 |
malformed_header_sdp_z: |
| 341 |
aliases: ['malformed-header-sdp-z'] |
| 342 |
type: str |
| 343 |
description: Action for malformed SDP z line. |
| 344 |
choices: ['pass', 'discard', 'respond'] |
| 345 |
malformed_header_to: |
| 346 |
aliases: ['malformed-header-to'] |
| 347 |
type: str |
| 348 |
description: Action for malformed To header. |
| 349 |
choices: ['pass', 'discard', 'respond'] |
| 350 |
malformed_header_via: |
| 351 |
aliases: ['malformed-header-via'] |
| 352 |
type: str |
| 353 |
description: Action for malformed VIA header. |
| 354 |
choices: ['pass', 'discard', 'respond'] |
| 355 |
malformed_request_line: |
| 356 |
aliases: ['malformed-request-line'] |
| 357 |
type: str |
| 358 |
description: Action for malformed request line. |
| 359 |
choices: ['pass', 'discard', 'respond'] |
| 360 |
max_body_length: |
| 361 |
aliases: ['max-body-length'] |
| 362 |
type: int |
| 363 |
description: Maximum SIP message body length |
| 364 |
max_dialogs: |
| 365 |
aliases: ['max-dialogs'] |
| 366 |
type: int |
| 367 |
description: Maximum number of concurrent calls/dialogs |
| 368 |
max_idle_dialogs: |
| 369 |
aliases: ['max-idle-dialogs'] |
| 370 |
type: int |
| 371 |
description: Maximum number established but idle dialogs to retain |
| 372 |
max_line_length: |
| 373 |
aliases: ['max-line-length'] |
| 374 |
type: int |
| 375 |
description: Maximum SIP header line length |
| 376 |
message_rate: |
| 377 |
aliases: ['message-rate'] |
| 378 |
type: int |
| 379 |
description: MESSAGE request rate limit |
| 380 |
nat_port_range: |
| 381 |
aliases: ['nat-port-range'] |
| 382 |
type: str |
| 383 |
description: RTP NAT port range. |
| 384 |
nat_trace: |
| 385 |
aliases: ['nat-trace'] |
| 386 |
type: str |
| 387 |
description: Enable/disable preservation of original IP in SDP i line. |
| 388 |
choices: ['disable', 'enable'] |
| 389 |
no_sdp_fixup: |
| 390 |
aliases: ['no-sdp-fixup'] |
| 391 |
type: str |
| 392 |
description: Enable/disable no SDP fix-up. |
| 393 |
choices: ['disable', 'enable'] |
| 394 |
notify_rate: |
| 395 |
aliases: ['notify-rate'] |
| 396 |
type: int |
| 397 |
description: NOTIFY request rate limit |
| 398 |
open_contact_pinhole: |
| 399 |
aliases: ['open-contact-pinhole'] |
| 400 |
type: str |
| 401 |
description: Enable/disable open pinhole for non-REGISTER Contact port. |
| 402 |
choices: ['disable', 'enable'] |
| 403 |
open_record_route_pinhole: |
| 404 |
aliases: ['open-record-route-pinhole'] |
| 405 |
type: str |
| 406 |
description: Enable/disable open pinhole for Record-Route port. |
| 407 |
choices: ['disable', 'enable'] |
| 408 |
open_register_pinhole: |
| 409 |
aliases: ['open-register-pinhole'] |
| 410 |
type: str |
| 411 |
description: Enable/disable open pinhole for REGISTER Contact port. |
| 412 |
choices: ['disable', 'enable'] |
| 413 |
open_via_pinhole: |
| 414 |
aliases: ['open-via-pinhole'] |
| 415 |
type: str |
| 416 |
description: Enable/disable open pinhole for Via port. |
| 417 |
choices: ['disable', 'enable'] |
| 418 |
options_rate: |
| 419 |
aliases: ['options-rate'] |
| 420 |
type: int |
| 421 |
description: OPTIONS request rate limit |
| 422 |
prack_rate: |
| 423 |
aliases: ['prack-rate'] |
| 424 |
type: int |
| 425 |
description: PRACK request rate limit |
| 426 |
preserve_override: |
| 427 |
aliases: ['preserve-override'] |
| 428 |
type: str |
| 429 |
description: Override i line to preserve original IPS |
| 430 |
choices: ['disable', 'enable'] |
| 431 |
provisional_invite_expiry_time: |
| 432 |
aliases: ['provisional-invite-expiry-time'] |
| 433 |
type: int |
| 434 |
description: Expiry time for provisional INVITE |
| 435 |
publish_rate: |
| 436 |
aliases: ['publish-rate'] |
| 437 |
type: int |
| 438 |
description: PUBLISH request rate limit |
| 439 |
refer_rate: |
| 440 |
aliases: ['refer-rate'] |
| 441 |
type: int |
| 442 |
description: REFER request rate limit |
| 443 |
register_contact_trace: |
| 444 |
aliases: ['register-contact-trace'] |
| 445 |
type: str |
| 446 |
description: Enable/disable trace original IP/port within the contact header of REGISTER requests. |
| 447 |
choices: ['disable', 'enable'] |
| 448 |
register_rate: |
| 449 |
aliases: ['register-rate'] |
| 450 |
type: int |
| 451 |
description: REGISTER request rate limit |
| 452 |
rfc2543_branch: |
| 453 |
aliases: ['rfc2543-branch'] |
| 454 |
type: str |
| 455 |
description: Enable/disable support via branch compliant with RFC 2543. |
| 456 |
choices: ['disable', 'enable'] |
| 457 |
rtp: |
| 458 |
type: str |
| 459 |
description: Enable/disable create pinholes for RTP traffic to traverse firewall. |
| 460 |
choices: ['disable', 'enable'] |
| 461 |
ssl_algorithm: |
| 462 |
aliases: ['ssl-algorithm'] |
| 463 |
type: str |
| 464 |
description: Relative strength of encryption algorithms accepted in negotiation. |
| 465 |
choices: ['high', 'medium', 'low'] |
| 466 |
ssl_auth_client: |
| 467 |
aliases: ['ssl-auth-client'] |
| 468 |
type: str |
| 469 |
description: Require a client certificate and authenticate it with the peer/peergrp. |
| 470 |
ssl_auth_server: |
| 471 |
aliases: ['ssl-auth-server'] |
| 472 |
type: str |
| 473 |
description: Authenticate the servers certificate with the peer/peergrp. |
| 474 |
ssl_client_certificate: |
| 475 |
aliases: ['ssl-client-certificate'] |
| 476 |
type: str |
| 477 |
description: Name of Certificate to offer to server if requested. |
| 478 |
ssl_client_renegotiation: |
| 479 |
aliases: ['ssl-client-renegotiation'] |
| 480 |
type: str |
| 481 |
description: Allow/block client renegotiation by server. |
| 482 |
choices: ['allow', 'deny', 'secure'] |
| 483 |
ssl_max_version: |
| 484 |
aliases: ['ssl-max-version'] |
| 485 |
type: str |
| 486 |
description: Highest SSL/TLS version to negotiate. |
| 487 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 488 |
ssl_min_version: |
| 489 |
aliases: ['ssl-min-version'] |
| 490 |
type: str |
| 491 |
description: Lowest SSL/TLS version to negotiate. |
| 492 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 493 |
ssl_mode: |
| 494 |
aliases: ['ssl-mode'] |
| 495 |
type: str |
| 496 |
description: SSL/TLS mode for encryption & decryption of traffic. |
| 497 |
choices: ['off', 'full'] |
| 498 |
ssl_pfs: |
| 499 |
aliases: ['ssl-pfs'] |
| 500 |
type: str |
| 501 |
description: SSL Perfect Forward Secrecy. |
| 502 |
choices: ['require', 'deny', 'allow'] |
| 503 |
ssl_send_empty_frags: |
| 504 |
aliases: ['ssl-send-empty-frags'] |
| 505 |
type: str |
| 506 |
description: Send empty fragments to avoid attack on CBC IV |
| 507 |
choices: ['disable', 'enable'] |
| 508 |
ssl_server_certificate: |
| 509 |
aliases: ['ssl-server-certificate'] |
| 510 |
type: str |
| 511 |
description: Name of Certificate return to the client in every SSL connection. |
| 512 |
status: |
| 513 |
type: str |
| 514 |
description: Enable/disable SIP. |
| 515 |
choices: ['disable', 'enable'] |
| 516 |
strict_register: |
| 517 |
aliases: ['strict-register'] |
| 518 |
type: str |
| 519 |
description: Enable/disable only allow the registrar to connect. |
| 520 |
choices: ['disable', 'enable'] |
| 521 |
subscribe_rate: |
| 522 |
aliases: ['subscribe-rate'] |
| 523 |
type: int |
| 524 |
description: SUBSCRIBE request rate limit |
| 525 |
unknown_header: |
| 526 |
aliases: ['unknown-header'] |
| 527 |
type: str |
| 528 |
description: Action for unknown SIP header. |
| 529 |
choices: ['pass', 'discard', 'respond'] |
| 530 |
update_rate: |
| 531 |
aliases: ['update-rate'] |
| 532 |
type: int |
| 533 |
description: UPDATE request rate limit |
| 534 |
ack_rate_track: |
| 535 |
aliases: ['ack-rate-track'] |
| 536 |
type: str |
| 537 |
description: Track the packet protocol field. |
| 538 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 539 |
bye_rate_track: |
| 540 |
aliases: ['bye-rate-track'] |
| 541 |
type: str |
| 542 |
description: Track the packet protocol field. |
| 543 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 544 |
cancel_rate_track: |
| 545 |
aliases: ['cancel-rate-track'] |
| 546 |
type: str |
| 547 |
description: Track the packet protocol field. |
| 548 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 549 |
info_rate_track: |
| 550 |
aliases: ['info-rate-track'] |
| 551 |
type: str |
| 552 |
description: Track the packet protocol field. |
| 553 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 554 |
invite_rate_track: |
| 555 |
aliases: ['invite-rate-track'] |
| 556 |
type: str |
| 557 |
description: Track the packet protocol field. |
| 558 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 559 |
malformed_header_no_proxy_require: |
| 560 |
aliases: ['malformed-header-no-proxy-require'] |
| 561 |
type: str |
| 562 |
description: Action for malformed SIP messages without Proxy-Require header. |
| 563 |
choices: ['pass', 'discard', 'respond'] |
| 564 |
malformed_header_no_require: |
| 565 |
aliases: ['malformed-header-no-require'] |
| 566 |
type: str |
| 567 |
description: Action for malformed SIP messages without Require header. |
| 568 |
choices: ['pass', 'discard', 'respond'] |
| 569 |
message_rate_track: |
| 570 |
aliases: ['message-rate-track'] |
| 571 |
type: str |
| 572 |
description: Track the packet protocol field. |
| 573 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 574 |
notify_rate_track: |
| 575 |
aliases: ['notify-rate-track'] |
| 576 |
type: str |
| 577 |
description: Track the packet protocol field. |
| 578 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 579 |
options_rate_track: |
| 580 |
aliases: ['options-rate-track'] |
| 581 |
type: str |
| 582 |
description: Track the packet protocol field. |
| 583 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 584 |
prack_rate_track: |
| 585 |
aliases: ['prack-rate-track'] |
| 586 |
type: str |
| 587 |
description: Track the packet protocol field. |
| 588 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 589 |
publish_rate_track: |
| 590 |
aliases: ['publish-rate-track'] |
| 591 |
type: str |
| 592 |
description: Track the packet protocol field. |
| 593 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 594 |
refer_rate_track: |
| 595 |
aliases: ['refer-rate-track'] |
| 596 |
type: str |
| 597 |
description: Track the packet protocol field. |
| 598 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 599 |
register_rate_track: |
| 600 |
aliases: ['register-rate-track'] |
| 601 |
type: str |
| 602 |
description: Track the packet protocol field. |
| 603 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 604 |
subscribe_rate_track: |
| 605 |
aliases: ['subscribe-rate-track'] |
| 606 |
type: str |
| 607 |
description: Track the packet protocol field. |
| 608 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 609 |
update_rate_track: |
| 610 |
aliases: ['update-rate-track'] |
| 611 |
type: str |
| 612 |
description: Track the packet protocol field. |
| 613 |
choices: ['none', 'src-ip', 'dest-ip'] |
| 614 |
call_id_regex: |
| 615 |
aliases: ['call-id-regex'] |
| 616 |
type: str |
| 617 |
description: Validate PCRE regular expression for Call-Id header value. |
| 618 |
content_type_regex: |
| 619 |
aliases: ['content-type-regex'] |
| 620 |
type: str |
| 621 |
description: Validate PCRE regular expression for Content-Type header value. |
| 622 |
feature_set: |
| 623 |
aliases: ['feature-set'] |
| 624 |
type: str |
| 625 |
description: Flow or proxy inspection feature set. |
| 626 |
choices: ['flow', 'proxy', 'ips', 'voipd'] |
| 627 |
msrp: |
| 628 |
type: dict |
| 629 |
description: Msrp. |
| 630 |
suboptions: |
| 631 |
log_violations: |
| 632 |
aliases: ['log-violations'] |
| 633 |
type: str |
| 634 |
description: Enable/disable logging of MSRP violations. |
| 635 |
choices: ['disable', 'enable'] |
| 636 |
max_msg_size: |
| 637 |
aliases: ['max-msg-size'] |
| 638 |
type: int |
| 639 |
description: Maximum allowable MSRP message size |
| 640 |
max_msg_size_action: |
| 641 |
aliases: ['max-msg-size-action'] |
| 642 |
type: str |
| 643 |
description: Action for violation of max-msg-size. |
| 644 |
choices: ['pass', 'block', 'reset', 'monitor'] |
| 645 |
status: |
| 646 |
type: str |
| 647 |
description: Enable/disable MSRP. |
| 648 |
choices: ['disable', 'enable'] |
| 649 |
''' |
| 650 |
|
| 651 |
EXAMPLES = ''' |
| 652 |
- name: Example playbook (generated based on argument schema) |
| 653 |
hosts: fortimanagers |
| 654 |
connection: httpapi |
| 655 |
gather_facts: false |
| 656 |
tasks: |
| 657 |
- name: Configure VoIP profiles. |
| 658 |
fortinet.fortimanager.fmgr_voip_profile: |
| 659 |
# workspace_locking_adom: <global or your adom name> |
| 660 |
adom: <your own value> |
| 661 |
state: present # <value in [present, absent]> |
| 662 |
voip_profile: |
| 663 |
name: "your value" # Required variable, string |
| 664 |
# comment: <string> |
| 665 |
# sccp: |
| 666 |
# block_mcast: <value in [disable, enable]> |
| 667 |
# log_call_summary: <value in [disable, enable]> |
| 668 |
# log_violations: <value in [disable, enable]> |
| 669 |
# max_calls: <integer> |
| 670 |
# status: <value in [disable, enable]> |
| 671 |
# verify_header: <value in [disable, enable]> |
| 672 |
# sip: |
| 673 |
# ack_rate: <integer> |
| 674 |
# block_ack: <value in [disable, enable]> |
| 675 |
# block_bye: <value in [disable, enable]> |
| 676 |
# block_cancel: <value in [disable, enable]> |
| 677 |
# block_geo_red_options: <value in [disable, enable]> |
| 678 |
# block_info: <value in [disable, enable]> |
| 679 |
# block_invite: <value in [disable, enable]> |
| 680 |
# block_long_lines: <value in [disable, enable]> |
| 681 |
# block_message: <value in [disable, enable]> |
| 682 |
# block_notify: <value in [disable, enable]> |
| 683 |
# block_options: <value in [disable, enable]> |
| 684 |
# block_prack: <value in [disable, enable]> |
| 685 |
# block_publish: <value in [disable, enable]> |
| 686 |
# block_refer: <value in [disable, enable]> |
| 687 |
# block_register: <value in [disable, enable]> |
| 688 |
# block_subscribe: <value in [disable, enable]> |
| 689 |
# block_unknown: <value in [disable, enable]> |
| 690 |
# block_update: <value in [disable, enable]> |
| 691 |
# bye_rate: <integer> |
| 692 |
# call_keepalive: <integer> |
| 693 |
# cancel_rate: <integer> |
| 694 |
# contact_fixup: <value in [disable, enable]> |
| 695 |
# hnt_restrict_source_ip: <value in [disable, enable]> |
| 696 |
# hosted_nat_traversal: <value in [disable, enable]> |
| 697 |
# info_rate: <integer> |
| 698 |
# invite_rate: <integer> |
| 699 |
# ips_rtp: <value in [disable, enable]> |
| 700 |
# log_call_summary: <value in [disable, enable]> |
| 701 |
# log_violations: <value in [disable, enable]> |
| 702 |
# malformed_header_allow: <value in [pass, discard, respond]> |
| 703 |
# malformed_header_call_id: <value in [pass, discard, respond]> |
| 704 |
# malformed_header_contact: <value in [pass, discard, respond]> |
| 705 |
# malformed_header_content_length: <value in [pass, discard, respond]> |
| 706 |
# malformed_header_content_type: <value in [pass, discard, respond]> |
| 707 |
# malformed_header_cseq: <value in [pass, discard, respond]> |
| 708 |
# malformed_header_expires: <value in [pass, discard, respond]> |
| 709 |
# malformed_header_from: <value in [pass, discard, respond]> |
| 710 |
# malformed_header_max_forwards: <value in [pass, discard, respond]> |
| 711 |
# malformed_header_p_asserted_identity: <value in [pass, discard, respond]> |
| 712 |
# malformed_header_rack: <value in [pass, discard, respond]> |
| 713 |
# malformed_header_record_route: <value in [pass, discard, respond]> |
| 714 |
# malformed_header_route: <value in [pass, discard, respond]> |
| 715 |
# malformed_header_rseq: <value in [pass, discard, respond]> |
| 716 |
# malformed_header_sdp_a: <value in [pass, discard, respond]> |
| 717 |
# malformed_header_sdp_b: <value in [pass, discard, respond]> |
| 718 |
# malformed_header_sdp_c: <value in [pass, discard, respond]> |
| 719 |
# malformed_header_sdp_i: <value in [pass, discard, respond]> |
| 720 |
# malformed_header_sdp_k: <value in [pass, discard, respond]> |
| 721 |
# malformed_header_sdp_m: <value in [pass, discard, respond]> |
| 722 |
# malformed_header_sdp_o: <value in [pass, discard, respond]> |
| 723 |
# malformed_header_sdp_r: <value in [pass, discard, respond]> |
| 724 |
# malformed_header_sdp_s: <value in [pass, discard, respond]> |
| 725 |
# malformed_header_sdp_t: <value in [pass, discard, respond]> |
| 726 |
# malformed_header_sdp_v: <value in [pass, discard, respond]> |
| 727 |
# malformed_header_sdp_z: <value in [pass, discard, respond]> |
| 728 |
# malformed_header_to: <value in [pass, discard, respond]> |
| 729 |
# malformed_header_via: <value in [pass, discard, respond]> |
| 730 |
# malformed_request_line: <value in [pass, discard, respond]> |
| 731 |
# max_body_length: <integer> |
| 732 |
# max_dialogs: <integer> |
| 733 |
# max_idle_dialogs: <integer> |
| 734 |
# max_line_length: <integer> |
| 735 |
# message_rate: <integer> |
| 736 |
# nat_port_range: <string> |
| 737 |
# nat_trace: <value in [disable, enable]> |
| 738 |
# no_sdp_fixup: <value in [disable, enable]> |
| 739 |
# notify_rate: <integer> |
| 740 |
# open_contact_pinhole: <value in [disable, enable]> |
| 741 |
# open_record_route_pinhole: <value in [disable, enable]> |
| 742 |
# open_register_pinhole: <value in [disable, enable]> |
| 743 |
# open_via_pinhole: <value in [disable, enable]> |
| 744 |
# options_rate: <integer> |
| 745 |
# prack_rate: <integer> |
| 746 |
# preserve_override: <value in [disable, enable]> |
| 747 |
# provisional_invite_expiry_time: <integer> |
| 748 |
# publish_rate: <integer> |
| 749 |
# refer_rate: <integer> |
| 750 |
# register_contact_trace: <value in [disable, enable]> |
| 751 |
# register_rate: <integer> |
| 752 |
# rfc2543_branch: <value in [disable, enable]> |
| 753 |
# rtp: <value in [disable, enable]> |
| 754 |
# ssl_algorithm: <value in [high, medium, low]> |
| 755 |
# ssl_auth_client: <string> |
| 756 |
# ssl_auth_server: <string> |
| 757 |
# ssl_client_certificate: <string> |
| 758 |
# ssl_client_renegotiation: <value in [allow, deny, secure]> |
| 759 |
# ssl_max_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]> |
| 760 |
# ssl_min_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]> |
| 761 |
# ssl_mode: <value in [off, full]> |
| 762 |
# ssl_pfs: <value in [require, deny, allow]> |
| 763 |
# ssl_send_empty_frags: <value in [disable, enable]> |
| 764 |
# ssl_server_certificate: <string> |
| 765 |
# status: <value in [disable, enable]> |
| 766 |
# strict_register: <value in [disable, enable]> |
| 767 |
# subscribe_rate: <integer> |
| 768 |
# unknown_header: <value in [pass, discard, respond]> |
| 769 |
# update_rate: <integer> |
| 770 |
# ack_rate_track: <value in [none, src-ip, dest-ip]> |
| 771 |
# bye_rate_track: <value in [none, src-ip, dest-ip]> |
| 772 |
# cancel_rate_track: <value in [none, src-ip, dest-ip]> |
| 773 |
# info_rate_track: <value in [none, src-ip, dest-ip]> |
| 774 |
# invite_rate_track: <value in [none, src-ip, dest-ip]> |
| 775 |
# malformed_header_no_proxy_require: <value in [pass, discard, respond]> |
| 776 |
# malformed_header_no_require: <value in [pass, discard, respond]> |
| 777 |
# message_rate_track: <value in [none, src-ip, dest-ip]> |
| 778 |
# notify_rate_track: <value in [none, src-ip, dest-ip]> |
| 779 |
# options_rate_track: <value in [none, src-ip, dest-ip]> |
| 780 |
# prack_rate_track: <value in [none, src-ip, dest-ip]> |
| 781 |
# publish_rate_track: <value in [none, src-ip, dest-ip]> |
| 782 |
# refer_rate_track: <value in [none, src-ip, dest-ip]> |
| 783 |
# register_rate_track: <value in [none, src-ip, dest-ip]> |
| 784 |
# subscribe_rate_track: <value in [none, src-ip, dest-ip]> |
| 785 |
# update_rate_track: <value in [none, src-ip, dest-ip]> |
| 786 |
# call_id_regex: <string> |
| 787 |
# content_type_regex: <string> |
| 788 |
# feature_set: <value in [flow, proxy, ips, ...]> |
| 789 |
# msrp: |
| 790 |
# log_violations: <value in [disable, enable]> |
| 791 |
# max_msg_size: <integer> |
| 792 |
# max_msg_size_action: <value in [pass, block, reset, ...]> |
| 793 |
# status: <value in [disable, enable]> |
| 794 |
''' |
| 795 |
|
| 796 |
RETURN = ''' |
| 797 |
meta: |
| 798 |
description: The result of the request. |
| 799 |
type: dict |
| 800 |
returned: always |
| 801 |
contains: |
| 802 |
request_url: |
| 803 |
description: The full url requested. |
| 804 |
returned: always |
| 805 |
type: str |
| 806 |
sample: /sys/login/user |
| 807 |
response_code: |
| 808 |
description: The status of api request. |
| 809 |
returned: always |
| 810 |
type: int |
| 811 |
sample: 0 |
| 812 |
response_data: |
| 813 |
description: The api response. |
| 814 |
type: list |
| 815 |
returned: always |
| 816 |
response_message: |
| 817 |
description: The descriptive message of the api response. |
| 818 |
type: str |
| 819 |
returned: always |
| 820 |
sample: OK. |
| 821 |
system_information: |
| 822 |
description: The information of the target system. |
| 823 |
type: dict |
| 824 |
returned: always |
| 825 |
rc: |
| 826 |
description: The status the request. |
| 827 |
type: int |
| 828 |
returned: always |
| 829 |
sample: 0 |
| 830 |
version_check_warning: |
| 831 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 832 |
type: list |
| 833 |
returned: complex |
| 834 |
''' |
| 835 |
from ansible.module_utils.basic import AnsibleModule |
| 836 |
from ansible.module_utils.connection import Connection |
| 837 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 838 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 839 |
|
| 840 |
|
| 841 |
def main(): |
| 842 |
urls_list = [ |
| 843 |
'/pm/config/adom/{adom}/obj/voip/profile', |
| 844 |
'/pm/config/global/obj/voip/profile' |
| 845 |
] |
| 846 |
module_arg_spec = { |
| 847 |
'adom': {'required': True, 'type': 'str'}, |
| 848 |
'revision_note': {'type': 'str'}, |
| 849 |
'voip_profile': { |
| 850 |
'type': 'dict', 'v_range': [['6.0.0', '']], |
| 851 |
'options': { |
| 852 |
'comment': {'type': 'str'}, |
| 853 |
'name': {'required': True, 'type': 'str'}, |
| 854 |
'sccp': { |
| 855 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 856 |
'type': 'dict', |
| 857 |
'options': { |
| 858 |
'block-mcast': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 859 |
'log-call-summary': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 860 |
'log-violations': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 861 |
'max-calls': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 862 |
'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 863 |
'verify-header': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 864 |
} |
| 865 |
}, |
| 866 |
'sip': { |
| 867 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 868 |
'type': 'dict', |
| 869 |
'options': { |
| 870 |
'ack-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 871 |
'block-ack': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 872 |
'block-bye': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 873 |
'block-cancel': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 874 |
'block-geo-red-options': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 875 |
'block-info': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 876 |
'block-invite': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 877 |
'block-long-lines': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 878 |
'block-message': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 879 |
'block-notify': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 880 |
'block-options': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 881 |
'block-prack': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 882 |
'block-publish': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 883 |
'block-refer': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 884 |
'block-register': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 885 |
'block-subscribe': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 886 |
'block-unknown': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 887 |
'block-update': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 888 |
'bye-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 889 |
'call-keepalive': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 890 |
'cancel-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 891 |
'contact-fixup': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 892 |
'hnt-restrict-source-ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 893 |
'hosted-nat-traversal': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 894 |
'info-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 895 |
'invite-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 896 |
'ips-rtp': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 897 |
'log-call-summary': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 898 |
'log-violations': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 899 |
'malformed-header-allow': { |
| 900 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 901 |
'choices': ['pass', 'discard', 'respond'], |
| 902 |
'type': 'str' |
| 903 |
}, |
| 904 |
'malformed-header-call-id': { |
| 905 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 906 |
'choices': ['pass', 'discard', 'respond'], |
| 907 |
'type': 'str' |
| 908 |
}, |
| 909 |
'malformed-header-contact': { |
| 910 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 911 |
'choices': ['pass', 'discard', 'respond'], |
| 912 |
'type': 'str' |
| 913 |
}, |
| 914 |
'malformed-header-content-length': { |
| 915 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 916 |
'choices': ['pass', 'discard', 'respond'], |
| 917 |
'type': 'str' |
| 918 |
}, |
| 919 |
'malformed-header-content-type': { |
| 920 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 921 |
'choices': ['pass', 'discard', 'respond'], |
| 922 |
'type': 'str' |
| 923 |
}, |
| 924 |
'malformed-header-cseq': { |
| 925 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 926 |
'choices': ['pass', 'discard', 'respond'], |
| 927 |
'type': 'str' |
| 928 |
}, |
| 929 |
'malformed-header-expires': { |
| 930 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 931 |
'choices': ['pass', 'discard', 'respond'], |
| 932 |
'type': 'str' |
| 933 |
}, |
| 934 |
'malformed-header-from': { |
| 935 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 936 |
'choices': ['pass', 'discard', 'respond'], |
| 937 |
'type': 'str' |
| 938 |
}, |
| 939 |
'malformed-header-max-forwards': { |
| 940 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 941 |
'choices': ['pass', 'discard', 'respond'], |
| 942 |
'type': 'str' |
| 943 |
}, |
| 944 |
'malformed-header-p-asserted-identity': { |
| 945 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 946 |
'choices': ['pass', 'discard', 'respond'], |
| 947 |
'type': 'str' |
| 948 |
}, |
| 949 |
'malformed-header-rack': { |
| 950 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 951 |
'choices': ['pass', 'discard', 'respond'], |
| 952 |
'type': 'str' |
| 953 |
}, |
| 954 |
'malformed-header-record-route': { |
| 955 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 956 |
'choices': ['pass', 'discard', 'respond'], |
| 957 |
'type': 'str' |
| 958 |
}, |
| 959 |
'malformed-header-route': { |
| 960 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 961 |
'choices': ['pass', 'discard', 'respond'], |
| 962 |
'type': 'str' |
| 963 |
}, |
| 964 |
'malformed-header-rseq': { |
| 965 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 966 |
'choices': ['pass', 'discard', 'respond'], |
| 967 |
'type': 'str' |
| 968 |
}, |
| 969 |
'malformed-header-sdp-a': { |
| 970 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 971 |
'choices': ['pass', 'discard', 'respond'], |
| 972 |
'type': 'str' |
| 973 |
}, |
| 974 |
'malformed-header-sdp-b': { |
| 975 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 976 |
'choices': ['pass', 'discard', 'respond'], |
| 977 |
'type': 'str' |
| 978 |
}, |
| 979 |
'malformed-header-sdp-c': { |
| 980 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 981 |
'choices': ['pass', 'discard', 'respond'], |
| 982 |
'type': 'str' |
| 983 |
}, |
| 984 |
'malformed-header-sdp-i': { |
| 985 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 986 |
'choices': ['pass', 'discard', 'respond'], |
| 987 |
'type': 'str' |
| 988 |
}, |
| 989 |
'malformed-header-sdp-k': { |
| 990 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 991 |
'choices': ['pass', 'discard', 'respond'], |
| 992 |
'type': 'str' |
| 993 |
}, |
| 994 |
'malformed-header-sdp-m': { |
| 995 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 996 |
'choices': ['pass', 'discard', 'respond'], |
| 997 |
'type': 'str' |
| 998 |
}, |
| 999 |
'malformed-header-sdp-o': { |
| 1000 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1001 |
'choices': ['pass', 'discard', 'respond'], |
| 1002 |
'type': 'str' |
| 1003 |
}, |
| 1004 |
'malformed-header-sdp-r': { |
| 1005 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1006 |
'choices': ['pass', 'discard', 'respond'], |
| 1007 |
'type': 'str' |
| 1008 |
}, |
| 1009 |
'malformed-header-sdp-s': { |
| 1010 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1011 |
'choices': ['pass', 'discard', 'respond'], |
| 1012 |
'type': 'str' |
| 1013 |
}, |
| 1014 |
'malformed-header-sdp-t': { |
| 1015 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1016 |
'choices': ['pass', 'discard', 'respond'], |
| 1017 |
'type': 'str' |
| 1018 |
}, |
| 1019 |
'malformed-header-sdp-v': { |
| 1020 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1021 |
'choices': ['pass', 'discard', 'respond'], |
| 1022 |
'type': 'str' |
| 1023 |
}, |
| 1024 |
'malformed-header-sdp-z': { |
| 1025 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1026 |
'choices': ['pass', 'discard', 'respond'], |
| 1027 |
'type': 'str' |
| 1028 |
}, |
| 1029 |
'malformed-header-to': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['pass', 'discard', 'respond'], 'type': 'str'}, |
| 1030 |
'malformed-header-via': { |
| 1031 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1032 |
'choices': ['pass', 'discard', 'respond'], |
| 1033 |
'type': 'str' |
| 1034 |
}, |
| 1035 |
'malformed-request-line': { |
| 1036 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1037 |
'choices': ['pass', 'discard', 'respond'], |
| 1038 |
'type': 'str' |
| 1039 |
}, |
| 1040 |
'max-body-length': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1041 |
'max-dialogs': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1042 |
'max-idle-dialogs': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1043 |
'max-line-length': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1044 |
'message-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1045 |
'nat-port-range': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'}, |
| 1046 |
'nat-trace': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1047 |
'no-sdp-fixup': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1048 |
'notify-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1049 |
'open-contact-pinhole': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1050 |
'open-record-route-pinhole': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1051 |
'open-register-pinhole': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1052 |
'open-via-pinhole': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1053 |
'options-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1054 |
'prack-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1055 |
'preserve-override': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1056 |
'provisional-invite-expiry-time': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1057 |
'publish-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1058 |
'refer-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1059 |
'register-contact-trace': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1060 |
'register-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1061 |
'rfc2543-branch': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1062 |
'rtp': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1063 |
'ssl-algorithm': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['high', 'medium', 'low'], 'type': 'str'}, |
| 1064 |
'ssl-auth-client': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'}, |
| 1065 |
'ssl-auth-server': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'}, |
| 1066 |
'ssl-client-certificate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'}, |
| 1067 |
'ssl-client-renegotiation': { |
| 1068 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1069 |
'choices': ['allow', 'deny', 'secure'], |
| 1070 |
'type': 'str' |
| 1071 |
}, |
| 1072 |
'ssl-max-version': { |
| 1073 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1074 |
'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], |
| 1075 |
'type': 'str' |
| 1076 |
}, |
| 1077 |
'ssl-min-version': { |
| 1078 |
'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], |
| 1079 |
'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], |
| 1080 |
'type': 'str' |
| 1081 |
}, |
| 1082 |
'ssl-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['off', 'full'], 'type': 'str'}, |
| 1083 |
'ssl-pfs': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['require', 'deny', 'allow'], 'type': 'str'}, |
| 1084 |
'ssl-send-empty-frags': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1085 |
'ssl-server-certificate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'}, |
| 1086 |
'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1087 |
'strict-register': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1088 |
'subscribe-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1089 |
'unknown-header': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['pass', 'discard', 'respond'], 'type': 'str'}, |
| 1090 |
'update-rate': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}, |
| 1091 |
'ack-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1092 |
'bye-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1093 |
'cancel-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1094 |
'info-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1095 |
'invite-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1096 |
'malformed-header-no-proxy-require': {'v_range': [['7.0.0', '']], 'choices': ['pass', 'discard', 'respond'], 'type': 'str'}, |
| 1097 |
'malformed-header-no-require': {'v_range': [['7.0.0', '']], 'choices': ['pass', 'discard', 'respond'], 'type': 'str'}, |
| 1098 |
'message-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1099 |
'notify-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1100 |
'options-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1101 |
'prack-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1102 |
'publish-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1103 |
'refer-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1104 |
'register-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1105 |
'subscribe-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1106 |
'update-rate-track': {'v_range': [['7.0.0', '']], 'choices': ['none', 'src-ip', 'dest-ip'], 'type': 'str'}, |
| 1107 |
'call-id-regex': {'v_range': [['7.2.3', '']], 'type': 'str'}, |
| 1108 |
'content-type-regex': {'v_range': [['7.2.3', '']], 'type': 'str'} |
| 1109 |
} |
| 1110 |
}, |
| 1111 |
'feature-set': {'v_range': [['7.0.0', '']], 'choices': ['flow', 'proxy', 'ips', 'voipd'], 'type': 'str'}, |
| 1112 |
'msrp': { |
| 1113 |
'v_range': [['7.0.2', '']], |
| 1114 |
'type': 'dict', |
| 1115 |
'options': { |
| 1116 |
'log-violations': {'v_range': [['7.0.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1117 |
'max-msg-size': {'v_range': [['7.0.2', '']], 'type': 'int'}, |
| 1118 |
'max-msg-size-action': {'v_range': [['7.0.2', '']], 'choices': ['pass', 'block', 'reset', 'monitor'], 'type': 'str'}, |
| 1119 |
'status': {'v_range': [['7.0.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 1120 |
} |
| 1121 |
} |
| 1122 |
} |
| 1123 |
} |
| 1124 |
} |
| 1125 |
|
| 1126 |
module_option_spec = get_module_arg_spec('full crud') |
| 1127 |
module_arg_spec.update(module_option_spec) |
| 1128 |
check_galaxy_version(module_arg_spec) |
| 1129 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'voip_profile'), |
| 1130 |
supports_check_mode=True) |
| 1131 |
if not module._socket_path: |
| 1132 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 1133 |
connection = Connection(module._socket_path) |
| 1134 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 1135 |
'name', 'data', module, connection) |
| 1136 |
fmgr.process_crud() |
| 1137 |
module.exit_json(meta=module.params) |
| 1138 |
|
| 1139 |
|
| 1140 |
if __name__ == '__main__': |
| 1141 |
main() |