Forum Discussion
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
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?
You'll need to use something like the bigsuds module or pycontrol, which implement the interface for iControl SOAP. The documentation says that the new f5-sdk is supporting iControl REST http://f5-sdk.readthedocs.io/en/v0.1.6/
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