Forum Discussion

yuanqiang_22112's avatar
yuanqiang_22112
Icon for Nimbostratus rankNimbostratus
Apr 06, 2017

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.