Hello there,
I would like to get config of the Radware alteon vadc through Rest API.
Since I want to access directly without using vdirect, I inialized a module.
But the fact is I don't know the tree being the api in order to get alteon
configuration.
here the part of the connection module
def get_config(module):
host = module.params ['host']
username = module.params ['username']
password = module.params ['password']
userAndPass = b64encode(b"username:password").decode("ascii")
headers = { 'Authorization' : 'Basic userAndPass' }
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
session = requests.get("https://"+host"/config", headers=headers,
verify=False)
Issue : I got an issue while testing the code like :
requests.exceptions.ConnectionError: ('Connection aborted.',
BadStatusLine("''",))
Thanks in advance for your help
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/86056e9e-b458-4687-a4a3-c2a758248c24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.