Forum Discussion

nolanzhao_26262's avatar
nolanzhao_26262
Icon for Nimbostratus rankNimbostratus
May 26, 2016

about python for F5 icontrol probelem

**i want to get F5 ltm pools,use the simple code, from f5.bigip import ManagementRoot

 

mgmt=ManagementRoot('10.128.1.247','admin','admin')

 

>>> pools=mgmt.tm.ltm.pools.get-collection() -----this line code get an error,as the follow,why,someone can tell me**

/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:769: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/site-packages/f5_sdk-0.1.6-py2.7.egg/f5/bigip/resource.py", line 529, in get_collection self.refresh(kwargs) File "/usr/lib/python2.7/site-packages/f5_sdk-0.1.6-py2.7.egg/f5/bigip/resource.py", line 434, in refresh self._refresh(kwargs) File "/usr/lib/python2.7/site-packages/f5_sdk-0.1.6-py2.7.egg/f5/bigip/resource.py", line 417, in _refresh requests_params) File "build/bdist.linux-x86_64/egg/icontrol/session.py", line 254, in wrapper icontrol.session.iControlUnexpectedHTTPError: 404 Unexpected Error: Not Found for uri: https://10.128.1.247:443/mgmt/tm/ltm/pool/ Text: u'\nhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nhttp://www.w3.org/1999/xhtml" lang="en" xml:lang="en">\n\nObject not found!\n\n\n\n\n\n\n\n

 

Object not found!\n

\n\n\n The requested URL was not found on this server.\n\n \n\n If you entered the URL manually please check your\n spelling and try again.\n\n \n\n

 

\n\nError 404\n\n

 

\n \n Wed Apr 1 14:07:56 2015

 

\n \n\n\n\n\n'

 

2 Replies

  • Could you try to fix the formatting? This is quite difficult to see exactly what you're doing.

     

    Is this using the later python F5 SDK that was released this year?