Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_vpnsslweb_portal.py

raw symbols SCIP
1 #!/usr/bin/python
2 from __future__ import absolute_import, division, print_function
3 # Copyright 2019-2024 Fortinet, Inc.
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
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_vpnsslweb_portal
15 short_description: Portal.
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 vpnsslweb_portal:
29 description: The top level parameters set.
30 required: false
31 type: dict
32 suboptions:
33 allow_user_access:
34 aliases: ['allow-user-access']
35 type: list
36 elements: str
37 description: Allow user access to SSL-VPN applications.
38 choices: ['web', 'ftp', 'telnet', 'smb', 'vnc', 'rdp', 'ssh', 'ping', 'citrix',
39 'portforward', 'sftp']
40 auto_connect:
41 aliases: ['auto-connect']
42 type: str
43 description: Enable/disable automatic connect by client when system is up.
44 choices: ['disable', 'enable']
45 bookmark_group:
46 aliases: ['bookmark-group']
47 type: list
48 elements: dict
49 description: Bookmark group.
50 suboptions:
51 bookmarks:
52 type: list
53 elements: dict
54 description: Bookmarks.
55 suboptions:
56 additional_params:
57 aliases: ['additional-params']
58 type: str
59 description: Additional parameters.
60 apptype:
61 type: str
62 description: Application type.
63 choices: ['web', 'telnet', 'ssh', 'ftp', 'smb', 'vnc', 'rdp',
64 'citrix', 'rdpnative', 'portforward', 'sftp']
65 description:
66 type: str
67 description: Description.
68 folder:
69 type: str
70 description: Network shared file folder parameter.
71 form_data:
72 aliases: ['form-data']
73 type: list
74 elements: dict
75 description: Form data.
76 suboptions:
77 name:
78 type: str
79 description: Name.
80 value:
81 type: str
82 description: Value.
83 host:
84 type: str
85 description: Host name/IP parameter.
86 listening_port:
87 aliases: ['listening-port']
88 type: int
89 description: Listening port
90 load_balancing_info:
91 aliases: ['load-balancing-info']
92 type: str
93 description: The load balancing information or cookie which should be provided to the connection broker.
94 logon_password:
95 aliases: ['logon-password']
96 type: raw
97 description: (list) Logon password.
98 logon_user:
99 aliases: ['logon-user']
100 type: str
101 description: Logon user.
102 name:
103 type: str
104 description: Bookmark name.
105 port:
106 type: int
107 description: Remote port.
108 preconnection_blob:
109 aliases: ['preconnection-blob']
110 type: str
111 description: An arbitrary string which identifies the RDP source.
112 preconnection_id:
113 aliases: ['preconnection-id']
114 type: int
115 description: The numeric ID of the RDP source
116 remote_port:
117 aliases: ['remote-port']
118 type: int
119 description: Remote port
120 security:
121 type: str
122 description: Security mode for RDP connection.
123 choices: ['rdp', 'nla', 'tls', 'any']
124 server_layout:
125 aliases: ['server-layout']
126 type: str
127 description: Server side keyboard layout.
128 choices: ['en-us-qwerty', 'de-de-qwertz', 'fr-fr-azerty',
129 'it-it-qwerty', 'sv-se-qwerty', 'failsafe',
130 'en-gb-qwerty', 'es-es-qwerty', 'fr-ch-qwertz',
131 'ja-jp-qwerty', 'pt-br-qwerty', 'tr-tr-qwerty',
132 'fr-ca-qwerty']
133 show_status_window:
134 aliases: ['show-status-window']
135 type: str
136 description: Enable/disable showing of status window.
137 choices: ['disable', 'enable']
138 sso:
139 type: str
140 description: Single Sign-On.
141 choices: ['disable', 'static', 'auto']
142 sso_credential:
143 aliases: ['sso-credential']
144 type: str
145 description: Single sign-on credentials.
146 choices: ['sslvpn-login', 'alternative']
147 sso_credential_sent_once:
148 aliases: ['sso-credential-sent-once']
149 type: str
150 description: Single sign-on credentials are only sent once to remote server.
151 choices: ['disable', 'enable']
152 sso_password:
153 aliases: ['sso-password']
154 type: raw
155 description: (list) SSO password.
156 sso_username:
157 aliases: ['sso-username']
158 type: str
159 description: SSO user name.
160 url:
161 type: str
162 description: URL parameter.
163 domain:
164 type: str
165 description: Login domain.
166 color_depth:
167 aliases: ['color-depth']
168 type: str
169 description: Color depth per pixel.
170 choices: ['8', '16', '32']
171 height:
172 type: int
173 description: Screen height
174 keyboard_layout:
175 aliases: ['keyboard-layout']
176 type: str
177 description: Keyboard layout.
178 choices: ['ar', 'da', 'de', 'de-ch', 'en-gb', 'en-uk', 'en-us',
179 'es', 'fi', 'fr', 'fr-be', 'fr-ca', 'fr-ch', 'hr', 'hu',
180 'it', 'ja', 'lt', 'lv', 'mk', 'no', 'pl', 'pt', 'pt-br',
181 'ru', 'sl', 'sv', 'tk', 'tr', 'fr-ca-m', 'wg', 'ar-101',
182 'ar-102', 'ar-102-azerty', 'can-mul', 'cz', 'cz-qwerty',
183 'cz-pr', 'nl', 'de-ibm', 'en-uk-ext', 'en-us-dvorak',
184 'es-var', 'fi-sami', 'hu-101', 'it-142', 'ko', 'lt-ibm',
185 'lt-std', 'lav-std', 'lav-leg', 'mk-std', 'no-sami',
186 'pol-214', 'pol-pr', 'pt-br-abnt2', 'ru-mne', 'ru-t',
187 'sv-sami', 'tuk', 'tur-f', 'tur-q', 'zh-sym-sg-us',
188 'zh-sym-us', 'zh-tr-hk', 'zh-tr-mo', 'zh-tr-us',
189 'fr-apple', 'la-am', 'ja-106']
190 restricted_admin:
191 aliases: ['restricted-admin']
192 type: str
193 description: Enable/disable restricted admin mode for RDP.
194 choices: ['disable', 'enable']
195 send_preconnection_id:
196 aliases: ['send-preconnection-id']
197 type: str
198 description: Enable/disable sending of preconnection ID.
199 choices: ['disable', 'enable']
200 width:
201 type: int
202 description: Screen width
203 vnc_keyboard_layout:
204 aliases: ['vnc-keyboard-layout']
205 type: str
206 description: Keyboard layout.
207 choices: ['da', 'de', 'de-ch', 'en-uk', 'es', 'fi', 'fr', 'fr-be',
208 'it', 'no', 'pt', 'sv', 'nl', 'en-uk-ext', 'it-142',
209 'pt-br-abnt2', 'default', 'fr-ca-mul', 'gd', 'us-intl']
210 name:
211 type: str
212 description: Bookmark group name.
213 custom_lang:
214 aliases: ['custom-lang']
215 type: str
216 description: Change the web portal display language.
217 customize_forticlient_download_url:
218 aliases: ['customize-forticlient-download-url']
219 type: str
220 description: Enable support of customized download URL for FortiClient.
221 choices: ['disable', 'enable']
222 display_bookmark:
223 aliases: ['display-bookmark']
224 type: str
225 description: Enable to display the web portal bookmark widget.
226 choices: ['disable', 'enable']
227 display_connection_tools:
228 aliases: ['display-connection-tools']
229 type: str
230 description: Enable to display the web portal connection tools widget.
231 choices: ['disable', 'enable']
232 display_history:
233 aliases: ['display-history']
234 type: str
235 description: Enable to display the web portal user login history widget.
236 choices: ['disable', 'enable']
237 display_status:
238 aliases: ['display-status']
239 type: str
240 description: Enable to display the web portal status widget.
241 choices: ['disable', 'enable']
242 dns_server1:
243 aliases: ['dns-server1']
244 type: str
245 description: IPv4 DNS server 1.
246 dns_server2:
247 aliases: ['dns-server2']
248 type: str
249 description: IPv4 DNS server 2.
250 dns_suffix:
251 aliases: ['dns-suffix']
252 type: str
253 description: DNS suffix.
254 exclusive_routing:
255 aliases: ['exclusive-routing']
256 type: str
257 description: Enable/disable all traffic go through tunnel only.
258 choices: ['disable', 'enable']
259 forticlient_download:
260 aliases: ['forticlient-download']
261 type: str
262 description: Enable/disable download option for FortiClient.
263 choices: ['disable', 'enable']
264 forticlient_download_method:
265 aliases: ['forticlient-download-method']
266 type: str
267 description: FortiClient download method.
268 choices: ['direct', 'ssl-vpn']
269 heading:
270 type: str
271 description: Web portal heading message.
272 hide_sso_credential:
273 aliases: ['hide-sso-credential']
274 type: str
275 description: Enable to prevent SSO credential being sent to client.
276 choices: ['disable', 'enable']
277 host_check:
278 aliases: ['host-check']
279 type: str
280 description: Type of host checking performed on endpoints.
281 choices: ['none', 'av', 'fw', 'av-fw', 'custom']
282 host_check_interval:
283 aliases: ['host-check-interval']
284 type: int
285 description: Periodic host check interval.
286 host_check_policy:
287 aliases: ['host-check-policy']
288 type: raw
289 description: (list or str) One or more policies to require the endpoint to have specific security software.
290 ip_mode:
291 aliases: ['ip-mode']
292 type: str
293 description: Method by which users of this SSL-VPN tunnel obtain IP addresses.
294 choices: ['range', 'user-group', 'dhcp', 'no-ip']
295 ip_pools:
296 aliases: ['ip-pools']
297 type: raw
298 description: (list or str) IPv4 firewall source address objects reserved for SSL-VPN tunnel mode clients.
299 ipv6_dns_server1:
300 aliases: ['ipv6-dns-server1']
301 type: str
302 description: IPv6 DNS server 1.
303 ipv6_dns_server2:
304 aliases: ['ipv6-dns-server2']
305 type: str
306 description: IPv6 DNS server 2.
307 ipv6_exclusive_routing:
308 aliases: ['ipv6-exclusive-routing']
309 type: str
310 description: Enable/disable all IPv6 traffic go through tunnel only.
311 choices: ['disable', 'enable']
312 ipv6_pools:
313 aliases: ['ipv6-pools']
314 type: raw
315 description: (list or str) IPv4 firewall source address objects reserved for SSL-VPN tunnel mode clients.
316 ipv6_service_restriction:
317 aliases: ['ipv6-service-restriction']
318 type: str
319 description: Enable/disable IPv6 tunnel service restriction.
320 choices: ['disable', 'enable']
321 ipv6_split_tunneling:
322 aliases: ['ipv6-split-tunneling']
323 type: str
324 description: Enable/disable IPv6 split tunneling.
325 choices: ['disable', 'enable']
326 ipv6_split_tunneling_routing_address:
327 aliases: ['ipv6-split-tunneling-routing-address']
328 type: raw
329 description: (list or str) IPv6 SSL-VPN tunnel mode firewall address objects that override firewall policy destination addresses to con...
330 ipv6_tunnel_mode:
331 aliases: ['ipv6-tunnel-mode']
332 type: str
333 description: Enable/disable IPv6 SSL-VPN tunnel mode.
334 choices: ['disable', 'enable']
335 ipv6_wins_server1:
336 aliases: ['ipv6-wins-server1']
337 type: str
338 description: IPv6 WINS server 1.
339 ipv6_wins_server2:
340 aliases: ['ipv6-wins-server2']
341 type: str
342 description: IPv6 WINS server 2.
343 keep_alive:
344 aliases: ['keep-alive']
345 type: str
346 description: Enable/disable automatic reconnect for FortiClient connections.
347 choices: ['disable', 'enable']
348 limit_user_logins:
349 aliases: ['limit-user-logins']
350 type: str
351 description: Enable to limit each user to one SSL-VPN session at a time.
352 choices: ['disable', 'enable']
353 mac_addr_action:
354 aliases: ['mac-addr-action']
355 type: str
356 description: Client MAC address action.
357 choices: ['deny', 'allow']
358 mac_addr_check:
359 aliases: ['mac-addr-check']
360 type: str
361 description: Enable/disable MAC address host checking.
362 choices: ['disable', 'enable']
363 mac_addr_check_rule:
364 aliases: ['mac-addr-check-rule']
365 type: list
366 elements: dict
367 description: Mac addr check rule.
368 suboptions:
369 mac_addr_list:
370 aliases: ['mac-addr-list']
371 type: raw
372 description: (list) Client MAC address list.
373 mac_addr_mask:
374 aliases: ['mac-addr-mask']
375 type: int
376 description: Client MAC address mask.
377 name:
378 type: str
379 description: Client MAC address check rule name.
380 macos_forticlient_download_url:
381 aliases: ['macos-forticlient-download-url']
382 type: str
383 description: Download URL for Mac FortiClient.
384 name:
385 type: str
386 description: Portal name.
387 required: true
388 os_check:
389 aliases: ['os-check']
390 type: str
391 description: Enable to let the FortiGate decide action based on client OS.
392 choices: ['disable', 'enable']
393 redir_url:
394 aliases: ['redir-url']
395 type: str
396 description: Client login redirect URL.
397 save_password:
398 aliases: ['save-password']
399 type: str
400 description: Enable/disable FortiClient saving the users password.
401 choices: ['disable', 'enable']
402 service_restriction:
403 aliases: ['service-restriction']
404 type: str
405 description: Enable/disable tunnel service restriction.
406 choices: ['disable', 'enable']
407 skip_check_for_unsupported_browser:
408 aliases: ['skip-check-for-unsupported-browser']
409 type: str
410 description: Enable to skip host check if browser does not support it.
411 choices: ['disable', 'enable']
412 skip_check_for_unsupported_os:
413 aliases: ['skip-check-for-unsupported-os']
414 type: str
415 description: Enable to skip host check if client OS does not support it.
416 choices: ['disable', 'enable']
417 smb_ntlmv1_auth:
418 aliases: ['smb-ntlmv1-auth']
419 type: str
420 description: Enable support of NTLMv1 for Samba authentication.
421 choices: ['disable', 'enable']
422 smbv1:
423 type: str
424 description: Enable/disable support of SMBv1 for Samba.
425 choices: ['disable', 'enable']
426 split_dns:
427 aliases: ['split-dns']
428 type: list
429 elements: dict
430 description: Split dns.
431 suboptions:
432 dns_server1:
433 aliases: ['dns-server1']
434 type: str
435 description: DNS server 1.
436 dns_server2:
437 aliases: ['dns-server2']
438 type: str
439 description: DNS server 2.
440 domains:
441 type: str
442 description: Split DNS domains used for SSL-VPN clients separated by comma
443 id:
444 type: int
445 description: ID.
446 ipv6_dns_server1:
447 aliases: ['ipv6-dns-server1']
448 type: str
449 description: IPv6 DNS server 1.
450 ipv6_dns_server2:
451 aliases: ['ipv6-dns-server2']
452 type: str
453 description: IPv6 DNS server 2.
454 split_tunneling:
455 aliases: ['split-tunneling']
456 type: str
457 description: Enable/disable IPv4 split tunneling.
458 choices: ['disable', 'enable']
459 split_tunneling_routing_address:
460 aliases: ['split-tunneling-routing-address']
461 type: raw
462 description: (list or str) IPv4 SSL-VPN tunnel mode firewall address objects that override firewall policy destination addresses to con...
463 theme:
464 type: str
465 description: Web portal color scheme.
466 choices: ['gray', 'blue', 'orange', 'crimson', 'steelblue', 'darkgrey', 'green',
467 'melongene', 'red', 'mariner', 'neutrino', 'jade', 'graphite',
468 'dark-matter', 'onyx', 'eclipse', 'jet-stream', 'security-fabric']
469 tunnel_mode:
470 aliases: ['tunnel-mode']
471 type: str
472 description: Enable/disable IPv4 SSL-VPN tunnel mode.
473 choices: ['disable', 'enable']
474 user_bookmark:
475 aliases: ['user-bookmark']
476 type: str
477 description: Enable to allow web portal users to create their own bookmarks.
478 choices: ['disable', 'enable']
479 user_group_bookmark:
480 aliases: ['user-group-bookmark']
481 type: str
482 description: Enable to allow web portal users to create bookmarks for all users in the same user group.
483 choices: ['disable', 'enable']
484 web_mode:
485 aliases: ['web-mode']
486 type: str
487 description: Enable/disable SSL VPN web mode.
488 choices: ['disable', 'enable']
489 windows_forticlient_download_url:
490 aliases: ['windows-forticlient-download-url']
491 type: str
492 description: Download URL for Windows FortiClient.
493 wins_server1:
494 aliases: ['wins-server1']
495 type: str
496 description: IPv4 WINS server 1.
497 wins_server2:
498 aliases: ['wins-server2']
499 type: str
500 description: IPv4 WINS server 1.
501 skip_check_for_browser:
502 aliases: ['skip-check-for-browser']
503 type: str
504 description: Enable to skip host check for browser support.
505 choices: ['disable', 'enable']
506 smb_max_version:
507 aliases: ['smb-max-version']
508 type: str
509 description: SMB maximum client protocol version.
510 choices: ['smbv1', 'smbv2', 'smbv3']
511 smb_min_version:
512 aliases: ['smb-min-version']
513 type: str
514 description: SMB minimum client protocol version.
515 choices: ['smbv1', 'smbv2', 'smbv3']
516 virtual_desktop_logout_when_browser_close:
517 aliases: ['virtual-desktop-logout-when-browser-close']
518 type: str
519 description: Enable/disable logout when browser is close in virtual desktop.
520 choices: ['disable', 'enable']
521 virtual_desktop_clipboard_share:
522 aliases: ['virtual-desktop-clipboard-share']
523 type: str
524 description: Enable/disable sharing of clipboard in virtual desktop.
525 choices: ['disable', 'enable']
526 virtual_desktop_desktop_switch:
527 aliases: ['virtual-desktop-desktop-switch']
528 type: str
529 description: Enable/disable switch to virtual desktop.
530 choices: ['disable', 'enable']
531 virtual_desktop:
532 aliases: ['virtual-desktop']
533 type: str
534 description: Enable/disable SSL VPN virtual desktop.
535 choices: ['disable', 'enable']
536 virtual_desktop_network_share_access:
537 aliases: ['virtual-desktop-network-share-access']
538 type: str
539 description: Enable/disable network share access in virtual desktop.
540 choices: ['disable', 'enable']
541 virtual_desktop_printing:
542 aliases: ['virtual-desktop-printing']
543 type: str
544 description: Enable/disable printing in virtual desktop.
545 choices: ['disable', 'enable']
546 virtual_desktop_app_list:
547 aliases: ['virtual-desktop-app-list']
548 type: str
549 description: Virtual desktop application list.
550 virtual_desktop_removable_media_access:
551 aliases: ['virtual-desktop-removable-media-access']
552 type: str
553 description: Enable/disable access to removable media in virtual desktop.
554 choices: ['disable', 'enable']
555 transform_backward_slashes:
556 aliases: ['transform-backward-slashes']
557 type: str
558 description: Transform backward slashes to forward slashes in URLs.
559 choices: ['disable', 'enable']
560 ipv6_split_tunneling_routing_negate:
561 aliases: ['ipv6-split-tunneling-routing-negate']
562 type: str
563 description: Enable to negate IPv6 split tunneling routing address.
564 choices: ['disable', 'enable']
565 split_tunneling_routing_negate:
566 aliases: ['split-tunneling-routing-negate']
567 type: str
568 description: Enable to negate split tunneling routing address.
569 choices: ['disable', 'enable']
570 os_check_list:
571 aliases: ['os-check-list']
572 type: dict
573 description: Os check list.
574 suboptions:
575 action:
576 type: str
577 description: OS check options.
578 choices: ['allow', 'check-up-to-date', 'deny']
579 latest_patch_level:
580 aliases: ['latest-patch-level']
581 type: str
582 description: Latest OS patch level.
583 name:
584 type: str
585 description: Name.
586 tolerance:
587 type: int
588 description: OS patch level tolerance.
589 minor_version:
590 aliases: ['minor-version']
591 type: int
592 description: Minor version number.
593 use_sdwan:
594 aliases: ['use-sdwan']
595 type: str
596 description: Use SD-WAN rules to get output interface.
597 choices: ['disable', 'enable']
598 prefer_ipv6_dns:
599 aliases: ['prefer-ipv6-dns']
600 type: str
601 description: Prefer to query IPv6 dns first if enabled.
602 choices: ['disable', 'enable']
603 rewrite_ip_uri_ui:
604 aliases: ['rewrite-ip-uri-ui']
605 type: str
606 description: Rewrite contents for URI contains IP and /ui/.
607 choices: ['disable', 'enable']
608 clipboard:
609 type: str
610 description: Enable to support RDP/VPC clipboard functionality.
611 choices: ['disable', 'enable']
612 default_window_height:
613 aliases: ['default-window-height']
614 type: int
615 description: Screen height
616 default_window_width:
617 aliases: ['default-window-width']
618 type: int
619 description: Screen width
620 dhcp_ip_overlap:
621 aliases: ['dhcp-ip-overlap']
622 type: str
623 description: Configure overlapping DHCP IP allocation assignment.
624 choices: ['use-old', 'use-new']
625 client_src_range:
626 aliases: ['client-src-range']
627 type: str
628 description: Allow client to add source range for the tunnel traffic.
629 choices: ['disable', 'enable']
630 dhcp_ra_giaddr:
631 aliases: ['dhcp-ra-giaddr']
632 type: str
633 description: Relay agent gateway IP address to use in the giaddr field of DHCP requests.
634 dhcp6_ra_linkaddr:
635 aliases: ['dhcp6-ra-linkaddr']
636 type: str
637 description: Relay agent IPv6 link address to use in DHCP6 requests.
638 landing_page:
639 aliases: ['landing-page']
640 type: dict
641 description: Landing page.
642 suboptions:
643 form_data:
644 aliases: ['form-data']
645 type: list
646 elements: dict
647 description: Form data.
648 suboptions:
649 name:
650 type: str
651 description: Name.
652 value:
653 type: str
654 description: Value.
655 logout_url:
656 aliases: ['logout-url']
657 type: str
658 description: Landing page log out URL.
659 sso:
660 type: str
661 description: Single sign-on.
662 choices: ['disable', 'static', 'auto']
663 sso_credential:
664 aliases: ['sso-credential']
665 type: str
666 description: Single sign-on credentials.
667 choices: ['sslvpn-login', 'alternative']
668 sso_password:
669 aliases: ['sso-password']
670 type: raw
671 description: (list) SSO password.
672 sso_username:
673 aliases: ['sso-username']
674 type: str
675 description: SSO user name.
676 url:
677 type: str
678 description: Landing page URL.
679 landing_page_mode:
680 aliases: ['landing-page-mode']
681 type: str
682 description: Enable/disable SSL-VPN landing page mode.
683 choices: ['disable', 'enable']
684 default_protocol:
685 aliases: ['default-protocol']
686 type: str
687 description: Application type that is set by default.
688 choices: ['web', 'ftp', 'telnet', 'smb', 'vnc', 'rdp', 'ssh', 'sftp']
689 focus_bookmark:
690 aliases: ['focus-bookmark']
691 type: str
692 description: Enable to prioritize the placement of the bookmark section over the quick-connection section in the SSL-VPN application.
693 choices: ['disable', 'enable']
694 dhcp_reservation:
695 aliases: ['dhcp-reservation']
696 type: str
697 description: Enable/disable dhcp reservation.
698 choices: ['disable', 'enable']
699 '''
700
701 EXAMPLES = '''
702 - name: Example playbook (generated based on argument schema)
703 hosts: fortimanagers
704 connection: httpapi
705 gather_facts: false
706 tasks:
707 - name: Portal.
708 fortinet.fortimanager.fmgr_vpnsslweb_portal:
709 # workspace_locking_adom: <global or your adom name>
710 adom: <your own value>
711 state: present # <value in [present, absent]>
712 vpnsslweb_portal:
713 name: "your value" # Required variable, string
714 # allow_user_access: ["web", "ftp", "telnet", "smb", "vnc", "rdp", "ssh", "ping",
715 # "citrix", "portforward", "sftp"]
716 # auto_connect: <value in [disable, enable]>
717 # bookmark_group:
718 # - bookmarks:
719 # - additional_params: <string>
720 # apptype: <value in [web, telnet, ssh, ...]>
721 # description: <string>
722 # folder: <string>
723 # form_data:
724 # - name: <string>
725 # value: <string>
726 # host: <string>
727 # listening_port: <integer>
728 # load_balancing_info: <string>
729 # logon_password: <list or string>
730 # logon_user: <string>
731 # name: <string>
732 # port: <integer>
733 # preconnection_blob: <string>
734 # preconnection_id: <integer>
735 # remote_port: <integer>
736 # security: <value in [rdp, nla, tls, ...]>
737 # server_layout: <value in [en-us-qwerty, de-de-qwertz, fr-fr-azerty, ...]>
738 # show_status_window: <value in [disable, enable]>
739 # sso: <value in [disable, static, auto]>
740 # sso_credential: <value in [sslvpn-login, alternative]>
741 # sso_credential_sent_once: <value in [disable, enable]>
742 # sso_password: <list or string>
743 # sso_username: <string>
744 # url: <string>
745 # domain: <string>
746 # color_depth: <value in [8, 16, 32]>
747 # height: <integer>
748 # keyboard_layout: <value in [ar, da, de, ...]>
749 # restricted_admin: <value in [disable, enable]>
750 # send_preconnection_id: <value in [disable, enable]>
751 # width: <integer>
752 # vnc_keyboard_layout: <value in [da, de, de-ch, ...]>
753 # name: <string>
754 # custom_lang: <string>
755 # customize_forticlient_download_url: <value in [disable, enable]>
756 # display_bookmark: <value in [disable, enable]>
757 # display_connection_tools: <value in [disable, enable]>
758 # display_history: <value in [disable, enable]>
759 # display_status: <value in [disable, enable]>
760 # dns_server1: <string>
761 # dns_server2: <string>
762 # dns_suffix: <string>
763 # exclusive_routing: <value in [disable, enable]>
764 # forticlient_download: <value in [disable, enable]>
765 # forticlient_download_method: <value in [direct, ssl-vpn]>
766 # heading: <string>
767 # hide_sso_credential: <value in [disable, enable]>
768 # host_check: <value in [none, av, fw, ...]>
769 # host_check_interval: <integer>
770 # host_check_policy: <list or string>
771 # ip_mode: <value in [range, user-group, dhcp, ...]>
772 # ip_pools: <list or string>
773 # ipv6_dns_server1: <string>
774 # ipv6_dns_server2: <string>
775 # ipv6_exclusive_routing: <value in [disable, enable]>
776 # ipv6_pools: <list or string>
777 # ipv6_service_restriction: <value in [disable, enable]>
778 # ipv6_split_tunneling: <value in [disable, enable]>
779 # ipv6_split_tunneling_routing_address: <list or string>
780 # ipv6_tunnel_mode: <value in [disable, enable]>
781 # ipv6_wins_server1: <string>
782 # ipv6_wins_server2: <string>
783 # keep_alive: <value in [disable, enable]>
784 # limit_user_logins: <value in [disable, enable]>
785 # mac_addr_action: <value in [deny, allow]>
786 # mac_addr_check: <value in [disable, enable]>
787 # mac_addr_check_rule:
788 # - mac_addr_list: <list or string>
789 # mac_addr_mask: <integer>
790 # name: <string>
791 # macos_forticlient_download_url: <string>
792 # os_check: <value in [disable, enable]>
793 # redir_url: <string>
794 # save_password: <value in [disable, enable]>
795 # service_restriction: <value in [disable, enable]>
796 # skip_check_for_unsupported_browser: <value in [disable, enable]>
797 # skip_check_for_unsupported_os: <value in [disable, enable]>
798 # smb_ntlmv1_auth: <value in [disable, enable]>
799 # smbv1: <value in [disable, enable]>
800 # split_dns:
801 # - dns_server1: <string>
802 # dns_server2: <string>
803 # domains: <string>
804 # id: <integer>
805 # ipv6_dns_server1: <string>
806 # ipv6_dns_server2: <string>
807 # split_tunneling: <value in [disable, enable]>
808 # split_tunneling_routing_address: <list or string>
809 # theme: <value in [gray, blue, orange, ...]>
810 # tunnel_mode: <value in [disable, enable]>
811 # user_bookmark: <value in [disable, enable]>
812 # user_group_bookmark: <value in [disable, enable]>
813 # web_mode: <value in [disable, enable]>
814 # windows_forticlient_download_url: <string>
815 # wins_server1: <string>
816 # wins_server2: <string>
817 # skip_check_for_browser: <value in [disable, enable]>
818 # smb_max_version: <value in [smbv1, smbv2, smbv3]>
819 # smb_min_version: <value in [smbv1, smbv2, smbv3]>
820 # virtual_desktop_logout_when_browser_close: <value in [disable, enable]>
821 # virtual_desktop_clipboard_share: <value in [disable, enable]>
822 # virtual_desktop_desktop_switch: <value in [disable, enable]>
823 # virtual_desktop: <value in [disable, enable]>
824 # virtual_desktop_network_share_access: <value in [disable, enable]>
825 # virtual_desktop_printing: <value in [disable, enable]>
826 # virtual_desktop_app_list: <string>
827 # virtual_desktop_removable_media_access: <value in [disable, enable]>
828 # transform_backward_slashes: <value in [disable, enable]>
829 # ipv6_split_tunneling_routing_negate: <value in [disable, enable]>
830 # split_tunneling_routing_negate: <value in [disable, enable]>
831 # os_check_list:
832 # action: <value in [allow, check-up-to-date, deny]>
833 # latest_patch_level: <string>
834 # name: <string>
835 # tolerance: <integer>
836 # minor_version: <integer>
837 # use_sdwan: <value in [disable, enable]>
838 # prefer_ipv6_dns: <value in [disable, enable]>
839 # rewrite_ip_uri_ui: <value in [disable, enable]>
840 # clipboard: <value in [disable, enable]>
841 # default_window_height: <integer>
842 # default_window_width: <integer>
843 # dhcp_ip_overlap: <value in [use-old, use-new]>
844 # client_src_range: <value in [disable, enable]>
845 # dhcp_ra_giaddr: <string>
846 # dhcp6_ra_linkaddr: <string>
847 # landing_page:
848 # form_data:
849 # - name: <string>
850 # value: <string>
851 # logout_url: <string>
852 # sso: <value in [disable, static, auto]>
853 # sso_credential: <value in [sslvpn-login, alternative]>
854 # sso_password: <list or string>
855 # sso_username: <string>
856 # url: <string>
857 # landing_page_mode: <value in [disable, enable]>
858 # default_protocol: <value in [web, ftp, telnet, ...]>
859 # focus_bookmark: <value in [disable, enable]>
860 # dhcp_reservation: <value in [disable, enable]>
861 '''
862
863 RETURN = '''
864 meta:
865 description: The result of the request.
866 type: dict
867 returned: always
868 contains:
869 request_url:
870 description: The full url requested.
871 returned: always
872 type: str
873 sample: /sys/login/user
874 response_code:
875 description: The status of api request.
876 returned: always
877 type: int
878 sample: 0
879 response_data:
880 description: The api response.
881 type: list
882 returned: always
883 response_message:
884 description: The descriptive message of the api response.
885 type: str
886 returned: always
887 sample: OK.
888 system_information:
889 description: The information of the target system.
890 type: dict
891 returned: always
892 rc:
893 description: The status the request.
894 type: int
895 returned: always
896 sample: 0
897 version_check_warning:
898 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
899 type: list
900 returned: complex
901 '''
902 from ansible.module_utils.basic import AnsibleModule
903 from ansible.module_utils.connection import Connection
904 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
905 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
906
907
908 def main():
909 urls_list = [
910 '/pm/config/adom/{adom}/obj/vpn/ssl/web/portal',
911 '/pm/config/global/obj/vpn/ssl/web/portal'
912 ]
913 module_arg_spec = {
914 'adom': {'required': True, 'type': 'str'},
915 'revision_note': {'type': 'str'},
916 'vpnsslweb_portal': {
917 'type': 'dict', 'v_range': [['6.0.0', '']],
918 'options': {
919 'allow-user-access': {
920 'type': 'list',
921 'choices': ['web', 'ftp', 'telnet', 'smb', 'vnc', 'rdp', 'ssh', 'ping', 'citrix', 'portforward', 'sftp'],
922 'elements': 'str'
923 },
924 'auto-connect': {'choices': ['disable', 'enable'], 'type': 'str'},
925 'bookmark-group': {
926 'type': 'list',
927 'options': {
928 'bookmarks': {
929 'type': 'list',
930 'options': {
931 'additional-params': {'type': 'str'},
932 'apptype': {
933 'choices': ['web', 'telnet', 'ssh', 'ftp', 'smb', 'vnc', 'rdp', 'citrix', 'rdpnative', 'portforward', 'sftp'],
934 'type': 'str'
935 },
936 'description': {'type': 'str'},
937 'folder': {'type': 'str'},
938 'form-data': {'type': 'list', 'options': {'name': {'type': 'str'}, 'value': {'type': 'str'}}, 'elements': 'dict'},
939 'host': {'type': 'str'},
940 'listening-port': {'type': 'int'},
941 'load-balancing-info': {'type': 'str'},
942 'logon-password': {'no_log': True, 'type': 'raw'},
943 'logon-user': {'type': 'str'},
944 'name': {'type': 'str'},
945 'port': {'type': 'int'},
946 'preconnection-blob': {'type': 'str'},
947 'preconnection-id': {'type': 'int'},
948 'remote-port': {'type': 'int'},
949 'security': {'choices': ['rdp', 'nla', 'tls', 'any'], 'type': 'str'},
950 'server-layout': {
951 'choices': [
952 'en-us-qwerty', 'de-de-qwertz', 'fr-fr-azerty', 'it-it-qwerty', 'sv-se-qwerty', 'failsafe', 'en-gb-qwerty',
953 'es-es-qwerty', 'fr-ch-qwertz', 'ja-jp-qwerty', 'pt-br-qwerty', 'tr-tr-qwerty', 'fr-ca-qwerty'
954 ],
955 'type': 'str'
956 },
957 'show-status-window': {'choices': ['disable', 'enable'], 'type': 'str'},
958 'sso': {'choices': ['disable', 'static', 'auto'], 'type': 'str'},
959 'sso-credential': {'choices': ['sslvpn-login', 'alternative'], 'type': 'str'},
960 'sso-credential-sent-once': {'choices': ['disable', 'enable'], 'type': 'str'},
961 'sso-password': {'no_log': True, 'type': 'raw'},
962 'sso-username': {'type': 'str'},
963 'url': {'type': 'str'},
964 'domain': {'v_range': [['6.4.2', '']], 'type': 'str'},
965 'color-depth': {'v_range': [['6.4.7', '6.4.15'], ['7.0.1', '']], 'choices': ['8', '16', '32'], 'type': 'str'},
966 'height': {'v_range': [['7.0.3', '']], 'type': 'int'},
967 'keyboard-layout': {
968 'v_range': [['6.4.7', '6.4.15'], ['7.0.1', '']],
969 'choices': [
970 'ar', 'da', 'de', 'de-ch', 'en-gb', 'en-uk', 'en-us', 'es', 'fi', 'fr', 'fr-be', 'fr-ca', 'fr-ch', 'hr', 'hu',
971 'it', 'ja', 'lt', 'lv', 'mk', 'no', 'pl', 'pt', 'pt-br', 'ru', 'sl', 'sv', 'tk', 'tr', 'fr-ca-m', 'wg', 'ar-101',
972 'ar-102', 'ar-102-azerty', 'can-mul', 'cz', 'cz-qwerty', 'cz-pr', 'nl', 'de-ibm', 'en-uk-ext', 'en-us-dvorak',
973 'es-var', 'fi-sami', 'hu-101', 'it-142', 'ko', 'lt-ibm', 'lt-std', 'lav-std', 'lav-leg', 'mk-std', 'no-sami',
974 'pol-214', 'pol-pr', 'pt-br-abnt2', 'ru-mne', 'ru-t', 'sv-sami', 'tuk', 'tur-f', 'tur-q', 'zh-sym-sg-us',
975 'zh-sym-us', 'zh-tr-hk', 'zh-tr-mo', 'zh-tr-us', 'fr-apple', 'la-am', 'ja-106'
976 ],
977 'type': 'str'
978 },
979 'restricted-admin': {'v_range': [['6.4.7', '6.4.15'], ['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
980 'send-preconnection-id': {
981 'v_range': [['6.4.7', '6.4.15'], ['7.0.1', '']],
982 'choices': ['disable', 'enable'],
983 'type': 'str'
984 },
985 'width': {'v_range': [['7.0.3', '']], 'type': 'int'},
986 'vnc-keyboard-layout': {
987 'v_range': [['7.2.2', '']],
988 'choices': [
989 'da', 'de', 'de-ch', 'en-uk', 'es', 'fi', 'fr', 'fr-be', 'it', 'no', 'pt', 'sv', 'nl', 'en-uk-ext', 'it-142',
990 'pt-br-abnt2', 'default', 'fr-ca-mul', 'gd', 'us-intl'
991 ],
992 'type': 'str'
993 }
994 },
995 'elements': 'dict'
996 },
997 'name': {'type': 'str'}
998 },
999 'elements': 'dict'
1000 },
1001 'custom-lang': {'type': 'str'},
1002 'customize-forticlient-download-url': {'choices': ['disable', 'enable'], 'type': 'str'},
1003 'display-bookmark': {'choices': ['disable', 'enable'], 'type': 'str'},
1004 'display-connection-tools': {'choices': ['disable', 'enable'], 'type': 'str'},
1005 'display-history': {'choices': ['disable', 'enable'], 'type': 'str'},
1006 'display-status': {'choices': ['disable', 'enable'], 'type': 'str'},
1007 'dns-server1': {'type': 'str'},
1008 'dns-server2': {'type': 'str'},
1009 'dns-suffix': {'type': 'str'},
1010 'exclusive-routing': {'choices': ['disable', 'enable'], 'type': 'str'},
1011 'forticlient-download': {'choices': ['disable', 'enable'], 'type': 'str'},
1012 'forticlient-download-method': {'choices': ['direct', 'ssl-vpn'], 'type': 'str'},
1013 'heading': {'type': 'str'},
1014 'hide-sso-credential': {'choices': ['disable', 'enable'], 'type': 'str'},
1015 'host-check': {'choices': ['none', 'av', 'fw', 'av-fw', 'custom'], 'type': 'str'},
1016 'host-check-interval': {'type': 'int'},
1017 'host-check-policy': {'type': 'raw'},
1018 'ip-mode': {'choices': ['range', 'user-group', 'dhcp', 'no-ip'], 'type': 'str'},
1019 'ip-pools': {'type': 'raw'},
1020 'ipv6-dns-server1': {'type': 'str'},
1021 'ipv6-dns-server2': {'type': 'str'},
1022 'ipv6-exclusive-routing': {'choices': ['disable', 'enable'], 'type': 'str'},
1023 'ipv6-pools': {'type': 'raw'},
1024 'ipv6-service-restriction': {'choices': ['disable', 'enable'], 'type': 'str'},
1025 'ipv6-split-tunneling': {'choices': ['disable', 'enable'], 'type': 'str'},
1026 'ipv6-split-tunneling-routing-address': {'type': 'raw'},
1027 'ipv6-tunnel-mode': {'choices': ['disable', 'enable'], 'type': 'str'},
1028 'ipv6-wins-server1': {'type': 'str'},
1029 'ipv6-wins-server2': {'type': 'str'},
1030 'keep-alive': {'choices': ['disable', 'enable'], 'type': 'str'},
1031 'limit-user-logins': {'choices': ['disable', 'enable'], 'type': 'str'},
1032 'mac-addr-action': {'choices': ['deny', 'allow'], 'type': 'str'},
1033 'mac-addr-check': {'choices': ['disable', 'enable'], 'type': 'str'},
1034 'mac-addr-check-rule': {
1035 'type': 'list',
1036 'options': {'mac-addr-list': {'type': 'raw'}, 'mac-addr-mask': {'type': 'int'}, 'name': {'type': 'str'}},
1037 'elements': 'dict'
1038 },
1039 'macos-forticlient-download-url': {'type': 'str'},
1040 'name': {'required': True, 'type': 'str'},
1041 'os-check': {'choices': ['disable', 'enable'], 'type': 'str'},
1042 'redir-url': {'type': 'str'},
1043 'save-password': {'choices': ['disable', 'enable'], 'type': 'str'},
1044 'service-restriction': {'choices': ['disable', 'enable'], 'type': 'str'},
1045 'skip-check-for-unsupported-browser': {
1046 'v_range': [['6.0.0', '7.2.1'], ['7.4.8', '7.4.10']],
1047 'choices': ['disable', 'enable'],
1048 'type': 'str'
1049 },
1050 'skip-check-for-unsupported-os': {'choices': ['disable', 'enable'], 'type': 'str'},
1051 'smb-ntlmv1-auth': {'choices': ['disable', 'enable'], 'type': 'str'},
1052 'smbv1': {'v_range': [['6.0.0', '7.2.1']], 'choices': ['disable', 'enable'], 'type': 'str'},
1053 'split-dns': {
1054 'type': 'list',
1055 'options': {
1056 'dns-server1': {'type': 'str'},
1057 'dns-server2': {'type': 'str'},
1058 'domains': {'type': 'str'},
1059 'id': {'type': 'int'},
1060 'ipv6-dns-server1': {'type': 'str'},
1061 'ipv6-dns-server2': {'type': 'str'}
1062 },
1063 'elements': 'dict'
1064 },
1065 'split-tunneling': {'choices': ['disable', 'enable'], 'type': 'str'},
1066 'split-tunneling-routing-address': {'type': 'raw'},
1067 'theme': {
1068 'choices': [
1069 'gray', 'blue', 'orange', 'crimson', 'steelblue', 'darkgrey', 'green', 'melongene', 'red', 'mariner', 'neutrino', 'jade',
1070 'graphite', 'dark-matter', 'onyx', 'eclipse', 'jet-stream', 'security-fabric'
1071 ],
1072 'type': 'str'
1073 },
1074 'tunnel-mode': {'choices': ['disable', 'enable'], 'type': 'str'},
1075 'user-bookmark': {'choices': ['disable', 'enable'], 'type': 'str'},
1076 'user-group-bookmark': {'choices': ['disable', 'enable'], 'type': 'str'},
1077 'web-mode': {'choices': ['disable', 'enable'], 'type': 'str'},
1078 'windows-forticlient-download-url': {'type': 'str'},
1079 'wins-server1': {'type': 'str'},
1080 'wins-server2': {'type': 'str'},
1081 'skip-check-for-browser': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1082 'smb-max-version': {'v_range': [['6.2.0', '']], 'choices': ['smbv1', 'smbv2', 'smbv3'], 'type': 'str'},
1083 'smb-min-version': {'v_range': [['6.2.0', '']], 'choices': ['smbv1', 'smbv2', 'smbv3'], 'type': 'str'},
1084 'virtual-desktop-logout-when-browser-close': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'},
1085 'virtual-desktop-clipboard-share': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'},
1086 'virtual-desktop-desktop-switch': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'},
1087 'virtual-desktop': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'},
1088 'virtual-desktop-network-share-access': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'},
1089 'virtual-desktop-printing': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'},
1090 'virtual-desktop-app-list': {'v_range': [['6.2.0', '6.2.13']], 'type': 'str'},
1091 'virtual-desktop-removable-media-access': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'},
1092 'transform-backward-slashes': {'v_range': [['6.2.2', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'},
1093 'ipv6-split-tunneling-routing-negate': {'v_range': [['6.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1094 'split-tunneling-routing-negate': {'v_range': [['6.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1095 'os-check-list': {
1096 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1097 'type': 'dict',
1098 'options': {
1099 'action': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['allow', 'check-up-to-date', 'deny'], 'type': 'str'},
1100 'latest-patch-level': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1101 'name': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1102 'tolerance': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1103 'minor-version': {'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '']], 'type': 'int'}
1104 }
1105 },
1106 'use-sdwan': {'v_range': [['6.2.7', '6.2.13'], ['6.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1107 'prefer-ipv6-dns': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1108 'rewrite-ip-uri-ui': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1109 'clipboard': {'v_range': [['6.4.7', '6.4.15'], ['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1110 'default-window-height': {'v_range': [['7.0.4', '']], 'type': 'int'},
1111 'default-window-width': {'v_range': [['7.0.4', '']], 'type': 'int'},
1112 'dhcp-ip-overlap': {'v_range': [['7.0.4', '7.0.16'], ['7.2.1', '']], 'choices': ['use-old', 'use-new'], 'type': 'str'},
1113 'client-src-range': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1114 'dhcp-ra-giaddr': {'v_range': [['7.2.2', '']], 'type': 'str'},
1115 'dhcp6-ra-linkaddr': {'v_range': [['7.2.2', '']], 'type': 'str'},
1116 'landing-page': {
1117 'v_range': [['7.4.0', '']],
1118 'type': 'dict',
1119 'options': {
1120 'form-data': {
1121 'v_range': [['7.4.0', '']],
1122 'type': 'list',
1123 'options': {'name': {'v_range': [['7.4.0', '']], 'type': 'str'}, 'value': {'v_range': [['7.4.0', '']], 'type': 'str'}},
1124 'elements': 'dict'
1125 },
1126 'logout-url': {'v_range': [['7.4.0', '7.4.1']], 'type': 'str'},
1127 'sso': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'static', 'auto'], 'type': 'str'},
1128 'sso-credential': {'v_range': [['7.4.0', '']], 'choices': ['sslvpn-login', 'alternative'], 'type': 'str'},
1129 'sso-password': {'v_range': [['7.4.0', '']], 'no_log': True, 'type': 'raw'},
1130 'sso-username': {'v_range': [['7.4.0', '']], 'type': 'str'},
1131 'url': {'v_range': [['7.4.0', '']], 'type': 'str'}
1132 }
1133 },
1134 'landing-page-mode': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1135 'default-protocol': {'v_range': [['7.4.1', '']], 'choices': ['web', 'ftp', 'telnet', 'smb', 'vnc', 'rdp', 'ssh', 'sftp'], 'type': 'str'},
1136 'focus-bookmark': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1137 'dhcp-reservation': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1138 }
1139 }
1140 }
1141
1142 module_option_spec = get_module_arg_spec('full crud')
1143 module_arg_spec.update(module_option_spec)
1144 check_galaxy_version(module_arg_spec)
1145 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'vpnsslweb_portal'),
1146 supports_check_mode=True)
1147 if not module._socket_path:
1148 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1149 connection = Connection(module._socket_path)
1150 fmgr = NAPIManager('full crud', module_arg_spec, urls_list,
1151 'name', 'data', module, connection)
1152 fmgr.process_crud()
1153 module.exit_json(meta=module.params)
1154
1155
1156 if __name__ == '__main__':
1157 main()