Forum Discussion
Awesome. Thank you R Marc! I did not realize you could also create nodes via the new Pool screen.
Your example is using the iControl REST API, correct? If so, I need to do more research on that. It seems that is the future for remote LTM management.
Btw, I tested your example and it worked.
I then checked the iControl API to see if it allows you to also create new nodes via a new pool. It does, via the Pool interface, and more specifically, the create and create_v2 methods.
So I tried using the New-Pool cmdlet in the F5-LTM module I am using, and it pukes. Complains about the IP address. My guess is that is it using the create method, which requires an IP Address. The create_V2 method allows either an IP address or Virtual Address. I tested using the iControl Snapin and the Get-F5.iControl cmdlet and it worked!
Here is a snippet of what I used.
$object = New-Object -TypeName iControl.CommonAddressPort $object.address = 'myhost.mydomain.com' $object.port = 443
(Get-F5.iControl).LocalLBPool.create_v2(@('mypool'),@('LB_METHOD_ROUND_ROBIN'),@($object))
Cheers, pimy