Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters

How does one use the f5-sdk add-to-trust?

Have been trying to automate the adding of peer device using the add-to-trust described here: https://devcentral.f5.com/wiki/icontrolrest.apiref_tm_cm_add-to-trust.ashx

Snippet of what I have tried to run with python: ManagementRoot('IP', 'admin', 'admin_password').tm.cm.add_to_trust.update(caDevice=True, name='Root', device='PEER_IP', deviceName='NAME_OF_PEER_BOX', username='admin', password='admin_password', command='run')

The above seems to send a PUT instead of a POST (probably due to the usage of update() instead of create() which is not allowed for UnnamedResource?)

Does anyone know how to force the use of a POST with add-to-trust (or the proper syntax of adding a device via the F5 python SDK)?

Rate this Question
Comments on this Question
Comment made 25-Sep-2017 by penghon 51

Additional info: Crafting a POST python request (not using f5 python SDK) or using CURL works.


Answers to this Question