Created
September 13, 2018 16:57
-
-
Save marknca/71f0a53934276cf027f53f8343c2268f to your computer and use it in GitHub Desktop.
Why can't I log into the Deep Security Manager via the API?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import deepsecurity # from https://github.com/deep-security/deep-security-py | |
import logging | |
# if testing a tenant login | |
mgr = deepsecurity.dsm.Manager(username=YOUR_USERNAME, password=YOUR_PASSWORD, tenant=YOUR_TENANT_NAME) # will call the API authenticateTenant | |
# or | |
# if testing the primary tenant | |
mgr = deepsecurity.dsm.Manager(username=YOUR_USERNAME, password=YOUR_PASSWORD) # if "tenant" argument ISN'T sent, it calls a different API call "authenticate" | |
mgr.log_at_level = logging.DEBUG | |
mgr.sign_in() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment