Forum Discussion

no3am_307596's avatar
no3am_307596
Icon for Nimbostratus rankNimbostratus
Jan 26, 2017

BIG-IP create default gateway resource using API/SDK

Hi,

I need to create a resource on the big-ip using the SDK.

I'm able to create a pool - pool members, virtual server, etc.. the examples are quite clear.

However I can't seem to create a default gateway, to my understanding it's a virtual server but with different configurations.

Example:

mgmt = ManagementRoot(f5_big_ip, f5_user, f5_pass)

myvirtual = mgmt.tm.ltm.virtuals.virtual.create(name='dg_test',
                                         description='not important',
                                            type='Standard')

I'm not sure that 'type' is an acceptable attribute, but on the GUI I see the default type that's being created is layer 4, what I need it to be is Forwarding (IP).

Can someone help? or reference me to the exact documentation part to get this done, I would settle for using the direct rest API.

Regards, Naim

No RepliesBe the first to reply