Forum Discussion
RST API for 10.2.1
Hello **I want to manager F5 LTM through rst api , device version is V10.2.1. I try to configure rst api with v11 api user guide "icontrol-rest-api-user-guide-12-0-0_36",but not work . The error message is as follows : I don't know is it possible v10.2.1 can work or not, to use rst api,please tell me .
mgmt = ManagementRoot("10.2.1.2","zhangchong","password”)** /Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.htmlssl-warnings InsecureRequestWarning) Traceback (most recent call last): File "/Library/Python/2.7/site-packages/icontrol/session.py", line 258, in wrapper response = method(self, REST_uri, **kwargs) File "/Library/Python/2.7/site-packages/icontrol/session.py", line 427, in get return self.session.get(uri, **kwargs) File "/Library/Python/2.7/site-packages/requests/sessions.py", line 501, in get return self.request('GET', url, **kwargs) File "/Library/Python/2.7/site-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/Library/Python/2.7/site-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/Library/Python/2.7/site-packages/requests/adapters.py", line 487, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url: //10.2.1.2:443/mgmt/tm/sys/ (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)) mgmt = ManagementRoot("10.2.1.2","zhangchong","!zhangchong.123") /Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised.
- DevBabuCirrus
There is no REST API for version 10.x. I believe there is SOAP API. For REST API you need to be 11.5.4 or higher. You can have it on 11.x but it might require some FramweWork Upgrade.
But you might get the insecure message warning in v11.x as below. I InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificat e verification is strongly advised. See: https://urllib3.readthedocs.io/en/lates t/advanced-usage.htmlssl-warnings InsecureRequestWarning)
Please check the issue documented in github. https://github.com/F5Networks/f5-common-python/issues/1093
- IainThomson85_1Cumulonimbus
10.2.1 Is EOL by a few months.... :S
- yuanqiang_22112Nimbostratus
@lainThomson85 , you mean 10.2.1 not support rst api ?
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