Skip to main content

MalwareSettings

Malware Settings resource for Zscaler Internet Access.

Resource operations

This resource supports the following standard methods: load(), update(). They operate on the instance state — set properties with dot notation, then call the method with no arguments.

Quick Start​

import zssdk
import logging

# Enable debug logging for MalwareSettings
logging.getLogger('zssdk.zia').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)

session = zssdk.Session(
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)

# Call load on MalwareSettings
resource = session.zia.MalwareSettings()
result = resource.load()
print(result)

# Debug output shows HTTP request/response details

Actions​

load()​

Fetches an existing MalwareSettings by id. Only the id identifier is required; load() takes no other arguments.

Returns: MalwareSettings

Example:

resource = session.zia.MalwareSettings()
resource.load()
print(resource)

update()​

Updates an existing MalwareSettings. Call load() first, modify properties, then call update() — this method takes no arguments.

Properties for update:

NameTypeRequiredDescription
adware_blockedbooleanYes-
adware_capturebooleanYes-
ransomware_blockedbooleanYes-
ransomware_capturebooleanYes-
remote_access_tool_blockedbooleanYes-
remote_access_tool_capturebooleanYes-
spyware_blockedbooleanNo-
spyware_capturebooleanNo-
trojan_blockedbooleanYes-
trojan_capturebooleanYes-
unwanted_applications_blockedbooleanYes-
unwanted_applications_capturebooleanYes-
virus_blockedbooleanYes-
virus_capturebooleanYes-
worm_blockedbooleanYes-
worm_capturebooleanYes-

Returns: MalwareSettings

Example:

resource = session.zia.MalwareSettings(id="your-resource-id")
resource.load()
# Modify resource attributes here, then call update()
resource.update()

Attributes​

NameTypeRequiredDescription
adware_blockedbooleanYes-
adware_capturebooleanYes-
ransomware_blockedbooleanYes-
ransomware_capturebooleanYes-
remote_access_tool_blockedbooleanYes-
remote_access_tool_capturebooleanYes-
spyware_blockedbooleanNo-
spyware_capturebooleanNo-
trojan_blockedbooleanYes-
trojan_capturebooleanYes-
unwanted_applications_blockedbooleanYes-
unwanted_applications_capturebooleanYes-
virus_blockedbooleanYes-
virus_capturebooleanYes-
worm_blockedbooleanYes-
worm_capturebooleanYes-