Forum Discussion
How to use the iControl API reference
I built the iControl .Net library (which the Powershell snapin is based) by moving the module+interface into a combined string for the interface name in the .Net lib. So, System.SystemInfo will turn into SystemSystemInfo. If you are using the Get-F5.iControl cmdlet to return the core iControl.Interfaces object, you can then iterate through that object and it will return a list of all the interface objects, which in turn contain all of the methods.
Here's a list of PowerShell based tech tips and code samples:
https://devcentral.f5.com/wiki/iControl.PowerShell.ashx
So, for an example, if you are looking at the SDK and want to get a list of VLANs in the Networking.VLAN interface with the VLAN.get_list() method, you would combine the Module and Interface and pull that object out from the Interfaces object. The get_list() method will be contained in that object.
$ic = Get-F5.iControl
$vlan = $ic.NetworkingVLAN;
$list = $vlan.get_list();To get a list of all of the interfaces, just pass the Interfaces object through the Get-Command cmdlet.
$ic = Get-F5.iControl
$ic | Get-Command
....Hope this helps... -Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com