Forum Discussion
Python SDK Assign iRules to a virtual server
Hi All,
When i try to make connection with F5 box via python, i am getting below error. I am not good in python, please tell me how to proceed this commands with API to create objects in F5
from import ManagementRoot bigip = ManagementRoot('35.154.69.72', 'admin', 'admin')
Warning (from warnings module): File "C:\Users\krissara\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py", line 858 InsecureRequestWarning)InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.htmlssl-warnings
I decided to add urllib3 to avoid cert errors, but not working
urllib3.disable_warnings() Traceback (most recent call last): File "", line 1, in urllib3.disable_warnings() NameError: name 'urllib3' is not defined import urllib3 bigip = ManagementRoot('35.154.69.72', 'admin', 'admin')
Warning (from warnings module): File "C:\Users\krissara\AppData\Local\Programs\Python\Python36-32\lib\site-packages\urllib3\connectionpool.py", line 858 InsecureRequestWarning) InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.htmlssl-warnings
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com