:source: fmgr_wtpprofile_lbs.py
:orphan:
.. _fmgr_wtpprofile_lbs:
fmgr_wtpprofile_lbs -- Set various location based service (LBS) options.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.0.0
.. warning::
Starting in version 3.0.0, all input arguments will be named using the underscore naming convention (snake_case).
- Argument name before 3.0.0: ``var-name``, ``var name``, ``var.name``
- New argument name starting in 3.0.0: ``var_name``
FortiManager Ansible v2.4+ supports both previous argument name and new underscore name.
You will receive deprecation warnings if you keep using the previous argument name.
You can ignore the warning by setting deprecation_warnings=False in ansible.cfg.
.. 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: v6.0.0 -> 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
- 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
- revision_note - The change note that can be specified when an object is created or updated. type: string required: false
- adom - The parameter in requested url type: str required: true
- wtp_profile - The parameter in requested url type: str required: true
- wtpprofile_lbs - Set various location based service type: dict
- aeroscout Enable/disable aeroscout real time location service (rtls) support. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> latest
- aeroscout_ap_mac (Alias name: aeroscout-ap-mac) Use bssid or board mac address as ap mac address in the aeroscout ap message. type: str choices: [bssid, board-mac]
more...
Supported Version Ranges: v6.0.0 -> latest
- aeroscout_mmu_report (Alias name: aeroscout-mmu-report) Enable/disable mu compounded report. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> latest
- aeroscout_mu (Alias name: aeroscout-mu) Enable/disable aeroscout support. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> latest
- aeroscout_mu_factor (Alias name: aeroscout-mu-factor) Aeroscout mobile unit (mu) mode dilution factor (default = 20). type: int
more...
Supported Version Ranges: v6.0.0 -> latest
- aeroscout_mu_timeout (Alias name: aeroscout-mu-timeout) Aeroscout mu mode timeout (0 - 65535 sec, default = 5). type: int
more...
Supported Version Ranges: v6.0.0 -> latest
- aeroscout_server_ip (Alias name: aeroscout-server-ip) Ip address of aeroscout server. type: str
more...
Supported Version Ranges: v6.0.0 -> latest
- aeroscout_server_port (Alias name: aeroscout-server-port) Aeroscout server udp listening port. type: int
more...
Supported Version Ranges: v6.0.0 -> latest
- ekahau_blink_mode (Alias name: ekahau-blink-mode) Enable/disable ekahua blink mode (also called airista flow blink mode) to find the location of devices connected to a wireless lan (default = disable). type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> latest
- ekahau_tag (Alias name: ekahau-tag) Wifi frame mac address or wifi tag. type: str
more...
Supported Version Ranges: v6.0.0 -> latest
- erc_server_ip (Alias name: erc-server-ip) Ip address of ekahua rtls controller (erc). type: str
more...
Supported Version Ranges: v6.0.0 -> latest
- erc_server_port (Alias name: erc-server-port) Ekahua rtls controller (erc) udp listening port. type: int
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence Enable/disable fortipresence to monitor the location and activity of wifi clients even if they dont connect to this wifi network (default = disable). type: str choices: [disable, enable, enable2, foreign, both]
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence_frequency (Alias name: fortipresence-frequency) Fortipresence report transmit frequency (5 - 65535 sec, default = 30). type: int
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence_port (Alias name: fortipresence-port) Fortipresence server udp listening port (default = 3000). type: int
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence_project (Alias name: fortipresence-project) Fortipresence project name (max. type: str
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence_rogue (Alias name: fortipresence-rogue) Enable/disable fortipresence finding and reporting rogue aps. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence_secret (Alias name: fortipresence-secret) Fortipresence secret password (max. type: list
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence_server (Alias name: fortipresence-server) Fortipresence server ip address. type: str
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence_unassoc (Alias name: fortipresence-unassoc) Enable/disable fortipresence finding and reporting unassociated stations. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> latest
- station_locate (Alias name: station-locate) Enable/disable client station locating services for all clients, whether associated or not (default = disable). type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.0.0 -> latest
- fortipresence_ble (Alias name: fortipresence-ble) Enable/disable fortipresence finding and reporting ble devices. type: str choices: [disable, enable]
more...
Supported Version Ranges: v6.2.0 -> latest
- fortipresence_server_addr_type (Alias name: fortipresence-server-addr-type) Fortipresence server address type (default = ipv4). type: str choices: [fqdn, ipv4]
more...
Supported Version Ranges: v7.0.2 -> latest
- fortipresence_server_fqdn (Alias name: fortipresence-server-fqdn) Fqdn of fortipresence server. type: str
more...
Supported Version Ranges: v7.0.2 -> latest
- polestar Enable/disable polestar ble nao track real time location service (rtls) support (default = disable). type: str choices: [disable, enable]
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_accumulation_interval (Alias name: polestar-accumulation-interval) Time that measurements should be accumulated in seconds (default = 2). type: int
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_asset_addrgrp_list (Alias name: polestar-asset-addrgrp-list) Tags and asset addrgrp list to be reported. type: str
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_asset_uuid_list1 (Alias name: polestar-asset-uuid-list1) Tags and asset uuid list 1 to be reported (string in the format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). type: str
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_asset_uuid_list2 (Alias name: polestar-asset-uuid-list2) Tags and asset uuid list 2 to be reported (string in the format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). type: str
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_asset_uuid_list3 (Alias name: polestar-asset-uuid-list3) Tags and asset uuid list 3 to be reported (string in the format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). type: str
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_asset_uuid_list4 (Alias name: polestar-asset-uuid-list4) Tags and asset uuid list 4 to be reported (string in the format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). type: str
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_protocol (Alias name: polestar-protocol) Select the protocol to report measurements, advertising data, or location data to nao cloud. type: str choices: [WSS]
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_reporting_interval (Alias name: polestar-reporting-interval) Time between reporting accumulated measurements in seconds (default = 2). type: int
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_server_fqdn (Alias name: polestar-server-fqdn) Fqdn of polestar nao track server (default = ws. type: str
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_server_path (Alias name: polestar-server-path) Path of polestar nao track server (default = /v1/token//pst-v2). type: str
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_server_port (Alias name: polestar-server-port) Port of polestar nao track server (default = 443). type: int
more...
Supported Version Ranges: v7.4.1 -> latest
- polestar_server_token (Alias name: polestar-server-token) Access token of polestar nao track server. type: str
more...
Supported Version Ranges: v7.4.1 -> latest
- ble_rtls (Alias name: ble-rtls) Set ble real time location service (rtls) support (default = none). type: str choices: [none, polestar, evresys]
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_accumulation_interval (Alias name: ble-rtls-accumulation-interval) Time that measurements should be accumulated in seconds (default = 2). type: int
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_asset_addrgrp_list (Alias name: ble-rtls-asset-addrgrp-list) Tags and asset addrgrp list to be reported. type: list
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_asset_uuid_list1 (Alias name: ble-rtls-asset-uuid-list1) Tags and asset uuid list 1 to be reported (string in the format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). type: str
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_asset_uuid_list2 (Alias name: ble-rtls-asset-uuid-list2) Tags and asset uuid list 2 to be reported (string in the format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). type: str
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_asset_uuid_list3 (Alias name: ble-rtls-asset-uuid-list3) Tags and asset uuid list 3 to be reported (string in the format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). type: str
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_asset_uuid_list4 (Alias name: ble-rtls-asset-uuid-list4) Tags and asset uuid list 4 to be reported (string in the format of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). type: str
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_protocol (Alias name: ble-rtls-protocol) Select the protocol to report measurements, advertising data, or location data to cloud server. type: str choices: [WSS]
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_reporting_interval (Alias name: ble-rtls-reporting-interval) Time between reporting accumulated measurements in seconds (default = 2). type: int
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_server_fqdn (Alias name: ble-rtls-server-fqdn) Fqdn of ble real time location service (rtls) server. type: str
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_server_path (Alias name: ble-rtls-server-path) Path of ble real time location service (rtls) server. type: str
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_server_port (Alias name: ble-rtls-server-port) Port of ble real time location service (rtls) server (default = 443). type: int
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
- ble_rtls_server_token (Alias name: ble-rtls-server-token) Access token of ble real time location service (rtls) server. type: str
more...
Supported Version Ranges: v7.4.4 -> v7.4.10, v7.6.2 -> latest
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
tasks:
- name: Set various location based service
fortinet.fortimanager.fmgr_wtpprofile_lbs:
# workspace_locking_adom:
adom:
wtp_profile:
wtpprofile_lbs:
# aeroscout:
# aeroscout_ap_mac:
# aeroscout_mmu_report:
# aeroscout_mu:
# aeroscout_mu_factor:
# aeroscout_mu_timeout:
# aeroscout_server_ip:
# aeroscout_server_port:
# ekahau_blink_mode:
# ekahau_tag:
# erc_server_ip:
# erc_server_port:
# fortipresence:
# fortipresence_frequency:
# fortipresence_port:
# fortipresence_project:
# fortipresence_rogue:
# fortipresence_secret:
# fortipresence_server:
# fortipresence_unassoc:
# station_locate:
# fortipresence_ble:
# fortipresence_server_addr_type:
# fortipresence_server_fqdn:
# polestar:
# polestar_accumulation_interval:
# polestar_asset_addrgrp_list:
# polestar_asset_uuid_list1:
# polestar_asset_uuid_list2:
# polestar_asset_uuid_list3:
# polestar_asset_uuid_list4:
# polestar_protocol:
# polestar_reporting_interval:
# polestar_server_fqdn:
# polestar_server_path:
# polestar_server_port:
# polestar_server_token:
# ble_rtls:
# ble_rtls_accumulation_interval:
# ble_rtls_asset_addrgrp_list:
# ble_rtls_asset_uuid_list1:
# ble_rtls_asset_uuid_list2:
# ble_rtls_asset_uuid_list3:
# ble_rtls_asset_uuid_list4:
# ble_rtls_protocol:
# ble_rtls_reporting_interval:
# ble_rtls_server_fqdn:
# ble_rtls_server_path:
# ble_rtls_server_port:
# ble_rtls_server_token:
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)