mitchos/pyZscaler

[BUG]: Adding URL to blacklist with zia.security.add_urls_to_blacklist returns "AttributeError: 'Response' object has no attribute 'blacklist_urls'"

Closed this issue · 0 comments

Describe the bug

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Run zia.security.add_urls_to_blacklist([urllist]) with correct credentials
  2. URL is added to blacklist within Zscaler console
  3. Command returns:
    return self._post("security/advanced/blacklistUrls?action=ADD_TO_LIST", json=payload).blacklist_urls
AttributeError: 'Response' object has no attribute 'blacklist_urls'

Expected behavior

URL is added to zscaler and list of updated blacklist is returned

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 and Pop!_OS 22.04 LTS