f5sdk.bigiq.mgmt_client module¶
BIG-IQ management client
-
class
f5sdk.bigiq.mgmt_client.
ManagementClient
(host, **kwargs)¶ A class used as a management client for BIG-IQ
-
host
¶ the hostname of the device
- Type
str
-
port
¶ the port of the device
- Type
str
-
get_info
()¶ Refer to method documentation
-
make_request
()¶ Refer to method documentation
-
get_info
() Gets device info
- Parameters
None –
- Returns
the device information
{ 'version': 'x.x.x.x' }
- Return type
dict
-
make_request
(uri, **kwargs) Makes request to device (HTTP/S)
- Parameters
uri (str) – the URI where the request should be made
**kwargs – optional keyword arguments
- Keyword Arguments
method (str) – the HTTP method to use
headers (str) – the HTTP headers to use
body (str) – the HTTP body to use
body_content_type (str) – the HTTP body content type to use
bool_response (bool) – return boolean based on HTTP success/failure
advanced_return (bool) – return additional information, like HTTP status code to caller
- Returns
a dictionary containing the JSON response
- Return type
dict
-