How to use get_httpclass_profile?

Are there any examples on how to use the command get_httpclass_profile?

I don’t know of any samples in the CodeShare that use that method, but it’s pretty easy. The definition is:

VirtualServerHttpClass [] [] get_httpclass_profile(
  in String [] virtual_servers
);

How you would code this depends on the language you choose. For PowerShell, it would be something like this

$vipList = @("vip1", "vip2");
$classListAofA = (Get-F5.iControl).LocalLBVirtualServer.get_httpclass_profile($vipList);
 Loop over each VIP
for($i=0; $i -lt $classListAofA.Length; $i++)
{
  $vip = $vipList[$i];
  Write-Host "VIP: $vip";
   loop over each of the class profiles in the given VIP
  $classListA = $classListAofA[$i];
  foreach($class in $classListA)
  {
    $profile_name = $class.profile_name;
    $priority = $class.priority;
    Write-Host "  $profile_name ($priority)"
  }
}

Hope this helps…

-Joe

Thanks. This definitely helps. After I get this class, would there be a command to disable pools within that class?

Or first is there a way to find the pools from the classes that we get?