Forum Discussion
TMSH Command via Python SDK
- Jul 22, 2019
Hello Rudi.
Here an example to get access to the status object
from f5.bigip import ManagementRoot # ---------------------------------------------------------- session = ManagementRoot("F5_mgmt_IP","username","password",token=True) status = session.tm.cm.sync_status.load() print(status.raw)
In general in SDK there are 3 kind of objects, here is some documentation.
Tutorial for accessing
- Collections
- Named Resources
REF - https://devcentral.f5.com/s/articles/getting-started-with-the-f5-common-python-sdk-27438
Tutorial for accessing
- Unnamed Resources
Hope this helps.
KR,
Dario.
>> Check Sync Status
https://f5-sdk.readthedocs.io/en/latest/apidoc/f5.bigip.tm.cm.html#module-f5.bigip.tm.cm.sync_status
https://f5-sdk.readthedocs.io/en/latest/_modules/f5/bigip/tm/cm/sync_status.html#Sync_Status
>> Sync To-Group
https://f5-sdk.readthedocs.io/en/latest/apidoc/f5.bigip.tm.cm.html#f5.bigip.tm.cm.device_group.Device_Group
https://f5-sdk.readthedocs.io/en/latest/_modules/f5/bigip/tm/cm/device_group.html#Device_Group.sync_to
Hope this helps.
KR,
Dario.
Thank you very much for the effort Dario! I'm going to try and figure something out with my very limited coding skills.
- Jul 22, 2019
Hello Rudi.
Here an example to get access to the status object
from f5.bigip import ManagementRoot # ---------------------------------------------------------- session = ManagementRoot("F5_mgmt_IP","username","password",token=True) status = session.tm.cm.sync_status.load() print(status.raw)
In general in SDK there are 3 kind of objects, here is some documentation.
Tutorial for accessing
- Collections
- Named Resources
REF - https://devcentral.f5.com/s/articles/getting-started-with-the-f5-common-python-sdk-27438
Tutorial for accessing
- Unnamed Resources
Hope this helps.
KR,
Dario.
- RudiVanSchalkwyJul 24, 2019Nimbostratus
OMW Dario, you are such a life saver!!!! I'm going to try this right now! Thanks again for your incredibly valuable input sir!!
- Jul 24, 2019
You are welcome ;-)
BTW, I would appreciate if you mark the answer as 'the best' or give me some upvotes.
KR,
Dario.
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