We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7dc1288 + e89c39b commit 1c111beCopy full SHA for 1c111be
2 files changed
docs/userguide/connections.rst
@@ -19,6 +19,7 @@ You can, however, supply one or more of the following kwargs (defaults listed):
19
port 443
20
icontrol_version ''
21
token False
22
+ token_to_use None
23
verify False
24
auth_provider None
25
================ =====
@@ -30,6 +31,13 @@ You can, however, supply one or more of the following kwargs (defaults listed):
30
31
>>> from f5.bigip import ManagementRoot
32
>>> mgmt = ManagementRoot('192.168.1.1.', 'user', 'pass', port=4443, token=True)
33
34
+.. topic:: Example: Use existing authentication token
35
+
36
+ .. code-block:: python
37
38
+ >>> from f5.bigip import ManagementRoot
39
+ >>> mgmt = ManagementRoot('192.168.1.1', 'user', 'pass', token=True, token_to_use='2PXGGMT4QR3Y3PAQEEURAPB5DJ')
40
41
.. topic:: Example: Enable cert verification
42
43
.. code-block:: python
f5/bigip/__init__.py
@@ -64,6 +64,7 @@ def parse_arguments(self, *args, **kwargs):
64
port=kwargs.pop('port', 443),
65
icontrol_version=kwargs.pop('icontrol_version', ''),
66
token=kwargs.pop('token', False),
67
+ token_to_use=kwargs.pop('token_to_use', None),
68
verify=kwargs.pop('verify', False),
69
auth_provider=kwargs.pop('auth_provider', None),
70
debug=kwargs.pop('debug', False)
@@ -82,7 +83,8 @@ def _get_icr_session(self, *args, **kwargs):
82
83
username=kwargs['username'],
84
password=kwargs['password'],
85
timeout=kwargs['timeout'],
- verify=kwargs['verify']
86
+ verify=kwargs['verify'],
87
+ token_to_use=kwargs['token_to_use']
88
)
89
if kwargs['auth_provider']:
90
params['auth_provider'] = kwargs['auth_provider']
0 commit comments