:source: fortios_casb_saas_application.py
:orphan:
.. fortios_casb_saas_application:
fortios_casb_saas_application -- Configure CASB SaaS application 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 casb feature and saas_application 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.16
Tips
----
Using member operation to add an element to an existing object.
FortiOS Version Compatibility
-----------------------------
Supported Version Ranges: v7.4.1 -> 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
- casb_saas_application - Configure CASB SaaS application. type: dict
more...
| Supported Version Ranges |
| casb_saas_application |
v7.4.1 -> 7.6.6 |
- casb_name - SaaS application signature name. type: str
more...
|
Supported Version Ranges |
| casb_name |
v7.4.1 -> 7.6.6 |
- description - SaaS application description. type: str
more...
|
Supported Version Ranges |
| description |
v7.4.1 -> 7.6.6 |
- domains - SaaS application domain list. type: list member_path: domains:domain
more...
| Supported Version Ranges |
| domains |
v7.4.1 -> 7.6.6 |
- domain - Domain list separated by space. type: str required: true
more...
|
Supported Version Ranges |
| domain |
v7.4.1 -> 7.6.6 |
- input_attributes - SaaS application input attributes. type: list member_path: input_attributes:name
more...
| Supported Version Ranges |
| input_attributes |
v7.6.1 -> 7.6.6 |
- attr_type - CASB attribute type. type: str choices: tenant
more...
|
Supported Version Ranges |
| attr_type |
v7.6.1 -> v7.6.2 |
| [tenant] |
v7.6.1 -> v7.6.2 |
- default - CASB attribute default value. type: str choices: string, string-list
more...
|
Supported Version Ranges |
| default |
v7.6.1 -> 7.6.6 |
| [string] |
v7.6.1 -> 7.6.6 |
| [string-list] |
v7.6.1 -> 7.6.6 |
- description - CASB attribute description. type: str
more...
|
Supported Version Ranges |
| description |
v7.6.1 -> 7.6.6 |
- fallback_input - CASB attribute legacy input. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| fallback_input |
v7.6.1 -> 7.6.6 |
| [enable] |
v7.6.1 -> 7.6.6 |
| [disable] |
v7.6.1 -> 7.6.6 |
- name - CASB attribute name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v7.6.1 -> 7.6.6 |
- required - CASB input attribute required. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| required |
v7.6.1 -> 7.6.6 |
| [enable] |
v7.6.1 -> 7.6.6 |
| [disable] |
v7.6.1 -> 7.6.6 |
- type - CASB attribute format type. type: str choices: string, string-list, integer, integer-list, boolean
more...
|
Supported Version Ranges |
| type |
v7.6.1 -> 7.6.6 |
| [string] |
v7.6.1 -> 7.6.6 |
| [string-list] |
v7.6.1 -> v7.6.2 |
| [integer] |
v7.6.1 -> v7.6.2 |
| [integer-list] |
v7.6.1 -> v7.6.2 |
| [boolean] |
v7.6.1 -> v7.6.2 |
- name - SaaS application name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v7.4.1 -> 7.6.6 |
- output_attributes - SaaS application output attributes. type: list member_path: output_attributes:name
more...
| Supported Version Ranges |
| output_attributes |
v7.6.1 -> 7.6.6 |
- attr_type - CASB attribute type. type: str choices: tenant
more...
|
Supported Version Ranges |
| attr_type |
v7.6.1 -> v7.6.2 |
| [tenant] |
v7.6.1 -> v7.6.2 |
- description - CASB attribute description. type: str
more...
|
Supported Version Ranges |
| description |
v7.6.1 -> 7.6.6 |
- name - CASB attribute name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v7.6.1 -> 7.6.6 |
- optional - CASB output attribute optional. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| optional |
v7.6.3 -> 7.6.6 |
| [enable] |
v7.6.3 -> 7.6.6 |
| [disable] |
v7.6.3 -> 7.6.6 |
- required - CASB attribute required. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| required |
v7.6.1 -> v7.6.2 |
| [enable] |
v7.6.1 -> v7.6.2 |
| [disable] |
v7.6.1 -> v7.6.2 |
- type - CASB attribute format type. type: str choices: string, string-list, integer, integer-list, boolean
more...
|
Supported Version Ranges |
| type |
v7.6.1 -> 7.6.6 |
| [string] |
v7.6.1 -> 7.6.6 |
| [string-list] |
v7.6.1 -> 7.6.6 |
| [integer] |
v7.6.1 -> 7.6.6 |
| [integer-list] |
v7.6.1 -> 7.6.6 |
| [boolean] |
v7.6.1 -> 7.6.6 |
- status - Enable/disable setting. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| status |
v7.4.2 -> 7.6.6 |
| [enable] |
v7.4.2 -> 7.6.6 |
| [disable] |
v7.4.2 -> 7.6.6 |
- type - SaaS application type. type: str choices: built-in, customized
more...
|
Supported Version Ranges |
| type |
v7.4.1 -> 7.6.6 |
| [built-in] |
v7.4.1 -> 7.6.6 |
| [customized] |
v7.4.1 -> 7.6.6 |
- uuid - Universally Unique Identifier (UUID; automatically assigned but can be manually reset). type: str
more...
|
Supported Version Ranges |
| uuid |
v7.4.1 -> 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: Configure CASB SaaS application.
fortinet.fortios.fortios_casb_saas_application:
vdom: "{{ vdom }}"
state: "present"
access_token: ""
casb_saas_application:
casb_name: ""
description: ""
domains:
-
domain: ""
input_attributes:
-
attr_type: "tenant"
default: "string"
description: ""
fallback_input: "enable"
name: "default_name_12"
required: "enable"
type: "string"
name: "default_name_15"
output_attributes:
-
attr_type: "tenant"
description: ""
name: "default_name_19"
optional: "enable"
required: "enable"
type: "string"
status: "enable"
type: "built-in"
uuid: ""
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.