:source: fortios_report_layout.py
:orphan:
.. fortios_report_layout:
fortios_report_layout -- Report layout configuration in Fortinet's FortiOS and FortiGate.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify report feature and layout category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.15
Tips
----
Using member operation to add an element to an existing object.
FortiOS Version Compatibility
-----------------------------
Supported Version Ranges: v6.0.0 -> v7.6.6
Parameters
----------
.. raw:: html
- access_token - Token-based authentication. Generated from GUI of Fortigate. type: str required: false
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- vdom - Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. type: str default: root
- member_path - Member attribute path to operate on. type: str
- member_state - Add or delete a member under specified attribute path. type: str choices: present, absent
- state - Indicates whether to create or remove the object. type: str required: true choices: present, absent
- report_layout - Report layout configuration. type: dict
more...
| Supported Version Ranges |
| report_layout |
v6.0.0 -> 7.6.6 |
- body_item - Configure report body item. type: list member_path: body_item:id
more...
| Supported Version Ranges |
| body_item |
v6.0.0 -> 7.6.6 |
- chart - Report item chart name. type: str
more...
|
Supported Version Ranges |
| chart |
v6.0.0 -> 7.6.6 |
- chart_options - Report chart options. type: list choices: include-no-data, hide-title, show-caption
more...
|
Supported Version Ranges |
| chart_options |
v6.0.0 -> 7.6.6 |
| [include-no-data] |
v6.0.0 -> 7.6.6 |
| [hide-title] |
v6.0.0 -> 7.6.6 |
| [show-caption] |
v6.0.0 -> 7.6.6 |
- column - Report section column number. type: int
more...
|
Supported Version Ranges |
| column |
v6.0.0 -> v6.4.4 |
- content - Report item text content. type: str
more...
|
Supported Version Ranges |
| content |
v6.0.0 -> 7.6.6 |
- description - Description. type: str
more...
|
Supported Version Ranges |
| description |
v6.0.0 -> 7.6.6 |
- drill_down_items - Control how drill down charts are shown. type: str
more...
|
Supported Version Ranges |
| drill_down_items |
v6.0.0 -> v6.4.4 |
- drill_down_types - Control whether keys from the parent being combined or not. type: str
more...
|
Supported Version Ranges |
| drill_down_types |
v6.0.0 -> v6.4.4 |
- hide - Enable/disable hide item in report. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| hide |
v6.0.0 -> v6.4.4 |
| [enable] |
v6.0.0 -> v6.4.4 |
| [disable] |
v6.0.0 -> v6.4.4 |
- id - Report item ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v6.0.0 -> 7.6.6 |
- img_src - Report item image file name. type: str
more...
|
Supported Version Ranges |
| img_src |
v6.0.0 -> 7.6.6 |
- list - Configure report list item. type: list member_path: body_item:id/list:id
more...
| Supported Version Ranges |
| list |
v6.0.0 -> v6.4.4 |
- content - List entry content. type: str
more...
|
Supported Version Ranges |
| content |
v6.0.0 -> v6.4.4 |
- id - List entry ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v6.0.0 -> v6.4.4 |
- list_component - Report item list component. type: str choices: bullet, numbered
more...
|
Supported Version Ranges |
| list_component |
v6.0.0 -> v6.4.4 |
| [bullet] |
v6.0.0 -> v6.4.4 |
| [numbered] |
v6.0.0 -> v6.4.4 |
- misc_component - Report item miscellaneous component. type: str choices: hline, page-break, column-break, section-start
more...
|
Supported Version Ranges |
| misc_component |
v6.0.0 -> 7.6.6 |
| [hline] |
v6.0.0 -> 7.6.6 |
| [page-break] |
v6.0.0 -> 7.6.6 |
| [column-break] |
v6.0.0 -> 7.6.6 |
| [section-start] |
v6.0.0 -> 7.6.6 |
- parameters - Parameters. type: list member_path: body_item:id/parameters:id
more...
| Supported Version Ranges |
| parameters |
v6.0.0 -> 7.6.6 |
- id - ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v6.0.0 -> 7.6.6 |
- name - Field name that match field of parameters defined in dataset. type: str
more...
|
Supported Version Ranges |
| name |
v6.0.0 -> 7.6.6 |
- value - Value to replace corresponding field of parameters defined in dataset. type: str
more...
|
Supported Version Ranges |
| value |
v6.0.0 -> 7.6.6 |
- style - Report item style. type: str
more...
|
Supported Version Ranges |
| style |
v6.0.0 -> 7.6.6 |
- table_caption_style - Table chart caption style. type: str
more...
|
Supported Version Ranges |
| table_caption_style |
v6.0.0 -> v6.4.4 |
- table_column_widths - Report item table column widths. type: str
more...
|
Supported Version Ranges |
| table_column_widths |
v6.0.0 -> v6.4.4 |
- table_even_row_style - Table chart even row style. type: str
more...
|
Supported Version Ranges |
| table_even_row_style |
v6.0.0 -> v6.4.4 |
- table_head_style - Table chart head style. type: str
more...
|
Supported Version Ranges |
| table_head_style |
v6.0.0 -> v6.4.4 |
- table_odd_row_style - Table chart odd row style. type: str
more...
|
Supported Version Ranges |
| table_odd_row_style |
v6.0.0 -> v6.4.4 |
- text_component - Report item text component. type: str choices: text, heading1, heading2, heading3
more...
|
Supported Version Ranges |
| text_component |
v6.0.0 -> 7.6.6 |
| [text] |
v6.0.0 -> 7.6.6 |
| [heading1] |
v6.0.0 -> 7.6.6 |
| [heading2] |
v6.0.0 -> 7.6.6 |
| [heading3] |
v6.0.0 -> 7.6.6 |
- title - Report section title. type: str
more...
|
Supported Version Ranges |
| title |
v6.0.0 -> 7.6.6 |
- top_n - Value of top. type: int
more...
|
Supported Version Ranges |
| top_n |
v6.0.0 -> 7.6.6 |
- type - Report item type. type: str choices: text, image, chart, misc
more...
|
Supported Version Ranges |
| type |
v6.0.0 -> 7.6.6 |
| [text] |
v6.0.0 -> 7.6.6 |
| [image] |
v6.0.0 -> 7.6.6 |
| [chart] |
v6.0.0 -> 7.6.6 |
| [misc] |
v6.0.0 -> 7.6.6 |
- cutoff_option - Cutoff-option is either run-time or custom. type: str choices: run-time, custom
more...
|
Supported Version Ranges |
| cutoff_option |
v6.0.0 -> 7.6.6 |
| [run-time] |
v6.0.0 -> 7.6.6 |
| [custom] |
v6.0.0 -> 7.6.6 |
- cutoff_time - Custom cutoff time to generate report (format = hh:mm). type: str
more...
|
Supported Version Ranges |
| cutoff_time |
v6.0.0 -> 7.6.6 |
- day - Schedule days of week to generate report. type: str choices: sunday, monday, tuesday, wednesday, thursday, friday, saturday
more...
|
Supported Version Ranges |
| day |
v6.0.0 -> 7.6.6 |
| [sunday] |
v6.0.0 -> 7.6.6 |
| [monday] |
v6.0.0 -> 7.6.6 |
| [tuesday] |
v6.0.0 -> 7.6.6 |
| [wednesday] |
v6.0.0 -> 7.6.6 |
| [thursday] |
v6.0.0 -> 7.6.6 |
| [friday] |
v6.0.0 -> 7.6.6 |
| [saturday] |
v6.0.0 -> 7.6.6 |
- description - Description. type: str
more...
|
Supported Version Ranges |
| description |
v6.0.0 -> 7.6.6 |
- email_recipients - Email recipients for generated reports. type: str
more...
|
Supported Version Ranges |
| email_recipients |
v6.0.0 -> 7.6.6 |
- email_send - Enable/disable sending emails after reports are generated. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| email_send |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- format - Report format. type: list choices: pdf
more...
|
Supported Version Ranges |
| format |
v6.0.0 -> 7.6.6 |
| [pdf] |
v6.0.0 -> 7.6.6 |
- max_pdf_report - Maximum number of PDF reports to keep at one time (oldest report is overwritten). type: int
more...
|
Supported Version Ranges |
| max_pdf_report |
v6.0.0 -> 7.6.6 |
- name - Report layout name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v6.0.0 -> 7.6.6 |
- options - Report layout options. type: list choices: include-table-of-content, auto-numbering-heading, view-chart-as-heading, show-html-navbar-before-heading, dummy-option
more...
|
Supported Version Ranges |
| options |
v6.0.0 -> 7.6.6 |
| [include-table-of-content] |
v6.0.0 -> 7.6.6 |
| [auto-numbering-heading] |
v6.0.0 -> 7.6.6 |
| [view-chart-as-heading] |
v6.0.0 -> 7.6.6 |
| [show-html-navbar-before-heading] |
v6.0.0 -> 7.6.6 |
| [dummy-option] |
v6.0.0 -> 7.6.6 |
- page - Configure report page. type: dict
more...
| Supported Version Ranges |
| page |
v6.0.0 -> 7.6.6 |
- column_break_before - Report page auto column break before heading. type: list choices: heading1, heading2, heading3
more...
|
Supported Version Ranges |
| column_break_before |
v6.0.0 -> 7.6.6 |
| [heading1] |
v6.0.0 -> 7.6.6 |
| [heading2] |
v6.0.0 -> 7.6.6 |
| [heading3] |
v6.0.0 -> 7.6.6 |
- footer - Configure report page footer. type: dict
more...
| Supported Version Ranges |
| footer |
v6.0.0 -> 7.6.6 |
- footer_item - Configure report footer item. type: list member_path: page/footer/footer_item:id
more...
| Supported Version Ranges |
| footer_item |
v6.0.0 -> 7.6.6 |
- content - Report item text content. type: str
more...
|
Supported Version Ranges |
| content |
v6.0.0 -> 7.6.6 |
- description - Description. type: str
more...
|
Supported Version Ranges |
| description |
v6.0.0 -> 7.6.6 |
- id - Report item ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v6.0.0 -> 7.6.6 |
- img_src - Report item image file name. type: str
more...
|
Supported Version Ranges |
| img_src |
v6.0.0 -> 7.6.6 |
- style - Report item style. type: str
more...
|
Supported Version Ranges |
| style |
v6.0.0 -> 7.6.6 |
- type - Report item type. type: str choices: text, image
more...
|
Supported Version Ranges |
| type |
v6.0.0 -> 7.6.6 |
| [text] |
v6.0.0 -> 7.6.6 |
| [image] |
v6.0.0 -> 7.6.6 |
- style - Report footer style. type: str
more...
|
Supported Version Ranges |
| style |
v6.0.0 -> 7.6.6 |
- header - Configure report page header. type: dict
more...
| Supported Version Ranges |
| header |
v6.0.0 -> 7.6.6 |
- header_item - Configure report header item. type: list member_path: page/header/header_item:id
more...
| Supported Version Ranges |
| header_item |
v6.0.0 -> 7.6.6 |
- content - Report item text content. type: str
more...
|
Supported Version Ranges |
| content |
v6.0.0 -> 7.6.6 |
- description - Description. type: str
more...
|
Supported Version Ranges |
| description |
v6.0.0 -> 7.6.6 |
- id - Report item ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v6.0.0 -> 7.6.6 |
- img_src - Report item image file name. type: str
more...
|
Supported Version Ranges |
| img_src |
v6.0.0 -> 7.6.6 |
- style - Report item style. type: str
more...
|
Supported Version Ranges |
| style |
v6.0.0 -> 7.6.6 |
- type - Report item type. type: str choices: text, image
more...
|
Supported Version Ranges |
| type |
v6.0.0 -> 7.6.6 |
| [text] |
v6.0.0 -> 7.6.6 |
| [image] |
v6.0.0 -> 7.6.6 |
- style - Report header style. type: str
more...
|
Supported Version Ranges |
| style |
v6.0.0 -> 7.6.6 |
- options - Report page options. type: list choices: header-on-first-page, footer-on-first-page
more...
|
Supported Version Ranges |
| options |
v6.0.0 -> 7.6.6 |
| [header-on-first-page] |
v6.0.0 -> 7.6.6 |
| [footer-on-first-page] |
v6.0.0 -> 7.6.6 |
- page_break_before - Report page auto page break before heading. type: list choices: heading1, heading2, heading3
more...
|
Supported Version Ranges |
| page_break_before |
v6.0.0 -> 7.6.6 |
| [heading1] |
v6.0.0 -> 7.6.6 |
| [heading2] |
v6.0.0 -> 7.6.6 |
| [heading3] |
v6.0.0 -> 7.6.6 |
- paper - Report page paper. type: str choices: a4, letter
more...
|
Supported Version Ranges |
| paper |
v6.0.0 -> 7.6.6 |
| [a4] |
v6.0.0 -> 7.6.6 |
| [letter] |
v6.0.0 -> 7.6.6 |
- schedule_type - Report schedule type. type: str choices: demand, daily, weekly
more...
|
Supported Version Ranges |
| schedule_type |
v6.0.0 -> 7.6.6 |
| [demand] |
v6.0.0 -> 7.6.6 |
| [daily] |
v6.0.0 -> 7.6.6 |
| [weekly] |
v6.0.0 -> 7.6.6 |
- style_theme - Report style theme. type: str
more...
|
Supported Version Ranges |
| style_theme |
v6.0.0 -> 7.6.6 |
- subtitle - Report subtitle. type: str
more...
|
Supported Version Ranges |
| subtitle |
v6.0.0 -> 7.6.6 |
- time - Schedule time to generate report (format = hh:mm). type: str
more...
|
Supported Version Ranges |
| time |
v6.0.0 -> 7.6.6 |
- title - Report title. type: str
more...
|
Supported Version Ranges |
| title |
v6.0.0 -> 7.6.6 |
Notes
-----
.. note::
- Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
- The module supports check_mode.
Examples
--------
.. code-block:: yaml+jinja
- name: Report layout configuration.
fortinet.fortios.fortios_report_layout:
vdom: "{{ vdom }}"
state: "present"
access_token: ""
report_layout:
body_item:
-
chart: ""
chart_options: "include-no-data"
column: "2147483647"
content: ""
description: ""
drill_down_items: ""
drill_down_types: ""
hide: "enable"
id: "12"
img_src: ""
list:
-
content: ""
id: "16"
list_component: "bullet"
misc_component: "hline"
parameters:
-
id: "20"
name: "default_name_21"
value: ""
style: ""
table_caption_style: ""
table_column_widths: ""
table_even_row_style: ""
table_head_style: ""
table_odd_row_style: ""
text_component: "text"
title: ""
top_n: "0"
type: "text"
cutoff_option: "run-time"
cutoff_time: ""
day: "sunday"
description: ""
email_recipients: ""
email_send: "enable"
format: "pdf"
max_pdf_report: "31"
name: "default_name_41"
options: "include-table-of-content"
page:
column_break_before: "heading1"
footer:
footer_item:
-
content: ""
description: ""
id: "49"
img_src: ""
style: ""
type: "text"
style: ""
header:
header_item:
-
content: ""
description: ""
id: "58"
img_src: ""
style: ""
type: "text"
style: ""
options: "header-on-first-page"
page_break_before: "heading1"
paper: "a4"
schedule_type: "demand"
style_theme: ""
subtitle: ""
time: ""
title: ""
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
- build - Build number of the fortigate image returned: always type: str sample: 1547
- http_method - Last method used to provision the content into FortiGate returned: always type: str sample: PUT
- http_status - Last result given by FortiGate on last operation applied returned: always type: str sample: 200
- mkey - Master key (id) used in the last call to FortiGate returned: success type: str sample: id
- name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
- path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
- revision - Internal revision number returned: always type: str sample: 17.0.2.10658
- serial - Serial number of the unit returned: always type: str sample: FGVMEVYYQT3AB5352
- status - Indication of the operation's result returned: always type: str sample: success
- vdom - Virtual domain used returned: always type: str sample: root
- version - Version of the FortiGate returned: always type: str sample: v5.6.3
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Link Zheng (@chillancezen)
- Jie Xue (@JieX19)
- Hongbin Lu (@fgtdev-hblu)
- Frank Shen (@frankshen01)
- Miguel Angel Munoz (@mamunozgonzalez)
- Nicolas Thomas (@thomnico)
.. hint::
If you notice any issues in this documentation, you can create a pull request to improve it.