fmgr_firewall_vip6_dynamicmapping – Configure virtual IP for IPv6.

New in version 2.10.

Synopsis

  • This module is able to configure a FortiManager device.
  • Examples include all parameters and values need to be adjusted to data sources before usage.
  • Tested with FortiManager v6.0.0.

Requirements

The below requirements are needed on the host that executes this module.

  • ansible>=2.9.0

FortiManager Version Compatibility


6.0.0 6.2.1 6.2.3 6.2.5 6.4.0 6.4.2 6.4.5 7.0.0
firewall_vip6_dynamicmapping yes yes yes yes yes yes yes yes

Parameters

  • enable_log - Enable/Disable logging for task type: bool required: false default: False
  • proposed_method - The overridden method for the underlying Json RPC request type: str required: false choices: set, update, add
  • bypass_validation - Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters type: bool required: false default: False
  • workspace_locking_adom - Acquire the workspace lock if FortiManager is running in workspace mode type: str required: false choices: global, custom adom including root
  • workspace_locking_timeout - The maximum time in seconds to wait for other users to release workspace lock type: integer required: false default: 300
  • rc_succeeded - The rc codes list with which the conditions to succeed will be overriden type: list required: false
  • rc_failed - The rc codes list with which the conditions to fail will be overriden type: list required: false
  • state - The directive to create, update or delete an object type: str required: true choices: present, absent
  • adom - The parameter in requested url type: str required: true
  • vip6 - The parameter in requested url type: str required: true
  • firewall_vip6_dynamicmapping - Configure virtual IP for IPv6. type: dict
    • _scope - No description for the parameter type: array more...
      • name - No description for the parameter type: str more...
      • vdom - No description for the parameter type: str more...
    • arp-reply - No description for the parameter type: str choices: [disable, enable] more...
    • color - No description for the parameter type: int more...
    • comment - No description for the parameter type: str more...
    • extip - No description for the parameter type: str more...
    • extport - No description for the parameter type: str more...
    • http-cookie-age - No description for the parameter type: int more...
    • http-cookie-domain - No description for the parameter type: str more...
    • http-cookie-domain-from-host - No description for the parameter type: str choices: [disable, enable] more...
    • http-cookie-generation - No description for the parameter type: int more...
    • http-cookie-path - No description for the parameter type: str more...
    • http-cookie-share - No description for the parameter type: str choices: [disable, same-ip] more...
    • http-ip-header - No description for the parameter type: str choices: [disable, enable] more...
    • http-ip-header-name - No description for the parameter type: str more...
    • http-multiplex - No description for the parameter type: str choices: [disable, enable] more...
    • https-cookie-secure - No description for the parameter type: str choices: [disable, enable] more...
    • id - No description for the parameter type: int more...
    • ldb-method - No description for the parameter type: str choices: [static, round-robin, weighted, least-session, least-rtt, first-alive, http-host] more...
    • mappedip - No description for the parameter type: str more...
    • mappedport - No description for the parameter type: str more...
    • max-embryonic-connections - No description for the parameter type: int more...
    • monitor - No description for the parameter type: str more...
    • outlook-web-access - No description for the parameter type: str choices: [disable, enable] more...
    • persistence - No description for the parameter type: str choices: [none, http-cookie, ssl-session-id] more...
    • portforward - No description for the parameter type: str choices: [disable, enable] more...
    • protocol - No description for the parameter type: str choices: [tcp, udp, sctp] more...
    • server-type - No description for the parameter type: str choices: [http, https, ssl, tcp, udp, ip, imaps, pop3s, smtps] more...
    • src-filter - No description for the parameter type: str more...
    • ssl-algorithm - No description for the parameter type: str choices: [high, low, medium, custom] more...
    • ssl-certificate - No description for the parameter type: str more...
    • ssl-client-fallback - No description for the parameter type: str choices: [disable, enable] more...
    • ssl-client-renegotiation - No description for the parameter type: str choices: [deny, allow, secure] more...
    • ssl-client-session-state-max - No description for the parameter type: int more...
    • ssl-client-session-state-timeout - No description for the parameter type: int more...
    • ssl-client-session-state-type - No description for the parameter type: str choices: [disable, time, count, both] more...
    • ssl-dh-bits - No description for the parameter type: str choices: [768, 1024, 1536, 2048, 3072, 4096] more...
    • ssl-hpkp - No description for the parameter type: str choices: [disable, enable, report-only] more...
    • ssl-hpkp-age - No description for the parameter type: int more...
    • ssl-hpkp-backup - No description for the parameter type: str more...
    • ssl-hpkp-include-subdomains - No description for the parameter type: str choices: [disable, enable] more...
    • ssl-hpkp-primary - No description for the parameter type: str more...
    • ssl-hpkp-report-uri - No description for the parameter type: str more...
    • ssl-hsts - No description for the parameter type: str choices: [disable, enable] more...
    • ssl-hsts-age - No description for the parameter type: int more...
    • ssl-hsts-include-subdomains - No description for the parameter type: str choices: [disable, enable] more...
    • ssl-http-location-conversion - No description for the parameter type: str choices: [disable, enable] more...
    • ssl-http-match-host - No description for the parameter type: str choices: [disable, enable] more...
    • ssl-max-version - No description for the parameter type: str choices: [ssl-3.0, tls-1.0, tls-1.1, tls-1.2, tls-1.3] more...
    • ssl-min-version - No description for the parameter type: str choices: [ssl-3.0, tls-1.0, tls-1.1, tls-1.2, tls-1.3] more...
    • ssl-mode - No description for the parameter type: str choices: [half, full] more...
    • ssl-pfs - No description for the parameter type: str choices: [require, deny, allow] more...
    • ssl-send-empty-frags - No description for the parameter type: str choices: [disable, enable] more...
    • ssl-server-algorithm - No description for the parameter type: str choices: [high, low, medium, custom, client] more...
    • ssl-server-max-version - No description for the parameter type: str choices: [ssl-3.0, tls-1.0, tls-1.1, tls-1.2, client, tls-1.3] more...
    • ssl-server-min-version - No description for the parameter type: str choices: [ssl-3.0, tls-1.0, tls-1.1, tls-1.2, client, tls-1.3] more...
    • ssl-server-session-state-max - No description for the parameter type: int more...
    • ssl-server-session-state-timeout - No description for the parameter type: int more...
    • ssl-server-session-state-type - No description for the parameter type: str choices: [disable, time, count, both] more...
    • type - No description for the parameter type: str choices: [static-nat, server-load-balance] more...
    • uuid - No description for the parameter type: str more...
    • weblogic-server - No description for the parameter type: str choices: [disable, enable] more...
    • websphere-server - No description for the parameter type: str choices: [disable, enable] more...
    • http-redirect - No description for the parameter type: str choices: [disable, enable] more...
    • ssl-client-rekey-count - No description for the parameter type: int more...
    • nat-source-vip - No description for the parameter type: str choices: [disable, enable] more...

