# Alteon Rest Api

**URL:** <https://forum.ansible.com/t/alteon-rest-api/27490>\
**Category:** Ansible Project\
**Created:** [May 9, 2018, 10:13am UTC](https://forum.ansible.com/t/alteon-rest-api/27490 "2018-05-09T10:13:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamadouadaba](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mamadouadaba](https://forum.ansible.com/u/mamadouadaba)\
**Post date:** [May 9, 2018, 10:13am UTC](https://forum.ansible.com/t/alteon-rest-api/27490/1 "2018-05-09T10:13:52Z")

</div>

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
