1.0.31/Public/Get-AllAcl.ps1
Function Get-AllAcl { <# .SYNOPSIS Returns Single ACL object .DESCRIPTION Allows the user to quickly return a single ACL as refernced by name. A good way to check for existing ACLs in addition to programatic ACL manipulation. .PARAMETER name ACL name .NOTES Requires F5-LTM modules from github .EXAMPLE Get-SingleAcl -name myACL Returns the ACL object for ACL myACL #> begin { #Test that the F5 session is in a valid format Test-F5Session($F5Session) } process { $uri = $F5Session.BaseURL.Replace('/ltm/','/apm/acl/') $response = Invoke-RestMethodOverride -Method Get -Uri $URI -WebSession $F5Session.WebSession $response } } |