Notes

Note

  • Running in workspace locking mode is supported in this FortiManager module, the top level parameters workspace_locking_adom and workspace_locking_timeout help do the work.
  • To create or update an object, use state: present directive.
  • To delete an object, use state: absent directive
  • Normally, running one module can fail when a non-zero rc is returned. you can also override the conditions to fail or succeed with parameters rc_failed and rc_succeeded

Examples

- hosts: fortimanager-inventory
  collections:
    - fortinet.fortimanager
  connection: httpapi
  vars:
     ansible_httpapi_use_ssl: True
     ansible_httpapi_validate_certs: False
     ansible_httpapi_port: 443
  tasks:
   - name: Configure virtual IP for IPv6.
     fmgr_firewall_vip6_dynamicmapping:
        bypass_validation: False
        workspace_locking_adom: <value in [global, custom adom including root]>
        workspace_locking_timeout: 300
        rc_succeeded: [0, -2, -3, ...]
        rc_failed: [-2, -3, ...]
        adom: <your own value>
        vip6: <your own value>
        state: <value in [present, absent]>
        firewall_vip6_dynamicmapping:
           _scope:
             -
                 name: <value of string>
                 vdom: <value of string>
           arp-reply: <value in [disable, enable]>
           color: <value of integer>
           comment: <value of string>
           extip: <value of string>
           extport: <value of string>
           http-cookie-age: <value of integer>
           http-cookie-domain: <value of string>
           http-cookie-domain-from-host: <value in [disable, enable]>
           http-cookie-generation: <value of integer>
           http-cookie-path: <value of string>
           http-cookie-share: <value in [disable, same-ip]>
           http-ip-header: <value in [disable, enable]>
           http-ip-header-name: <value of string>
           http-multiplex: <value in [disable, enable]>
           https-cookie-secure: <value in [disable, enable]>
           id: <value of integer>
           ldb-method: <value in [static, round-robin, weighted, ...]>
           mappedip: <value of string>
           mappedport: <value of string>
           max-embryonic-connections: <value of integer>
           monitor: <value of string>
           outlook-web-access: <value in [disable, enable]>
           persistence: <value in [none, http-cookie, ssl-session-id]>
           portforward: <value in [disable, enable]>
           protocol: <value in [tcp, udp, sctp]>
           server-type: <value in [http, https, ssl, ...]>
           src-filter: <value of string>
           ssl-algorithm: <value in [high, low, medium, ...]>
           ssl-certificate: <value of string>
           ssl-client-fallback: <value in [disable, enable]>
           ssl-client-renegotiation: <value in [deny, allow, secure]>
           ssl-client-session-state-max: <value of integer>
           ssl-client-session-state-timeout: <value of integer>
           ssl-client-session-state-type: <value in [disable, time, count, ...]>
           ssl-dh-bits: <value in [768, 1024, 1536, ...]>
           ssl-hpkp: <value in [disable, enable, report-only]>
           ssl-hpkp-age: <value of integer>
           ssl-hpkp-backup: <value of string>
           ssl-hpkp-include-subdomains: <value in [disable, enable]>
           ssl-hpkp-primary: <value of string>
           ssl-hpkp-report-uri: <value of string>
           ssl-hsts: <value in [disable, enable]>
           ssl-hsts-age: <value of integer>
           ssl-hsts-include-subdomains: <value in [disable, enable]>
           ssl-http-location-conversion: <value in [disable, enable]>
           ssl-http-match-host: <value in [disable, enable]>
           ssl-max-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
           ssl-min-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
           ssl-mode: <value in [half, full]>
           ssl-pfs: <value in [require, deny, allow]>
           ssl-send-empty-frags: <value in [disable, enable]>
           ssl-server-algorithm: <value in [high, low, medium, ...]>
           ssl-server-max-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
           ssl-server-min-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
           ssl-server-session-state-max: <value of integer>
           ssl-server-session-state-timeout: <value of integer>
           ssl-server-session-state-type: <value in [disable, time, count, ...]>
           type: <value in [static-nat, server-load-balance]>
           uuid: <value of string>
           weblogic-server: <value in [disable, enable]>
           websphere-server: <value in [disable, enable]>
           http-redirect: <value in [disable, enable]>
           ssl-client-rekey-count: <value of integer>
           nat-source-vip: <value in [disable, enable]>

Return Values

Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:

  • request_url - The full url requested returned: always type: str sample: /sys/login/user
  • response_code - The status of api request returned: always type: int sample: 0
  • response_message - The descriptive message of the api response returned: always type: str sample: OK
  • response_data - The data body of the api response returned: optional type: list or dict

Status

  • This module is not guaranteed to have a backwards compatible interface.

Authors

  • Link Zheng (@chillancezen)
  • Jie Xue (@JieX19)
  • Frank Shen (@fshen01)
  • Hongbin Lu (@fgtdev-hblu)

Hint

If you notice any issues in this documentation, you can create a pull request to improve it.