f5.bigip.shared¶
Module Contents¶
BIG-IP® Shared (shared) module
- REST URI
http://localhost/mgmt/tm/shared/
- GUI Path
System
- REST Kind
- N/A – HTTP GET returns an error
Submodule List¶
bigip_failover_state |
BIG-IP® shared failover state module |
licensing |
BIG-IP® system failover module |
Submodules¶
bigip_failover_state¶
BIG-IP® shared failover state module
- REST URI
http://localhost/mgmt/tm/shared/bigip-failover-state
- GUI Path
- N/A
- REST Kind
tm:shared:licensing:*
-
class
f5.bigip.shared.bigip_failover_state.
Bigip_Failover_State
(shared)[source]¶ Bases:
f5.bigip.mixins.UnnamedResourceMixin
,f5.bigip.resource.Resource
BIG-IP® failover state information
Failover state objects only support the
load()
method because they cannot be modified via the API.Note
This is an unnamed resource so it has not ~Partition~Name pattern at the end of its URI.
-
update
(**kwargs)[source]¶ Update is not supported for BIG-IP® failover state.
Raises: UnsupportedOperation
-
create
(**kwargs)¶ Create is not supported for unnamed resources
Raises: UnsupportedOperation
-
delete
(**kwargs)¶ Delete is not supported for unnamed resources
Raises: UnsupportedOperation
-
exists
(**kwargs)¶ Check for the existence of the named object on the BIG-IP
Sends an HTTP GET to the URI of the named object and if it fails with a :exc:~requests.HTTPError` exception it checks the exception for status code of 404 and returns
False
in that case.If the GET is successful it returns
True
.For any other errors are raised as-is.
Parameters: kwargs – Keyword arguments required to get objects NOTE: If kwargs has a ‘requests_params’ key the corresponding dict will be passed to the underlying requests.session.get method where it will be handled according to that API. THIS IS HOW TO PASS QUERY-ARGS! :returns: bool – The objects exists on BIG-IP® or not. :raises:
requests.HTTPError
, Any HTTP error that was not statuscode 404.
-
raw
¶ Display the attributes that the current object has and their values.
Returns: A dictionary of attributes and their values
-
refresh
(**kwargs)¶ Use this to make the device resource be represented by self.
This method makes an HTTP GET query against the device service. This method is run for its side-effects on self. If successful the instance attribute __dict__ is replaced with the dict representing the device state. To figure out what that state is, run a subsequest query of the object like this: As with all CURDLE methods use a “requests_params” dict to pass parameters to requests.session.HTTPMETHOD. See test_requests_params.py for an example. >>> resource_obj.refresh() >>> print(resource_obj.raw)
-
licensing¶
BIG-IP® system failover module
- REST URI
http://localhost/mgmt/tm/shared/license
- GUI Path
System --> License
- REST Kind
tm:shared:licensing:*
-
class
f5.bigip.shared.licensing.
Licensing
(shared)[source]¶ Bases:
f5.bigip.resource.PathElement
BIG-IP® licensing stats and states.
Licensing objects themselves do not support any methods and are just containers for lower level objects.
Note
This is an unnamed resource so it has not ~Partition~Name pattern at the end of its URI.
-
raw
¶ Display the attributes that the current object has and their values.
Returns: A dictionary of attributes and their values
-
-
class
f5.bigip.shared.licensing.
Activation
(licensing)[source]¶ Bases:
f5.bigip.mixins.UnnamedResourceMixin
,f5.bigip.resource.Resource
BIG-IP® license activation status
Activation state objects only support the
load()
method because they cannot be modified via the API.Note
This is an unnamed resource so it has not ~Partition~Name pattern at the end of its URI.
-
update
(**kwargs)[source]¶ Update is not supported for License Activation
Raises: UnsupportedOperation
-
create
(**kwargs)¶ Create is not supported for unnamed resources
Raises: UnsupportedOperation
-
delete
(**kwargs)¶ Delete is not supported for unnamed resources
Raises: UnsupportedOperation
-
exists
(**kwargs)¶ Check for the existence of the named object on the BIG-IP
Sends an HTTP GET to the URI of the named object and if it fails with a :exc:~requests.HTTPError` exception it checks the exception for status code of 404 and returns
False
in that case.If the GET is successful it returns
True
.For any other errors are raised as-is.
Parameters: kwargs – Keyword arguments required to get objects NOTE: If kwargs has a ‘requests_params’ key the corresponding dict will be passed to the underlying requests.session.get method where it will be handled according to that API. THIS IS HOW TO PASS QUERY-ARGS! :returns: bool – The objects exists on BIG-IP® or not. :raises:
requests.HTTPError
, Any HTTP error that was not statuscode 404.
-
raw
¶ Display the attributes that the current object has and their values.
Returns: A dictionary of attributes and their values
-
refresh
(**kwargs)¶ Use this to make the device resource be represented by self.
This method makes an HTTP GET query against the device service. This method is run for its side-effects on self. If successful the instance attribute __dict__ is replaced with the dict representing the device state. To figure out what that state is, run a subsequest query of the object like this: As with all CURDLE methods use a “requests_params” dict to pass parameters to requests.session.HTTPMETHOD. See test_requests_params.py for an example. >>> resource_obj.refresh() >>> print(resource_obj.raw)
-
-
class
f5.bigip.shared.licensing.
Registration
(licensing)[source]¶ Bases:
f5.bigip.mixins.UnnamedResourceMixin
,f5.bigip.resource.Resource
BIG-IP® license registration status
Registration state objects only support the
load()
method because they cannot be modified via the API.Note
This is an unnamed resource so it has not ~Partition~Name pattern at the end of its URI.
-
update
(**kwargs)[source]¶ Update is not supported for License Registration
Raises: UnsupportedOperation
-
create
(**kwargs)¶ Create is not supported for unnamed resources
Raises: UnsupportedOperation
-
delete
(**kwargs)¶ Delete is not supported for unnamed resources
Raises: UnsupportedOperation
-
exists
(**kwargs)¶ Check for the existence of the named object on the BIG-IP
Sends an HTTP GET to the URI of the named object and if it fails with a :exc:~requests.HTTPError` exception it checks the exception for status code of 404 and returns
False
in that case.If the GET is successful it returns
True
.For any other errors are raised as-is.
Parameters: kwargs – Keyword arguments required to get objects NOTE: If kwargs has a ‘requests_params’ key the corresponding dict will be passed to the underlying requests.session.get method where it will be handled according to that API. THIS IS HOW TO PASS QUERY-ARGS! :returns: bool – The objects exists on BIG-IP® or not. :raises:
requests.HTTPError
, Any HTTP error that was not statuscode 404.
-
raw
¶ Display the attributes that the current object has and their values.
Returns: A dictionary of attributes and their values
-
refresh
(**kwargs)¶ Use this to make the device resource be represented by self.
This method makes an HTTP GET query against the device service. This method is run for its side-effects on self. If successful the instance attribute __dict__ is replaced with the dict representing the device state. To figure out what that state is, run a subsequest query of the object like this: As with all CURDLE methods use a “requests_params” dict to pass parameters to requests.session.HTTPMETHOD. See test_requests_params.py for an example. >>> resource_obj.refresh() >>> print(resource_obj.raw)
-