:source: fmgd_extensioncontroller_extender.py
:orphan:
.. _fmgd_extensioncontroller_extender:
fmgd_extensioncontroller_extender -- Extender controller configuration.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 1.0.0
.. contents::
:local:
:depth: 1
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 v7.x.
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible-core>=2.16.0
FortiManager Version Compatibility
----------------------------------
.. raw:: html
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
Parameters
----------
.. raw:: html
- access_token -The token to access FortiManager without using username and password. type: str required: false
- 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
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- forticloud_access_token - Access token of forticloud managed API users, this option is available with FortiManager later than 6.4.0. type: str required: false
- proposed_method - The overridden method for the underlying Json RPC request. type: str required: false choices: set, update, add
- 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
- 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
- device - The parameter in requested url type: str required: true
- vdom - The parameter in requested url type: str required: true
- extensioncontroller_extender - Extender controller configuration. type: dict
- allowaccess Control management access to the managed extender. type: list choices: [https, ping, ssh, snmp, http, telnet]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- authorized Fortiextender administration (enable or disable). type: str choices: [disable, enable, discovered]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- bandwidth_limit (Alias name: bandwidth-limit) Fortiextender lan extension bandwidth limit (mbps). type: int
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- description Description. type: str
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- device_id (Alias name: device-id) Device id. type: int
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- enforce_bandwidth (Alias name: enforce-bandwidth) Enable/disable enforcement of bandwidth on lan extension interface. type: str choices: [disable, enable]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- ext_name (Alias name: ext-name) Fortiextender name. type: str
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- extension_type (Alias name: extension-type) Extension type for this fortiextender. type: str choices: [wan-extension, lan-extension]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- firmware_provision_latest (Alias name: firmware-provision-latest) Enable/disable one-time automatic provisioning of the latest firmware version. type: str choices: [disable, once]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- id Fortiextender serial number. type: str
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- login_password (Alias name: login-password) Set the managed extenders administrator password. type: list
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- login_password_change (Alias name: login-password-change) Change or reset the administrator password of a managed extender (yes, default, or no, default = no). type: str choices: [no, yes, default]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- name Fortiextender entry name. type: str
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- override_allowaccess (Alias name: override-allowaccess) Enable to override the extender profile management access configuration. type: str choices: [disable, enable]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- override_enforce_bandwidth (Alias name: override-enforce-bandwidth) Enable to override the extender profile enforce-bandwidth setting. type: str choices: [disable, enable]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- override_login_password_change (Alias name: override-login-password-change) Enable to override the extender profile login-password (administrator password) setting. type: str choices: [disable, enable]
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- profile Fortiextender profile configuration. type: list
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- vdom Vdom. type: int
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- wan_extension (Alias name: wan-extension) Wan extension. type: dict
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- modem1_extension (Alias name: modem1-extension) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- modem2_extension (Alias name: modem2-extension) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> latest
- modem1_pdn1_interface (Alias name: modem1-pdn1-interface) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.6.2 -> latest
- modem1_pdn2_interface (Alias name: modem1-pdn2-interface) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.6.2 -> latest
- modem1_pdn3_interface (Alias name: modem1-pdn3-interface) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.6.2 -> latest
- modem1_pdn4_interface (Alias name: modem1-pdn4-interface) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.6.2 -> latest
- modem2_pdn1_interface (Alias name: modem2-pdn1-interface) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.6.2 -> latest
- modem2_pdn2_interface (Alias name: modem2-pdn2-interface) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.6.2 -> latest
- modem2_pdn3_interface (Alias name: modem2-pdn3-interface) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.6.2 -> latest
- modem2_pdn4_interface (Alias name: modem2-pdn4-interface) Fortiextender interface name. type: list
more...
Supported Version Ranges: v7.6.2 -> latest
- _prefer_img_ver (Alias name: _prefer-img-ver) Prefer img ver. type: str
more...
Supported Version Ranges: v7.4.8 -> v7.4.10
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
--------
.. code-block:: yaml+jinja
- name: Example playbook (generated based on argument schema)
hosts: fortimanagers
connection: httpapi
gather_facts: false
vars:
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_httpapi_port: 443
tasks:
- name: Extender controller configuration.
fortinet.fmgdevice.fmgd_extensioncontroller_extender:
# bypass_validation: false
# workspace_locking_adom:
# workspace_locking_timeout: 300
# rc_succeeded: [0, -2, -3, ...]
# rc_failed: [-2, -3, ...]
device:
vdom:
state: present #
extensioncontroller_extender:
name: "your value" # Required variable, string
# allowaccess:
# - "https"
# - "ping"
# - "ssh"
# - "snmp"
# - "http"
# - "telnet"
# authorized:
# bandwidth_limit:
# description:
# device_id:
# enforce_bandwidth:
# ext_name:
# extension_type:
# firmware_provision_latest:
# id:
# login_password:
# login_password_change:
# override_allowaccess:
# override_enforce_bandwidth:
# override_login_password_change:
# profile:
# vdom:
# wan_extension:
# modem1_extension:
# modem2_extension:
# modem1_pdn1_interface:
# modem1_pdn2_interface:
# modem1_pdn3_interface:
# modem1_pdn4_interface:
# modem2_pdn1_interface:
# modem2_pdn2_interface:
# modem2_pdn3_interface:
# modem2_pdn4_interface:
# _prefer_img_ver:
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:
.. raw:: html
- meta - The result of the request.returned: always type: dict
- 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_data - The data body of the api response. returned: optional type: list or dict
- response_message - The descriptive message of the api response. returned: always type: str sample: OK
- system_information - The information of the target system. returned: always type: dict
- rc - The status the request. returned: always type: int sample: 0
- version_check_warning - Warning if the parameters used in the playbook are not supported by the current FortiManager version. returned: if at least one parameter not supported by the current FortiManager version type: list
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Xinwei Du (@dux-fortinet)
- Xing Li (@lix-fortinet)
- Jie Xue (@JieX19)
- Link Zheng (@chillancezen)
- Frank Shen (@fshen01)
- Hongbin Lu (@fgtdev-hblu)