| 1 |
#!/usr/bin/python |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
|
| 4 |
# Copyright (c) 2021, Cisco Systems |
| 5 |
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 6 |
|
| 7 |
DOCUMENTATION = r""" |
| 8 |
module: networks_appliance_security_malware |
| 9 |
short_description: Resource module for networks _appliance _security _malware |
| 10 |
description: |
| 11 |
- Manage operation update of the resource networks _appliance _security _malware. |
| 12 |
- Set the supported malware settings for an MX network. |
| 13 |
version_added: '1.0.0' |
| 14 |
extends_documentation_fragment: |
| 15 |
- cisco.meraki.module |
| 16 |
author: Francisco Munoz (@fmunoz) |
| 17 |
options: |
| 18 |
allowedFiles: |
| 19 |
description: The sha256 digests of files that should be permitted by the malware |
| 20 |
detection engine. If omitted, the current config will remain unchanged. This |
| 21 |
is available only if your network supports AMP allow listing. |
| 22 |
elements: dict |
| 23 |
suboptions: |
| 24 |
comment: |
| 25 |
description: Comment about the allowed entity. |
| 26 |
type: str |
| 27 |
sha256: |
| 28 |
description: The file sha256 hash to allow. |
| 29 |
type: str |
| 30 |
type: list |
| 31 |
allowedUrls: |
| 32 |
description: The urls that should be permitted by the malware detection engine. |
| 33 |
If omitted, the current config will remain unchanged. This is available only |
| 34 |
if your network supports AMP allow listing. |
| 35 |
elements: dict |
| 36 |
suboptions: |
| 37 |
comment: |
| 38 |
description: Comment about the allowed entity. |
| 39 |
type: str |
| 40 |
url: |
| 41 |
description: The url to allow. |
| 42 |
type: str |
| 43 |
type: list |
| 44 |
mode: |
| 45 |
description: Set mode to 'enabled' to enable malware prevention, otherwise 'disabled'. |
| 46 |
type: str |
| 47 |
networkId: |
| 48 |
description: NetworkId path parameter. Network ID. |
| 49 |
type: str |
| 50 |
requirements: |
| 51 |
- meraki >= 2.4.9 |
| 52 |
- python >= 3.5 |
| 53 |
seealso: |
| 54 |
- name: Cisco Meraki documentation for appliance updateNetworkApplianceSecurityMalware |
| 55 |
description: Complete reference of the updateNetworkApplianceSecurityMalware API. |
| 56 |
link: https://developer.cisco.com/meraki/api-v1/#!update-network-appliance-security-malware |
| 57 |
notes: |
| 58 |
- SDK Method used are |
| 59 |
appliance.Appliance.update_network_appliance_security_malware, |
| 60 |
- Paths used are |
| 61 |
put /networks/{networkId}/appliance/security/malware, |
| 62 |
""" |
| 63 |
|
| 64 |
EXAMPLES = r""" |
| 65 |
- name: Update all |
| 66 |
cisco.meraki.networks_appliance_security_malware: |
| 67 |
meraki_api_key: "{{ meraki_api_key }}" |
| 68 |
meraki_base_url: "{{ meraki_base_url }}" |
| 69 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 70 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 71 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 72 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 73 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 74 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 75 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 76 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 77 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 78 |
meraki_output_log: "{{ meraki_output_log }}" |
| 79 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 80 |
meraki_log_path: "{{ meraki_log_path }}" |
| 81 |
meraki_print_console: "{{ meraki_print_console }}" |
| 82 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 83 |
meraki_simulate: "{{ meraki_simulate }}" |
| 84 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 85 |
meraki_caller: "{{ meraki_caller }}" |
| 86 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 87 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 88 |
state: present |
| 89 |
allowedFiles: |
| 90 |
- comment: allow ZIP file |
| 91 |
sha256: e82c5f7d75004727e1f3b94426b9a11c8bc4c312a9170ac9a73abace40aef503 |
| 92 |
allowedUrls: |
| 93 |
- comment: allow help.com.au |
| 94 |
url: help.com.au |
| 95 |
mode: enabled |
| 96 |
networkId: string |
| 97 |
""" |
| 98 |
RETURN = r""" |
| 99 |
meraki_response: |
| 100 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 101 |
returned: always |
| 102 |
type: dict |
| 103 |
sample: > |
| 104 |
{ |
| 105 |
"mode": "string", |
| 106 |
"allowedUrls": [ |
| 107 |
{ |
| 108 |
"url": "string", |
| 109 |
"comment": "string" |
| 110 |
} |
| 111 |
], |
| 112 |
"allowedFiles": [ |
| 113 |
{ |
| 114 |
"sha256": "string", |
| 115 |
"comment": "string" |
| 116 |
} |
| 117 |
] |
| 118 |
} |
| 119 |
""" |