Forum Discussion
Richard_Milner-
Nimbostratus
Aug 14, 2012Creating Profiles / available methods list on iControl?
Hi Folks, I suspect I've just missed a large chunk of the documentation, so any pointers would be handy... I've already used iControl briefly in a couple of other tools, mainly...
Richard_Milner-
Nimbostratus
Aug 15, 2012That's just what I was after Joe, thanks. In case it's of any use to anyone:
-------------------------------------------------------------------------
function Create-OneConnectProfile()
Check whether a OneConnect Profile exists, create it if required
-------------------------------------------------------------------------
{
Param([string] $profileName);
$OneConnectArray = @()
$OneConnectArray = (Get-F5.iControl).LocalLBProfileOneConnect.get_list()
If ($OneConnectArray -contains $profileName) {
Write-Host "OneConnect Profile: $profileName already exists" -ForegroundColor Cyan
} Else {
try {
(Get-F5.iControl).LocalLBProfileOneConnect.Create( $profileName )
Write-Host "Created OneConnect Profile: $profileName" -ForegroundColor Green
} catch {
Write-Host "There was an exception thrown creating OneConnect Profile: $profileName" -ForegroundColor Red
$Error[0]
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects