Forum Discussion

Ken_R_'s avatar
Ken_R_
Icon for Nimbostratus rankNimbostratus
Apr 08, 2020

BigIP iControl REST

I'm using the requests module (not the f5-sdk library) with Python to add LTM objects and am having an issue with POST. The following code works:   def node():   body = """     {       "name"...
  • Dario_Garrido's avatar
    Apr 08, 2020

    Hello Ken.

    I recommend you to use the F5-SDK. You can install the module using pip:

    REF - https://f5-sdk.readthedocs.io/en/latest/

    To create a node is as simple as this:

    from f5.bigip import ManagementRoot
    session = ManagementRoot("F5_mgmt_IP","username","password",token=True)
    node = session.tm.ltm.nodes.node.create(name='node_10.1.1.1', address='10.1.1.1', description='123abc', partition='Common')

    KR,

    Dario.