Forum Discussion

loveen_355250's avatar
loveen_355250
Icon for Nimbostratus rankNimbostratus
Jul 03, 2018

API call not working on F5

API call not working as per suggested reference neither for virtual-address,pool,node, i tried changing all options but no success , can you let me whats wrong, the auth credentials i am using i am able to login to tmsh and tmos both

 

https://devcentral.f5.com/wiki/iControlREST.APIRef_tm_ltm_virtual-address.ashx

 

import requests import json requests.packages.urllib3.disable_warnings() b = requests.session() b.auth = ('XXXXXX', 'XXXXXXX') b.verify = False b.headers.update({'Content-Type':'application/json'}) print b.get('https://10.242.2.133/mgmt/tm/ltm/virtual-address') print b.get('https://10.242.2.133/mgmt/tm/ltm/pool') print b.get('https://10.242.2.133/mgmt/tm/ltm/node')

 

 

3 Replies