Forum Discussion

stmc23_87870's avatar
stmc23_87870
Icon for Nimbostratus rankNimbostratus
Jul 15, 2014

REST API trust-domain peer

Using the iControl REST API, how can I add a peer device under /mgmt/tm/cm/device so that I can then add it to a device group? the tmsh command would similar to this:

 

modify cm trust-domain /Common/Root ca-devices add { 1.1.1.1 } name peer.test.com username admin password password123

 

Thank you

 

2 Replies

  • hibino_105426's avatar
    hibino_105426
    Historic F5 Account

    On v13.1, I could do by following command:

     

    curl -k -u admin:admin -H "Content-Type: application/json" -X POST -d '{"command":"run","utilCmdArgs":"modify /cm trust-domain add-device {device device-name username password ca-device }"}'