security_url_threat_feeds - URL Threat Feed Resource
++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
URL Threat Feed Resource.
Use API "/resource-api/v2/security/url-threat-feeds".
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.17.0
Parameters
----------
.. raw:: html
- state The state of the module. "present" means create or update the resource, "absent" means delete the resource.type: strchoices: ['present', 'absent']default: present
- force_behavior Specify this option to force the method to use to interact with the resource.type: strchoices: ['none', 'read', 'create', 'update', 'delete']default: none
- bypass_validation Bypass validation of the module.type: booldefault: False
- params The parameters of the module.[Required]type: dict
- primary_key [Required]type: str
- comments type: str
- status type: strchoices: ['disable', 'enable']
- refresh_rate type: int
- uri type: str
- basic_authentication type: strchoices: ['disable', 'enable']
- username type: str
- password type: str
Examples
-------------
.. code-block:: yaml
- name: Security URL Threat Feeds
hosts: fortisase
gather_facts: false
vars:
primary_key: "asbfeeds"
tasks:
- name: Create/Update Security URL Threat Feeds
fortinet.fortisase.security_url_threat_feeds:
state: present
params:
primary_key: "{{ primary_key }}"
refresh_rate: 10
status: "enable"
uri: "https://www.virustotal.com/api/v3/domains/example.com/threat-feed"
basic_authentication: "enable"
username: "fortinet"
password: "fortinet"
- name: Delete Security URL Threat Feeds
fortinet.fortisase.security_url_threat_feeds:
state: absent
params:
primary_key: "{{ primary_key }}"
Return Values
-------------
.. raw:: html
- http_code type: intreturned: always
- response type: rawreturned: always
Authors
-------
- Xinwei Du (@dux-fortinet)